Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 am facing the following problem:
I have a dual-boot system (PC Linux OS + Win XP); XP is on partition hd1, PCLOS USED TO BE on partition hd9
I had to re-install XP (of course, after 2.5 yrs), which of course smashed my Grub menu on MBR.
Furthermore, while installing XP, I asked to completely format what was C: and clever Windows shifted most my partitions on the partition table. Hence, PCLOS went on hd10.
Recovering Grub was little problem after all, via the live CD. I just had to setup it + editing the /boot/grub/menu.lst file by replacing "hd9" with "hd10" everywhere.
So, now Grub works again and launches PCLOS, but the latter booting then freezes at once and my laptop hard-drive LED starts blinking... is there any other file where I should change "hd9" to "hd10" to make work again? Or just too many?
I'm not quite sure how a Windows install would shift partition numbers like that....but that's another story.
Assuming that you can recover by editing menu.lst, you need to edit two entries in each menu item:
Here is a typical entry--for the case where there is no separate partition for /boot:
Code:
title Kubuntu
root (hd0,4)
kernel /boot/vmlinuz root=/dev/sda5
initrd /boot/initrd
boot
I have put the two entries to be changed in bold. The first tells GRUB where it's files are, and is in "grubese" ---(hd0,4) means the 5th partition on drive #1.
The second entry (in Linuxese) tells the kernel what partition to mount as /.
I fixed the root entry in menu.lst and with that the PCLOS was launched and but notified an error after a while.
The I fixed the fstab file as well (/ and /home were wrong) and now everything works as before! I am now posting in my Linux environment...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.