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 have three Ubuntu partitions: /dev/hda1 (an older backup), /dev/hdb2 (a newer backup), and /dev/hda1 (the new partition I plan to use). Both backups can be deleted once I can get a menu entry that will boot to /dev/hda1. However, I've edited all my menu.lst entries, none of them effect grub's menu anymore unfortunately. It has a spelling error in the entry for /dev/hda1 and I've fixed it and refixed and rebooted several times and it's still there. It's quite frustrating.
So I tried using grub-install to make grub install itself onto the Master Boot Record. Here are my results:
Quote:
fatsheep:~$ sudo grub-install /dev/hdb2
Password:
The file /boot/grub/stage2 not read correctly.
I've rebooted since then and still the menu is the same and I cannot boot to /dev/hda1. I'm in need of some help.
How are you installing GRUB? eg are you using a live CD?
I prefer the "native" method for installing GRUB---open the grub shell, and enter:
root (hdX,Y)
setup (hd0)
the root command tells the grub installer where /boot is--ie where the GRUB files are. If it is hda1, then the command will be "root (hd0,0)"
The booting article at my site (link below) may be useful
Well grub files are installed in all of my ubuntu partitions but I tried to install it with grub-install while in one of my ubuntu partitions. I will try your method next.
How are you installing GRUB? eg are you using a live CD?
I prefer the "native" method for installing GRUB---open the grub shell, and enter:
root (hdX,Y)
setup (hd0)
the root command tells the grub installer where /boot is--ie where the GRUB files are. If it is hda1, then the command will be "root (hd0,0)"
The booting article at my site (link below) may be useful
Ok your method worked once but it's no longer working and in any event it appears it only had effect on the next boot. I need a permanent fix for the problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.