6

I need to know the default contents of the cmdline.txt file for a Raspberry Pi 4. I was following an old tutorial about setting up a gps module. The tutorial had me change the contents cmdline.txt. Only after I made the change and the RPi4 failed to boot did I realize the tutorial was for an older model Pi. There is an answer for this question here What is the default cmdline.txt?, however it is also for an older model Pi.

1

1 Answer 1

8

On my Pi 4, it's:

console=serial0,115200 console=tty1 root=PARTUUID=XXXXXXXX-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles

Your PARTUUID will not be the same as mine (which is why I X'd it out). Instead, use:

cat /etc/fstab

Note the PARTUUID for the root partition (ext4) and that's the value you need to use.

2
  • Your PARTUUID ends with -02, but I'm assuming that's gonna be the partition where root is. For me that's -03. I initially did the mistake of using lsblk -o UUID,NAME, and took me a while to realize this was supposed to be PARTUUID and not only UUID.
    – mazunki
    Commented Sep 24, 2021 at 20:09
  • my question is - if the PARTUUID is incorrect, how to find out the correct one so that it can be edited from a Windows OS?
    – Rebroad
    Commented Oct 2 at 13:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.