Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

Troubleshooting • Re: Am I running root from my SSD or SD Card?

$
0
0
Boot (/boot) should always be the SD partition 1, surely?
Pi5 supports booting from SD, USB, NVME, or Ethernet. You can set the boot order preference. Unless you have done this, the default will be to try SD, then USB.

Regardless of where the system actually starts booting from, the partition mounted on /boot/firmware will be the one specified in /etc/fstab. (As mentioned by thagrol, it would be dangerous to mount a different FAT partition than the one you are booting from, because you could end up with a kernel image without a matching /lib/modules/ directory in the root.)

I assume your SATA HAT connects to the Pi by PCI-e, but since SATA is not NVME, the Pi5 will not support booting from it? So you need to have /boot/firmware on the SD card, but you want the root to be on a SATA SSD.

This is what you are getting. The root=LABEL=rootssd in /boot/firmware/cmdline.txt is taking effect, and the PARTUUID=2923c67b-02 in /etc/fstab is being ignored. (Technically I think the device or UUID you mention in /etc/fstab has to exist, but it does not matter if it is not the root you are using, because root is already mounted read-only, and the system just needs to do mount -o remount,rw /.)

Nevertheless, I suggest you edit the root line of /etc/fstab to match your actual situation:

Code:

PARTUUID=2923c67b-01 /boot/firmware vfat defaults 0 2LABEL=rootssd        /              ext4 noatime  0 1
It is a bit unconventional to format an entire drive without partitioning it first ("superfloppy" format), but it should work fine since you do not need (and would not be able) to boot from it.

Statistics: Posted by jojopi — Wed Oct 09, 2024 1:31 am



Viewing all articles
Browse latest Browse all 4906

Trending Articles