Recovering fstab
Hi,
Is there a way to recover or create the fstab file? I accidentally screwed up the fstab file and the system won't boot. I tried to create one based on the info given by fdisk but with no luck. Please help. |
post the one you tried to create and you relevant info ( root partition, swap partition, filesystem, etc...).
|
usaully when you edit a file it creates a backup of the file you were editing see if theres a fstab~. if so just rename it fstab. or type this in your terminal to get you started.
cat > /etc/fstab << "EOF" # Begin /etc/fstab # filesystem mount-point fs-type options dump fsck-order /dev/xxx / fff defaults 1 1 /dev/yyy swap swap pri=1 0 0 proc /proc proc defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 shm /dev/shm tmpfs defaults 0 0 # End /etc/fstab EOF xxx is you partition where your distro is installed fff is your filesystem type try google for fstab examples also I ripped the above example from the LFS handbook. |
All times are GMT -5. The time now is 02:57 PM. |