Booting from a hard disk?

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Perhaps there is a need for a THUNK processor to
emulate the SD protocol on one side (to replace the
SD in Pi) and to drive a HD on the other.

Job for an Arduino or a DSPic33?


Re: Booting from a hard disk?

Quoted text here. Click to load it

Much too complicated.

As Chris Elvidge says in message:
  Subject: Re: External disk with the pi 4, anyone
  Date: Thu, 7 Nov 2019 13:10:14 +0000
, it is much easier to use the SD card just for /boot,  
and put the rootfs on a harddisk

My setup is usually :

pi@f7p4:~ $ lsblk -o name,fstype,mountpoint,label,parttype,partlabel,partuuid

NAME        FSTYPE MOUNTPOINT LABEL   PARTTYPE PARTLABEL PARTUUID
sda
+-sda1      vfat                      0xc                32ebda7d-01
+-sda2      ext4   /          rootfs  0x83               32ebda7d-02
+-sda3      ext4   /extra             0x83               32ebda7d-03
mmcblk0
+-mmcblk0p1 vfat   /boot      boot    0xc                5e3da3da-01
+-mmcblk0p2 ext4              rootfs  0x83               5e3da3da-02

pi@f7p4:~ $ cat /boot/cmdline.txt # (all on one line!)
console=serial0,115200 console=tty1 root=PARTUUID32%ebda7d-02 rootfstype=ext4
 elevator=deadline fsck.repair=yes rootwait

pi@f7p4:~ $ cat /etc/fstab
# device              mntpnt          type    options        dump  passno
proc                  /proc           proc    defaults          0       0
# SD card
PARTUUID=5e3da3da-01  /boot           vfat    defaults          0       2
# SSD / HD
PARTUUID32%ebda7d-02  /               ext4    defaults,noatime  0       1
PARTUUID32%ebda7d-03  /extra          ext4    defaults,noatime  0       2
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that

Note: /extra is a partition for data / homedirs, that will  
survive replacement of boot/root.
--  
Regards,
Kees Nuyt

Re: Booting from a hard disk?
On 07/11/2019 14:10, Kees Nuyt wrote:
Quoted text here. Click to load it
<ELIDED>

The idea is to get away from SD cards altogether.

What you contributed subsequently was Linux jabber,
and not relevant to other approaches.


Re: Booting from a hard disk?
On 07/11/2019 16:06, Areligious Republican wrote:
Quoted text here. Click to load it



Quoted text here. Click to load it

AFAIK the pi cannot boot *entirely* from hard disk.

It needs a boostrap SD card

Quoted text here. Click to load it
Wrong side of the bed?


--  
?when things get difficult you just have to lie?



Re: Booting from a hard disk?
Quoted text here. Click to load it

Pi4 cannot, yet. Pi3 very easily:
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md


Re: Booting from a hard disk?
On 07/11/2019 16:47, The Natural Philosopher wrote:
Quoted text here. Click to load it

Pi from 3 is supposed to be able to boot from USB with an updated  
setting (add program_usb_boot_mode=1 to the end of /boot/config.txt, and  
reboot) but I've never got it to work. YMMV.

Quoted text here. Click to load it



--  

Chris Elvidge, England

Re: Booting from a hard disk?

Quoted text here. Click to load it

Thanks for sharing your opinion.
--  
Regards,
Kees Nuyt

Site Timeline