Computing.Net > Forums > Linux > Missing /etc/fstab file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Missing /etc/fstab file

Reply to Message Icon

Name: amogh_
Date: January 22, 2005 at 22:39:54 Pacific
OS: RH8.0 + Win XP
CPU/Ram: 800MHz/256MB
Comment:

hi,
A friend of mine has accidentally deleted /etc/fstab file.
Red Hat 8.0 is not booting now.

Is there any method for recovery?
He says he is getting a command prompt may be for passing parameters to modify file system so that linux boots. Both of us aren't aware of what parameters or commands cud be passed.

Pls tell what kind of parameters, if any present , could be passed.

Thank You.
Amogh.



Sponsored Link
Ads by Google

Response Number 1
Name: ashutoshsapre
Date: January 23, 2005 at 22:38:20 Pacific
Reply:

you didn't tell at what point you get the command prompt, are you able to login into your account? what you can do here is you can use the disc 1 to boot and then type "linux rescue" just you'll be asked to mount the existing installed linux of ur computer to be mounted in /mnt/sysimage, after you get the prompt just copy the /etc/fstab file to /mnt/sysimage/etc then change the root directory by using the command "chroot /mnt/sysimage" now ur using ur harddisk installed linux, now edit the file in vi. this is the example file:

#
# /etc/fstab for technics
#

/dev/hdb2 / ext2 defaults 1 1
/dev/hda8 /home ext2 defaults 1 2
/dev/hda7 swap swap defaults 0 0
/dev/fd0 /mnt/floppy ext2 noauto 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,ro 0 0
none /proc proc defaults 0 0
none /dev/pts devpts mode=0622 0 0


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Missing /etc/fstab file

HELP - system can't find /etc/fstab www.computing.net/answers/linux/help-system-cant-find-etcfstab/10470.html

mounting in /etc/fstab www.computing.net/answers/linux/mounting-in-etcfstab/5215.html

Label In /etc/fstab - Please Help www.computing.net/answers/linux/label-in-etcfstab-please-help/17623.html