LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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



Reply
 
Search this Thread
Old 03-16-2011, 07:52 PM   #1
BillD
LQ Newbie
 
Registered: Jan 2006
Posts: 11

Rep: Reputation: 0
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.
 
Old 03-16-2011, 07:54 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 03-16-2011, 10:34 PM   #3
BillD
LQ Newbie
 
Registered: Jan 2006
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 03-17-2011, 07:07 AM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by BillD View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Boot Loader to root partition, NOT to MBR raphaelmsx Calculate 4 01-02-2010 08:16 AM
Can I move /home partition under root partition arijit_2404 Linux - General 3 07-05-2007 01:01 AM
How to move root partition from external usb to /dev/hda noasprin Linux - Hardware 2 02-08-2007 09:20 AM
how to move root parition to a larger partition miner49er Linux - General 2 04-23-2006 04:38 AM
MBR or root partition? kintaroe Linux - Newbie 3 09-03-2004 11:15 PM


All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration