LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-06-2009, 09:34 PM   #1
sirbender
LQ Newbie
 
Registered: May 2008
Posts: 6

Rep: Reputation: 0
How do I install Grub into the Partition Boot Record (PBR)?


I installed Ubuntu and allowed Grub to write itself into the MBR. Now I want to install Grub into the PBR of my Ubuntu Partition. After that I will write my own install of Grub from another partition into the MBR which will allow calling the PBR of my Ubuntu partition and eventually boot Ubuntu.

I know how to do step two. What I do not know is how install Grub into the Partition Boot Record (PBR)?

Cheers,
sb
 
Old 01-06-2009, 10:11 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Try this from a Ubuntu terminal
Code:
sudo grub
find /boot/grub/stage1 <<<=== try /grub/stage1 if you get "File not found"
 .... take note of what it returns - maybe (hd0,1)
root <enter_what_was_returned>   e.g. root (hd0,1)
setup <enter_what_was_returned>   e.g. setup (hd0,1)
quit

Last edited by syg00; 01-06-2009 at 10:15 PM.
 
Old 01-06-2009, 10:22 PM   #3
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
I believe it's called the superblock, not PBR. Never mind, you just need to give the proper location to the "grub-install" command or, if you're using the live DVD, the "setup" command. For example,

grub-install /dev/hda1
grub-install '(hda0,0)'
or
setup (hd0,0)

will install grub in the superblock of the first partition.
 
Old 01-06-2009, 11:04 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I thought the "superblock" was associated with filesystems??

Regardless---boot code can go in the MBR (first sector of the drive) or the *** (first sector of a partition)

In the GRUB shell:

setup (hd0) puts GRUB in the first sector (MBR) of the #1 drive

setup (hd0,0) puts GRUB in the first sector of Drive 1, partition 1.
 
1 members found this post helpful.
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB install into Volume Boot Record r5. Linux - General 7 06-05-2008 09:34 AM
remove GRUB from windows partition boot record Krun Linux - Newbie 3 09-13-2007 04:51 PM
Grub install with separate boot partition oomfoofoo Slackware - Installation 3 12-29-2006 11:04 AM
Bad PBR sig when trying to boot FC5 install DVD Eccentric Linux - Newbie 6 11-29-2006 10:38 AM
Install Grub/Lilo at the First Sector of the Boot Partition?? ckamheng Linux - General 2 08-21-2004 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:44 AM.

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
Open Source Consulting | Domain Registration