Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-24-2008, 09:47 PM   #1
Registered: Aug 2006
Location: Alabama
Distribution: pclos, Win 7, Linux lite, Window XP
Posts: 85

Rep: Reputation: 16
can I create a new fstab file

Read the man page for fstab but didn't determine if I could in fact create a new fstab file for a disto on a multiboot sytem. Mandriva 2008 fstab file got corrupted when I installed another distro and overwrote the grub menu on mbr. All other distros boot but not Mandriva 2008.

I ran the blkid command from the command line to see if the UUID listed in the fstab for M2008 was incorrect. It was not.

If I can't create a new fstab file then is my only option to re-install?
Old 06-24-2008, 10:17 PM   #2
Registered: Feb 2008
Distribution: Debian Testing
Posts: 169

Rep: Reputation: 32
Just to see if I understand: Mandriva will not boot because the fstab file is corrupted? Or is it not listed in the grub menu?

You can make a new fstab, but be sure to backup the original, and use it as a reference. The fstab file is specific to the linux installation. In other words, if you install Mandriva, Ubuntu, and Mepis, for instance, they will each have their own fstab, which will tell that installation what drives are available to mount. If one of the fstab files got corrupted, you should be able to boot into a working installation, then chroot into the non-working one to create a new fstab, or even just copy a suitable fstab file to the non-working one (again, just be sure you back up your fstabs, and make sure to copy to the correct partition). If you don't have a working install, you should be able to use a rescue or live cd to fix your fstab.

Whichever install is the latest will overwrite your grub menu, unless you specifically tell it not to. You may have to fix your grub menu.lst file to include all of your boot options.
Old 06-25-2008, 07:34 AM   #3
Registered: Aug 2006
Location: Alabama
Distribution: pclos, Win 7, Linux lite, Window XP
Posts: 85

Original Poster
Rep: Reputation: 16
OK, Let me explain, bcwagne. I had Mepis, Mint, Kubuntu, PCLOS and XP. I replaced PCLOS with Mandriva. Mandriva was the last to write a grub menu to mbr. Then I replaced Mint with something else that didn't install correctly but had wiped out Mint. So I re-installed Mint and let it write a grub menu to mbr. All distros booted except Mandriva. It wasn't listed as Mandriva but just had a generic entry. I went into Mint and edited the menu.lst to make it read Mandriva and ended up putting in these lines 'root (hdo, 10)' and 'configfile /boot/grub/menu.lst'. Mandriva still didn't boot. So I posted to the Mandriva forum and help pointed me to the fstab file. I made some errors in posting the results of my fstab file and then I guess it got too complicated because I didn't get more help.

I am just a few months into Linux and still trying to learn how to troubleshoot my system. It would be a learning experience to fix this and get it to work. I know that the most simple thing to do would be to re-install Mandriva.

BTW.. All the other distros boot with no problem. From what you said, if I understand you correctly, I should be able to get a copy of the fstab file from one of the other distros and use it if I am careful to compare it to the original and do some editing. Is that correct?

Thanks for the help,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create an entry in fstab file mathimca05 Linux - Newbie 6 12-02-2010 12:07 AM
how to create a new file including content from reading another file !? silverhand Programming 2 10-06-2007 04:33 PM
mandriva 2006 - need to create my fstab from scratch di11rod Mandriva 14 01-10-2006 12:02 AM
changes to fstab file joanduan Linux - Newbie 3 03-10-2005 01:32 PM
installing problems: "cannot create mnt/etc/fstab" bullen Slackware 2 08-03-2002 09:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration