Peter’s Soapbox
Moving Grub from the MBR to the Install Partition
June 28, 2008 on 12:52 pm | In Techspeak |I realize this is nothing new to experienced Linux users, but I figured I’d document the process I used to move GRUB from the master boot record (MBR) of my notebook’s hard drive to the partition where I had Linux installed. I got the steps straight out of the Ubuntu forums as a result of a Google search for “move grub mbr.” The reason I am moving it is because, as I write this, I am using TrueCrypt to encrypt my entire Windows partition. To be able to boot Linux, I needed to move GRUB to make room for the TrueCrypt boot loader, since the MBR ain’t big enough for the both of them!
So, the process was:
- Identify the partition in which Linux is installed.
mount
Look for the/partition, which, in my case, is/dev/sda2(as/dev/sda1is where Windows lives on this machine). sudo grub-install /dev/sda2
Voila! GRUB now lives in/dev/sda2(as well as in the MBR).
Of course, there’s no real way to verify that this will work until you overwrite the MBR with something else, as GRUB still lives in the MBR, so effectively nothing has changed. In my case, I installed the TrueCrypt boot loader in the MBR. I then booted and selected my Linux partition from the TrueCrypt boot loader, which brought up my friendly GRUB boot menu! Now assured that things were working and that I could get back into Linux, even if I somehow hosed my Windows partition, I continued on with encrypting the entire partition.
No Comments yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
You must be logged in to post a comment.
Archives:
- October 2008 (1)
- September 2008 (2)
- August 2008 (7)
- July 2008 (22)
- June 2008 (7)
- May 2008 (14)
- April 2008 (13)
- March 2008 (7)
- February 2008 (13)
- January 2008 (8)
- December 2007 (11)
- November 2007 (10)
- October 2007 (8)
- September 2007 (18)
- August 2007 (25)
- July 2007 (10)
- June 2007 (2)
- May 2007 (1)
- March 2007 (4)
- February 2007 (3)
- January 2007 (1)
- December 2006 (1)
- October 2006 (3)
- September 2006 (1)
- August 2006 (9)
- July 2006 (2)
- June 2006 (6)
- May 2006 (4)
- April 2006 (3)
Blogroll
- Fresh Ubuntu - The Fresh Ubuntu podcast
- I, Blog - The blog of my former partner in podcasting crime
- Lotta Linux Links - Lotta Linux Links
- Partis Scientia - Scott’s Linux Tech Blog
- Scamwagon - The blog of my colleague, Scott McGrath









