LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Problem in fstab file (https://www.linuxquestions.org/questions/linux-kernel-70/problem-in-fstab-file-624393/)

mathimca05 02-28-2008 01:46 AM

Problem in fstab file
 
hai all
i m going to change my fstab file,what are the entries i should keep or what entries i should remove from that?
if something happens to that file or that file is missing from /etc,will it affect others files?

i had only these entries in my fstab file..


/dev/hdb10 / ext3 defaults 1 1
proc /proc proc defaults 0 0



am i missing something?i think this is not correct,

when booting i am getting errors,
so i put fc7 cd to rescue it,
but the command chroot /mnt/sysimage
its saying that file not found....
my fstab file is also missing from /etc

its also giving some problem in /bin/bash?


how can i get back my all deleted files?
can anyone suggest me a idea?

aus9 02-28-2008 05:06 AM

sounds like you did not get rescue mode to correctly mount your hard drive partition /

if there is a option to go to console you could try manually.

mkdir /mnt/sysimage
mount -t ext3 /mnt/sysimage
chroot /mnt/sysimage
ls.....should show your hard drive style....fstab missing was referring to live cd fstab.

2) alternatively

even tho I have a diff distro you could try these extra lines, once you boot into F edit with root powers

/dev/cdrom /media/cdrom iso9660 users,ro 0 0
/dev/fd0 /media/floppy auto users,rw 0 0
none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0

3) pls check you have a folder called /proc and /tmp b4 adding those last lines

4) if you cd inserted or floppy automatically starts your file manager, remove those top 2 lines as F is using HAL daemon

aus9 02-28-2008 05:08 AM

extra if you have /proc you overwrite with mine suggested line.

2) make a backup of your current file b4 rebooting.

3) if still errors post them pls..../var/log/syslog or /messages should show them after boot up


All times are GMT -5. The time now is 09:41 PM.