This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3351: Setting FAT32 boot partition to read-only

Part Number: AM3351

Tool/software: Linux

Good afternoon TI community,

I'm using the TI Linux SDK 4.00 for the AM335x chipset and have successfully configured the bootloader and linux kernel to run my application. After startup, I see that the /dev/mmcblk0p1 boot partition is mounted to /run/media/mmcblk0p1 as read-write partition, however, I'd like to configure this as read-only for my production software. I don't the boot partition /dev/mmcblk0p1 defined anywhere in the existing /etc/fstab file, so I'm not sure how to configure it to read-only. I even added the entry directly into /etc/fstab thinking perhaps it would override any other settings, but it still gets mounted to /run/media/mmcblk0p1 as a read-write partition.

Please let me know where this is being configured and your recommendation for setting this boot partition to read-only.

Thanks for your support!

Best regards,

Chris

  • Hello Chris,

    /run/media/mmcblk0p1 like any other added block devices gets automounted by this /etc/udev/scripts/mount.sh udev script. To stop this behavior blacklist the mmc partition by appending it to /etc/udev/mount.blacklist, then mount the same partition trough /etc/fstab with the mount options you desire.

    Best regards,
    Kemal