0

I read some instructions for modifying the RPi that would require the cmdline.txt to be modified.

Unfortunately I have nothing but the Raspberry itself to mount the SD card, so I wonder whether I can mount the FAT32 partition of which the Raspberry booted, then modify the cmdline.txt from nano and then reboot.

0

2 Answers 2

3

If you are trying to do this on the Pi, then the partition should be mounted, by default, in /boot. So just edit /boot/cmdline.txt

There should be no need to edit cmdline.txt in normal circumstances. There are lots of old instructions suggesting this, but virtually everything can be done more safely with raspi-config.

2
  • He may need to modify /etc/fstab. It looks like /dev/mmcblk0p1 is mounted with default mount options (/dev/mmcblk0p1 /boot vfat defaults 0 2), but I don't know what they are for RPI. Do you know if default is ro or rw?
    – user50099
    Jul 28, 2016 at 4:58
  • The options I needed are not available in raspi-config. Answer worked like a charm Jul 28, 2016 at 15:56
1

yes you can mount the fat partition for temporarly reasons, otherwise use fstab

sudo mount -t vfat -o uid=root /dev/mmcblk0p1 /mnt
sudo nano /mnt/cmdline.txt

have fun

2
  • You probably mean fstab Sep 18, 2019 at 8:21
  • thank you for commenting, i corrected the typo. Sep 23, 2019 at 18:02

Your Answer

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

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