Linux read-only / file system
Posted: Mon May 20, 2013 4:27 pm
When I was working on laxm1811, I accidentally copied over /etc/fstab from laxm1711 (physical server) that has boot device as mpath0p1 (partition 1) while laxm1811 is sitting on VM and it doesn't have this partition.
Therefore, it complained about this partition every time it comes up. I was unable to boot up.
When going into single user mode, / partition was read-only and I couldn't make any changes to /etc/fstab.
Then, I found the following command that makes / partition writable:
If that simple command didn't work, try the following:
After this, I was able to roll back the old /etc/fstab and boot it up.
Therefore, it complained about this partition every time it comes up. I was unable to boot up.
When going into single user mode, / partition was read-only and I couldn't make any changes to /etc/fstab.
Then, I found the following command that makes / partition writable:
Code: Select all
# mount -o remount,rw /
Code: Select all
# mount -t <FS type> -o remount,rw <file system> <mount point>
# mount -t ext4 -o remount,rw /dev/mapper/rootvg-LogVol00 /