Raspberry Pi 4的默認cmdline.txt是什麼


我需要了解Raspberry Pi 4的cmdline.txt文件的默認內容。我遵循的是有關設置gps模塊的舊教程。本教程讓我更改了內容cmdline.txt。只有在進行更改並且RPi4無法啟動後,我才意識到該教程適用於較舊的型號Pi。這裡的答案是What is the default cmdline.txt?,但是對於較舊的型號Pi也是如此。


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.