How to fix fstab on bootup - forgot to comment out a line
Hi I forgot to comment out a line in /etc/fstab, now when my machine boots up it keeps dropping to a filesystem check and asks for teh root password. My question is how can I get to edit the /etc/fstab file on bootup or via grub? Please help. Thanks Dan -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to fix fstab on bootup - forgot to comment out a line
An idea is: Boot the machine with a livecd, mount root filesystem, edit the fstab and reboot the machine. I hope helps you. Regards, - - iarly selbir ( ski0s ) :wq! On Mon, Jan 26, 2009 at 9:29 AM, Dan Track wrote: > Hi > > I forgot to comment out a line in /etc/fstab, now when my machine > boots up it keeps dropping to a filesystem check and asks for teh root > password. My question is how can I get to edit the /etc/fstab file on > bootup or via grub? > > Please help. > > Thanks > Dan > > -- > fedora-list mailing list > fedora-list@redhat.com > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list > Guidelines: > http://fedoraproject.org/wiki/Communicate/MailingListGuidelines > -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to fix fstab on bootup - forgot to comment out a line
Dan Track wrote: > Hi > > I forgot to comment out a line in /etc/fstab, now when my machine > boots up it keeps dropping to a filesystem check and asks for teh root > password. My question is how can I get to edit the /etc/fstab file on > bootup or via grub? so type in the root password. then type this: mount /proc mount -o remount,rw / the 'mount /proc' bit is just to be absolutely certain that you got that far. You can now edit /etc/fstab (all this assumes that the error is NOT on the line for your / filesystem. In that case, use your fedora CD/DVD to boot into rescue mode and do it from there) Regards, Stuart -- Stuart Sears RHC* "It's today!" said Piglet. "My favourite day," said Pooh. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to fix fstab on bootup - forgot to comment out a line
Dan Track wrote: Hi I forgot to comment out a line in /etc/fstab, now when my machine boots up it keeps dropping to a filesystem check and asks for teh root password. My question is how can I get to edit the /etc/fstab file on bootup or via grub? Please help. Thanks Dan 1) at the grub prompt, hit 'a' to append options 2) add 'init=/bin/bash' to the kernel command line 3) mount -o remount,rw / 4) vim /etc/fstab 5) reboot -- Chris -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: How to fix fstab on bootup - forgot to comment out a line
Chris Snook wrote: Dan Track wrote: Hi I forgot to comment out a line in /etc/fstab, now when my machine boots up it keeps dropping to a filesystem check and asks for teh root password. My question is how can I get to edit the /etc/fstab file on bootup or via grub? Please help. Thanks Dan 1) at the grub prompt, hit 'a' to append options 2) add 'init=/bin/bash' to the kernel command line Why bother when the distribution initscripts will take care of this and drop you to a nice root shell (which has working job control and everything and won't panic the box if you accidentally hit ctrl-d or something :)? Bryn. 3) mount -o remount,rw / I could have sworn I used to have to add '-n' to suppress /etc/mtab updates, but I haven't tried in a while... -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines