1

I have a requirement of changing my root partition to Readonly.

After changing / to readonly in /etc/fstab, I rebooted the system.

Mount points of USB devices is /mnt.

But after above changes USB folder is not creating under /mnt/sdXX because of Read only Root partition.

Can I get any work around for this requirement please..

0

2 Answers 2

1

First thing to do is mount /mnt on tmpfs. In /etc/fstab

tmpfs   /mnt   tmpfs size=1M 0 0

That really should solve your initial problem (but I'm sure you'll have more to come!)

0

If this is home work ......

Just create all mount points while the system is read write. Then mount read only.

mount -o remount,rw /
mkdir /mnt
reboot

should do the trick.

2
  • /mnt folder exist in / partition <br/> Problem is sdb1 or sdc1 whatever mount points for usb is not creating under /mnt
    – mrajanna
    Commented May 11, 2015 at 9:11
  • Please update your question with that information, to me it sounds like /mnt doesn't exist. Though the same is true if you mean the mount points. Make it read write. then make the /mnt/whatever, reboot. Please include your fstab in your question edit.
    – coteyr
    Commented May 11, 2015 at 10:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .