Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-16-2011, 07:52 PM
|
#1
|
LQ Newbie
Registered: Jan 2006
Posts: 11
Rep:
|
How to move Grub2 from mbr to root partition
In Mint 10, how can I move Grub2 from the mbr to the root partition of Mint?
Thank you,
Bill
Last edited by BillD; 03-16-2011 at 07:53 PM.
|
|
|
03-16-2011, 07:54 PM
|
#2
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
You can't actually "move" it. But you can install it to the root partition and then reinstall something else over the MBR. To move it to the root partition, use grub-install /dev/sdXY where /dev/sdXY is your root partition.
Then install whatever else you want and let it overwrite the MBR.
|
|
|
03-16-2011, 10:34 PM
|
#3
|
LQ Newbie
Registered: Jan 2006
Posts: 11
Original Poster
Rep:
|
Well, when I tried that previously, it would not do it without using --force after warning me about blockfiles and to use --force, so I ended up with:
sudo grub-install --force /dev/sda6 (sda6 being my root partition). When I saw nothing happen when I rebooted, I added update-grub. What you are saying is that if I eliminate the current mbr and add a 3rd party bootloader, it should now boot Mint in the root partition?
Does it matter where --force is placed; i.e., before or after grub-install?
Should I have run update-grub as a second command in the terminal sequence before rebooting or did that screw it up?
Is there any way I can check to see if it really is in the root partition before altering the mbr? I can see nothing in the /boot/grub/grub.cfg that indicates where it is; i.e., it looks the same on a computer I did the above to and one that has it only in the mbr (that is it was installed in the mbr and is being used as the only bootloader).
Thanks,
Bill
Last edited by BillD; 03-16-2011 at 10:56 PM.
|
|
|
03-17-2011, 07:07 AM
|
#4
|
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
|
Quote:
Originally Posted by BillD
Well, when I tried that previously, it would not do it without using --force after warning me about blockfiles and to use --force, so I ended up with:
sudo grub-install --force /dev/sda6 (sda6 being my root partition). When I saw nothing happen when I rebooted, I added update-grub. What you are saying is that if I eliminate the current mbr and add a 3rd party bootloader, it should now boot Mint in the root partition?
Does it matter where --force is placed; i.e., before or after grub-install?
Should I have run update-grub as a second command in the terminal sequence before rebooting or did that screw it up?
Is there any way I can check to see if it really is in the root partition before altering the mbr? I can see nothing in the /boot/grub/grub.cfg that indicates where it is; i.e., it looks the same on a computer I did the above to and one that has it only in the mbr (that is it was installed in the mbr and is being used as the only bootloader).
Thanks,
Bill
|
I presume you did the force command from a live cd, if not use that and your command should work.
To check it on boot you can hit the 'e' key on boot and enter the command
menuentry "Linux @ sda6" {
set root=(hd0,6)
chainloader +1
}
That should boot your distro on sda6.
|
|
|
All times are GMT -5. The time now is 11:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|