Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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 need to recover my Grub bootloader after having to reinstall Windows XP. So far, I did the following:
Booted with Mandriva 2006 Live Cd
su
mkdir /mnt/hda3
mount /dev/hda3 /mnt/hda3
chroot /mnt/hda3
sudo /sbin/grub-install /dev/hda (this didn't work because the "grub-install" file was not found. So, I did a file search and foud it at /usr/sbin, so go to the next line)
sudo /usr/sbin/grub-install /dev/hda
After the last command, I got the following error:
/dev/ide/host0/bus0/target0/lun0/part3: Not found or not a "something" device (I can't remember what "something" was)
So, I am a at this and don't know why it didn't work. Any suggestions?
By the way, I am using Mandrake 10.0 on hda3, a linux swap on hda7, and winxp on hda1.
Thanks, TruongAn. It looks like it recovered it, but I haven't tested Linux. By the way, the last command should have been "setup (hd0)".
So, for those of you that are needing to restore your GRUB bootloader, here is what I did:
Code:
Booted with Mandriva 2006 Live Cd
Looked in the config panel to get the mount point of my linux distro, and opened the console for the following commands:
su
mkdir /mnt/hda3
mount /dev/hda3 /mnt/hda3
chroot /mnt/hda3
grub
root (hd0,2)
setup (hd0)
well, it looks like I might have spoken too soon. I tried booting into linux and it gave me the following error:
resuming from /dev/hda6
resuming from device hda6
kernel panic: Resuming Machine: Unable to find suspended-data signature (a bunch of symbols) - misspelled?
One thing that I am a little worried about is that from Windows I used Partition Magic to make another partition. Is it possible that messed it up? If so, how to I fix it? I don't think I even have a hda6 anymore.
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728
Rep:
You can boot into linux means grub problem was fixed.
The kernel panic is another problem
Would you mind show us your partition table.
Post the output of command fdisk -l here please
well, I decided to edit the menu.lst file to remove the "resume" parameter. This worked and I was able to boot into linux. However, I am not sure if I need that parameter and just need to fix the broken link or even where it came from. I don't remember putting it in there and can't figure out why it would be looking at a NTFS drive. Any thoughts?
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728
Rep:
The role of the parameter is depend on your distro.
I have no though.
On my FC box, the parameter is :
rhgb ro root=LABEL=/ quiet
I don't know what rhgb is.
At first it work fine.
But then I have to reinstall grub (just like your case), and I got a kernel panic: cannot mout root fs.
I try to edit the parameter and it worked after I remove the rhgb.
You and I have experienced the same problem.
I just know how to fix it, I don't know why I got it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.