You are not logged in.

#1 2011-01-26 23:38:47

anon27
Member
Registered: 2010-11-10
Posts: 18

[SOLVED] Messed up my /etc/fstab

I compulsively copied fstab.pacnew to fstab and after rebooting my partitions are not recognized anymore. Since I'm an idiot I decided that the 5 seconds it would've taken to backup the file were too much time.

So, is there any way to recover the original file? If not then how can I remake it manually?

Last edited by anon27 (2011-01-27 00:53:04)

Offline

#2 2011-01-26 23:50:59

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Messed up my /etc/fstab

Simply add your system relevant partitions and options to the file....???


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2011-01-26 23:54:21

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,538

Re: [SOLVED] Messed up my /etc/fstab

Simply restore your backup

Offline

#4 2011-01-26 23:57:30

andrewthomas
Member
Registered: 2010-05-08
Posts: 52

Re: [SOLVED] Messed up my /etc/fstab

If you don't have /home on a separate partition then you just need to add entries for your root and swap.  Do you know what partitions they are on?

You could boot a live cd and

# fdisk -l 

or

 sudo fdisk -l

to get the correct entries then
add the entries
For example, I have

/dev/sda6 / ext4 defaults 0 1
/dev/sda13 none swap sw 0 0

If this helped you, please take the time to rate the value of this post:
http://rate.affero.net/andrewthomas/

Offline

#5 2011-01-27 00:51:55

anon27
Member
Registered: 2010-11-10
Posts: 18

Re: [SOLVED] Messed up my /etc/fstab

Thanks Andrew, fdisk -l plus an example from the wiki helped me reconstruct the file.

Offline

Board footer

Powered by FluxBB