Resoring /etc/fstab

email.listen at googlemail.com email.listen at googlemail.com
Sun Jun 17 12:30:36 UTC 2007


On Sun, 17. June 2007 13:43:11 SteVe Cook wrote:
> Due to not having my brain in gear, I've managed to write an empty file
> to /etc/fstab
> I s the an easy, i.e. automated, way to restore it or do I just have to
> rewrite the whole thing.
Have a look if there is an /etc/fstab~
If yes it might be a good starting point.
If not you've  to rewrite /etc/fstab.

Whithout to reboot try the following.
In a terminal a:
 hwinfo --short 
should list the drives.

Also a:
 sudo fdisk -l

and:
 mount
may give more information about the drives/partitions.

Another way is to start a live-cd and examine your hardware architecture with 
the commands mentioned above. First search for a partition which helds 
the /etc directory. Mount this partition to write the new fstab file. Then 
list the partitions with:
 sudo fdisk -l

Note: It's always a good idea to save backup of a file under another name,
      e.g. fstab.2007-06-17 and after this edit the original file.

regards,
thomas




More information about the ubuntu-users mailing list