LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-27-2011, 05:40 PM   #1
woow
LQ Newbie
 
Registered: May 2011
Distribution: CentOS 6.2
Posts: 11

Rep: Reputation: Disabled
Question grub-install via Live CD to GUID partition


Hi

How to install grub in /sdb3 /media/{some-uuid} via Live CD?

# mount
# -> /dev/sd3 /media/{some-guid}
# grub-install --force --root-directory=/media/{some-guid} /dev/sda3

Thank you.

Last edited by woow; 06-27-2011 at 05:40 PM. Reason: precition
 
Old 06-27-2011, 05:56 PM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,881

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
Which Grub are you using? Grub Legacy? Grub2? Which distribution of Linux? What have you tried? What happens when you try whatever you have tried? Any output? Error messages?
 
Old 06-28-2011, 03:26 AM   #3
woow
LQ Newbie
 
Registered: May 2011
Distribution: CentOS 6.2
Posts: 11

Original Poster
Rep: Reputation: Disabled
I use F15, in dual boot with win7. After boot I'm prompting with grub> command line. So, I use Live CD ..

# grub-install /dev/sdb3
-> /dev/mapper/ ../dm-0 does not have any corresponding BIOS drive
# grub-install --force --root-directory=/media/{some-guid} /dev/sdb3
-> Unrecognized option `--force`
# grub-install --root-directory=/media/{some-guid} /dev/sdb3
-> /dev/sdb3 does not have any corresponding BIOS drive

# grub --version
-> grub(CNU GRUB 0.97-71.f15)

From grub> command prompt I have tried
# root (hd0,2)
-> Filesystem found
# kernel /bo[tab]
-> Could not mount filesystem
 
Old 06-28-2011, 09:13 AM   #4
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,881

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
Did you have windows 7 installed and working for some time?
Is this a new installation of Fedora?
Were you ever able to boot into Fedora?
Fedora uses Grub Legacy.
How many physical hard drives do you have? Your output shows trying to install grub to sdb3 and sda3 which would be the third partition on the second hard drive and the third partition on the first hard drive. You probably did not install Grub to the master boot record? Were you planning to boot both systems with the windows bootloader?

Use the Fedora CD, open a terminal and log in as root (type: su -) and enter this command to get partition information to post: fdisk -l(that is a lower case Letter L).

Posting the contents of the grub.conf file from the installation would be helpful. Do you know how to mount partitions/filesystems?
 
Old 06-28-2011, 03:03 PM   #5
Karl Godt
Member
 
Registered: Mar 2010
Location: Kiel , Germany
Distribution: once:SuSE6.2,Debian3.1, aurox9.2+3,Mandrake?,DSL? then:W7st,WVHB, #!8.10.02,PUPPY4.3.1 now:Macpup
Posts: 308

Rep: Reputation: 45
I am not sure about /dev/sdb3
I think it should be
Code:
grub-install --root-directory=/media/{some-guid} /dev/sdb
to install to MBR .
/dev/sdb3 would install to superblock of the sdb3 partition and not to MBR of the sdb drive I think .

Quote:
root (hd0,2)
this '0' means sda and '2' partition 3

To me it looks like you want to boot the HD by the MBR of the USB pen .

Is this UUID correct ?

Code:
blkid /dev/sda
would show the UUIDs of all partitions of /dev/sda .
 
  


Reply

Tags
grub config


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
How to install GRUB only from Ubuntu 10.04 Live CD matrix13 Linux - Software 11 09-09-2012 09:55 PM
[SOLVED] install Grub using Debian Live-CD cccc Debian 1 06-21-2011 11:19 AM
can you use gparted to create a partition that is in GUID format baronobeefdip Linux - Software 1 02-28-2011 10:21 AM
get "Client Mac Addr 00 C0 .... Guid DHCP" on boot before grub, Why? MurX Ubuntu 2 02-23-2008 09:43 AM
GUID Partition Table / Disk Label Slipstream2006 Suse/Novell 2 07-13-2007 06:53 AM


All times are GMT -5. The time now is 11:34 AM.

Main Menu
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