mandriva 2006 - need to create my fstab from scratch
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
mandriva 2006 - need to create my fstab from scratch
Had the power cut to my server the other day. Rebooted to superblock error. I think I fixed that, but my root partition had also been 100% full, so somehow I think /etc/fstab got hosed on one of these reboots. Anyway, now the only mount directive listed in /etc/fstab is for the cdrom drive. I need to re-add the different partitions because at boot it is erroring out with a problem mounting /
Is there a tool within the mandriva 2006 rescue or install that will look at my partition scheme and write a proper fstab file?
I know how to boot into the rescue console, etc. I also know how to use vi to edit the /etc/fstab file, but I don't know which partition should be which mount. lsparts shows them, but other than the swap, they aren't labelled for which should be /home /usr / and whatever.
Oh, yeah. I tried to use the mandriva 2006 install disk to 'upgrade' and when it gets to the 'partitions' section of the gui installer, it errors with-- 'an error occurred oops, no root partition.' with an 'ok' button. Then you can't do anything because everytime you click, 'ok', it just keeps displaying the same message. You have to shut off the computer to escape.
Personally, I'd try a Live cd, like slax, or knoppix.
slax allows editing of the file system, True, if it can find one, you may be able to search for fstab from there and copy the file, by pen and paper if necessary.
Knoppix has a program, qtparted, that is a gui view of the drives and any labels, sizes etcetera.
Not too sure that would work equinox, what if it has a sata drive amongst it (sda) or most probably windows on a another partition and maybe ext2 formatting.
If he boot's with any Linux cd which can give him a console he can do "fdisk -l" and "cat /proc/partitions". Then he can adjust the options according to my fstab. Really it's not difficult!
Thanks a lot for throwing these ideas out for me..
I am thinking my drive is OK but this fstab thing is the only problem. Maybe lilo bootloader, too? I don't have a windows partition or an SATA drive. Just three ext3 partitions and then a swap. Frustratingly, I don't remember which partition should mount to what... that's why I was hoping their was a tool that would look at the partitions and recommend an FSTAB setup.
I guess tonight I'll just try different combinations of / /etc /home /swap mount points for each of the partitions until I get it right.
Two other tangential questions related to this challenge-- I downloaded Knoppix and uncompressed it (CDROM version), but can't seem to make a bootable disk using NERO. the cdrom it makes mounts in windows and I can see the files, etc. but the computer won't boot it and all the relevant info seems to be in german.. any pointers for this would be appreciated.
Is there anything free that does the job of Mount Everything 3.5 other than r-linux? I'd like to at least copy all my stuff off this drive before anything else happens.
I used knoppix live CD and qtparted to examine the hard drive to deduce what mount points should be assigned to which paritions. Got it all running. Thanks so much for the advice, guys. Also, to anyone else reading this...
rebooting with a 100% full root partition can cause you to lose the settings in /etc/fstab
you will see an error about trying to mount / at boot. Running e2fsck doesn't do much for this problem. You need to boot from the Mandriva disc 1, press alt 1, then type rescue, then mount your partitions, then go to rescue console. Then edit /etc/fstab to add your partition info. lsparts command can help tell you what you got.
I couldn't write the /etc/fstab using Knoppix because it had mounted the partitions read only. Didn't know how to unmount and remount them. Knoppix is way cool. Much thanks to those folks and the cool people giving out answers on this forum!
In knoppix, you have to su to root to get write permisions, I think.
Glenn,
Yeah, I tried suing, but I'm pretty condident it was a mount issue. As root I still got a 'read only' error when I was trying to save /etc/fstab in vi. Didn't spend much time struggling with it, though, because I knew I could boot with the Mandriva disk to edit that file.
Again, thanks for the guidance. The two big things you guys helped me with was directing me to Knoppix and explaining how to write the disc and also giving me the /etc/fstab examples and telling me about qtparted.
rebooting with a 100% full root partition can cause you to lose the settings in /etc/fstab
Not sure this is of any use to you since you are talking about a server, don't know if you even have a gui on it. I have noticed over the last few days that there have been a number of threads here and in newbies that people are reporting full root partitions and loss of gui or worse. Got me thinking of KdiskFree. That is still installed in the menu, just not running on start up. I forget if it was one, two or three versions ago that Mandriva had it set to run on boot by default, but not anymore. It shows how full your partitions are and if any get critically full, it gives a pop up balloon to warn you. Would keep those running gui's from this nasty surprise.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.