Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Boot up with the FC CD and use the boot option of ' linux rescue '. Then allow it to mount existing partitions and goto it and edit the file. Just to make sure you have it right you define the LABEL in /etc/mtab file? If not the partition needs to be define there before LABEL can be used. To me it would make better since just to define the /dev point right in /etc/fstab. Example:
Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda9 / ext3 defaults 1 1
/dev/hda2 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda6 /dvdrw ext3 defaults 1 2
/dev/hda8 /home ext3 defaults 1 2
none /proc proc defaults 0 0
# /dev/hda10 /sharevfat vfat defaults 0 0
/dev/hda5 /storage1 ext3 defaults 1 2
/dev/hda12 /storage2 ext3 defaults 1 2
none /sys sysfs defaults 0 0
/dev/hda3 /usr ext3 defaults 1 2
/dev/hda7 /var ext3 defaults 1 2
/dev/hda11 swap swap defaults 0 0
# /dev/hdd /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
# /dev/hdc /media/cdrecorder1 auto pamconsole,exec,noauto,managed 0 0
# /dev/sda1 /media/usbdisk vfat pamconsole,noatime,sync,exec,noauto,managed 0 0
# Mounting of other local partitions
/dev/hda10 /sharevfat vfat umask=000,users,auto,owner,rw,dirsync 0 0
/dev/hda1 /winxp ntfs umask=000,users,noauto,owner,rw 0 0
/dev/cdrom /mnt/cdrom auto noauto,owner,rw 0 0
/dev/cdrom1 /mnt/cdrom1 auto noauto,owner,rw 0 0
/dev/scd0 /mnt/cdrom2 auto noauto,owner,rw 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
# SD Block Mounts on local USB, Firewire, and Scsi using sync which is slow
# /dev/sda1 /mnt/sda1 auto umask=000,users,noauto,owner,rw,sync,dirsync 0 0
# SD Block Mounts on local USB, Firewire, and Scsi
/dev/sda1 /mnt/sd_block/sda1 auto umask=000,users,noauto,owner,rw,dirsync 0 0
/dev/sdb1 /mnt/sd_block/sdb1 auto umask=000,users,noauto,owner,rw,dirsync 0 0
/dev/sdc1 /mnt/sd_block/sdc1 auto
One option is to boot to rescue mode and edit the /etc/fstab file. The / partition will be mounted at /mnt/sysimage. /etc/mtab will not tell you anything unless the filesystem is mounted which it will not do since you have an error.
In maintenance mode (the dropping to shell part) you can remount the filesystem with rw permissions using the following command.
mount -n -o remount,rw /
You should now be able to edit the /etc/fstab and fix your error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.