Results 1 to 9 of 9
I was dabbling with some CIS 6.1.1 guidelines and I misread the part about adding "nodev" to the "/dev/VolGroup00/LogVol00 / ext3 defaults 1 1" line. I accidentally entered it as
...
- 11-11-2009 #1Just Joined!
- Join Date
- Sep 2008
- Posts
- 5
Oops...I broke fstab on Centos 5.3
I was dabbling with some CIS 6.1.1 guidelines and I misread the part about adding "nodev" to the "/dev/VolGroup00/LogVol00 / ext3 defaults 1 1" line. I accidentally entered it as
After a reboot my system won't mount. It trips during bootup at the line that readsCode:nodev,/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
Here's what I've triedCode:fsck.ext3: No such file of directory while trying to open nodev,/dev/VolGroup00/LogVol00 nodev,/dev/VolGroup00/LogVol00: The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and no swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>
- When this error comes up it dumps me out to emergency mode, which is of course read-only. I can't really do anything useful here from what I can tell. I certainly can't edit fstab, which is the source of the error
- I tried going into rescue mode with my centos installation media, but the rescue operation can't properly mount the volume (I assume since fstab is borkificated).
- Single user mode fails for the same reason a straight boot up fails.
- Interrupting GRUB loader by entering cmd prompt and manually running "mount -t ext3 /dev/VolGroup00/LogVol00".
Thankfully this is just a test machine, and not used in production at all.
- 11-11-2009 #2
I would try a live CD to mount the drive and fix fstab
Linux User #453176
- 11-11-2009 #3Just Joined!
- Join Date
- Sep 2008
- Posts
- 5
I haven't used liveCD much, so a little clarification is needed. How could I edit the /etc/fstab on my filesystem via liveCD? Won't it only show the relative fstab for the liveCD mount?
- 11-11-2009 #4
If you boot up the live CD you then need to mount your hard drive. If you mount it to /mnt for instance:
You can then edit your fstab as it will be located in /mnt/etc/fstabCode:mount -t ext3 /dev/VolGroup00/LogVol00 /mnt
Linux User #453176
- 11-11-2009 #5Just Joined!
- Join Date
- Sep 2008
- Posts
- 5
When I attempt that i get
Strangely I can't seem to use "unmount" here. Is there an alternative to unmount in Centos?Code:mount: /dev/VolGroup00/LogVol00 already mounted or /mnt busy
- 11-11-2009 #6
Is that using a Live CD? Maybe try mounting somewhere else?
Linux User #453176
- 11-12-2009 #7Just Joined!
- Join Date
- Nov 2009
- Posts
- 6
That means the disk is already mounted, so you should be able to access it. Probably just a matter of finding where it's mounted to.
I would check under /mnt
Are you using a Graphical LiveCD, or are you on the command line only? Usually on a graphical live cd, if you open up the File Browser, you can see the mounted filesystems.
edit: use `man umount` for unmounting a filesystem
- 11-12-2009 #8
You can find out what is mounted where by using the mount command without any flags:
Code:mount
Last edited by Kieren; 11-12-2009 at 02:56 PM.
Linux User #453176
- 11-12-2009 #9Just Joined!
- Join Date
- Nov 2009
- Posts
- 6
good call, forgot about that


Reply With Quote
