PDA

View Full Version : [ubuntu] Problem with fstab



nemodot
June 25th, 2010, 04:32 PM
My computer won't boot now that I messed up with fstab.

I was following this tutorial (http://www.techenclave.com/guides-and-tutorials/automounting-ntfs-partitions-during-startup-ubuntu-161249.html) on how to auto mount ntfs partitions but something must have gone wrong.

When I turn on the computer all i get is a black screen.

How can I edit the fstab file in order to erase the lines i added?

bodhi.zazen
June 25th, 2010, 04:58 PM
you will have to boot a live CD, mount your root partition, and edit fstab

Assuming your root partition is /dev/sda1

Boot a live CD and run:


sudo mount /dev/sda1 /mnt
gksu gedit /mnt/etc/fstab

edit the file, save the changes, and reboot to hard drive.

oldfred
June 25th, 2010, 06:35 PM
The instructions said to run this:

sudo mount -a

That confirms that fstab is ok or not. If ok it just returns to the terminal.
Or it lists errors. You need to run that before rebooting to prevent issues.

philinux
June 25th, 2010, 07:51 PM
Also run this from the livecd.


sudo blkid

And make sure the ones quoted on fstab match up.