Linux - NewbieThis 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!
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.
I installed gentoo-2005.1 on my amd 64 pc and it worked well but
the performance was not so good so i tried to recompile my kernel
using genkernel and then when i rebooted i found the error
something like that root cant be mounted . I also have ubuntu amd windows xp installed on my pc . So then I started ubuntu and tried to mount root partition of gentoo but it could not be mounted and resulted
as below
wrong fs type, bad option, bad superblock on /dev/hda8, missing
codepage or other error In some cases useful info is found in
syslog - try dmesg | tail or so
my /boot is in hda6 and root is /dev/hda8
and my grub.conf file is as below
default 0
fallback1
timeout 30
splashimage=(hd0,5)/grub/splash.xpm.gz
title Gentoo Linux 2.6
# Partition where the kernel image (or operating system) is located
root (hd0,5)
kernel /kernel-2.6.12-gentoo-r6 root=/dev/hda8
which one is your primary (most used distro)? Choose this one and mount each of the other two to /mnt (do this once or mount the second distro to something like /mnt/distro2 otherwise you'll get duplicate problems, etc.) Copy the kernels and the initrd (s) from each of these into the /boot directory of your preferred distro. This is where you should boot each of your Linuxes from, if you don't have a separate /boot. (I had the EXACT same problem lately and repartitioned my disk with shared /boot and shared /home, etc)
Now you'll have to debug the menu.lst entries in grub. You can either copy them from the other two distros into your preferred distro's menu.lst or try at boot time to manually edit the boot record. Option 2 would be easier in that if it fails at this stage, it's an awful lot faster just to power down and try again. The way you do this is when grub shows the menu (e.g. Gentoo, Ubuntu, GNU/Linux (that's Debian I take it??), Windows) go down to whatever one you wish to boot and press 'e' - which lets you edit in a console setting.
You will probably have to change the initrd to where it now resides at. If you let me know which distro you want as your preferred distro, I might be able to point yu in the right direction
title Gentoo Linux 2.6
# Partition where the kernel image (or operating system) is located
root (hd0,5)
kernel /kernel-2.6.12-gentoo-r6 root=/dev/hda8
If the above is correct then the grub descriptor root (hd0,5) is incorrect. This transcribes as root is at drive 1 and partition 6. It should be (hd0,7) = /dev/hda8
Thanx to you both but I am not even able to mount hda8 in ubuntu or even in knoppix live cd and when i try to mount hda8
as below
mount /dev/hda8 /mnt/hda8
it gives the following error
mount: wrong fs type, bad option, bad superblock on /dev/hda8,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
If you cannot mount the partition using Knoppix then using Knoppix bring up a console and do e2fsck /dev/hda8 because it sounds like the partition may be corrupted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.