LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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: 314

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



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
[SOLVED] install Grub using Debian Live-CD cccc Debian 4 03-08-2019 09:11 PM
How to install GRUB only from Ubuntu 10.04 Live CD matrix13 Linux - Software 11 09-09-2012 09:55 PM
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 / openSUSE 2 07-13-2007 06:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:43 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