Linux read-only / file system

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Linux read-only / file system

Post by cah »

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:

Code: Select all

# mount -o remount,rw /
If that simple command didn't work, try the following:

Code: Select all

# mount -t <FS type> -o remount,rw <file system> <mount point>
# mount -t ext4 -o remount,rw /dev/mapper/rootvg-LogVol00 /
 
After this, I was able to roll back the old /etc/fstab and boot it up.
CAH, The Great
Post Reply