Resoring /etc/fstab

SteVe Cook yorvik.ubunto at googlemail.com
Sun Jun 17 13:34:34 UTC 2007


Liam Proven wrote:
> On 17/06/07, SteVe Cook <yorvik.ubunto at googlemail.com> 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.
> 
> Do you have an fstab.old or some other backup file? If not, I think
> you're looking at rewriting it.
> 
Thanks thomas and liam.

I was just hoping that there was a simple command or something that 
could scan the system and recreate an fstab file.

I think it was while making a backup that I fouled things up.
It's no matter anyway as it was on my messing about machine which I had 
just done a clean install on.  I think it was making a backup that I 
mucked up, as I was going to add network drives to it.

It'll be a good exercise anyway.

SteVe




More information about the ubuntu-users mailing list