LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-16-2009, 10:09 AM   #1
firewiz87
Member
 
Registered: Jan 2006
Distribution: OpenSUSE 11.2, OpenSUSE 11.3,Arch
Posts: 240

Rep: Reputation: 37
grub2 installation problem


I want to install grub2 into my external hard drive... so that i can boot from my external HDD when necessary....

So this is what i did:
1. Downloaded grub 1.96
2. Build as per instructions
3. Run the command grub-install /dev/sdb

where sdb is my external hard disk... but after issuing the grub-install, i noticed that no /boot/grub folder was created in the ext.HDD. I think the /boot of my system was replaced.... i had a backup luckily.

Since the command, grub-install /dev/sdb is supposed to install grub to /dev/sdb.... should nt it copy the files to /boot/grub inside /dev/sdb ??

Is this what the grub-install is supposed to do?? how can i make it copy the files to the ext hard disk??

thanks for your help in advance....
 
Old 08-16-2009, 12:45 PM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Why did you download grub ?
Grub is always provided by the distro you are installing.
At the rescue mode of linux rescue

type the next commands
chroot/mount/sysimage/
grub install /dev/sdb/
 
Old 08-16-2009, 02:35 PM   #3
firewiz87
Member
 
Registered: Jan 2006
Distribution: OpenSUSE 11.2, OpenSUSE 11.3,Arch
Posts: 240

Original Poster
Rep: Reputation: 37
This is grub2 i am talking about.... wanted to test it
 
Old 08-17-2009, 12:10 AM   #4
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by firewiz87 View Post
This is grub2 i am talking about.... wanted to test it
Did opensuse 11 not using GRUB 2
 
Old 08-17-2009, 02:56 AM   #5
firewiz87
Member
 
Registered: Jan 2006
Distribution: OpenSUSE 11.2, OpenSUSE 11.3,Arch
Posts: 240

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by ronlau9 View Post
Did opensuse 11 not using GRUB 2
As far as i know, openSUSE 11.1 does not use grub2.From what i have read, I think only ubuntu jaunty (as of now) gives users the ability to upgrade to grub2 through package manager... all rescue CD's as of now uses grub legacy not grub2 thats why i had to download n build it

Anyway the problem has been resolved. It was a misunderstanding from my part.... ie i thought the command,
Code:
grub-install /dev/sdb
copied the grub files to boot folder inside /dev/sdb where as it installed the grub files to the /boot of the system on which the command is executed.

The correct way to install grub to a non-native device is by using the root-directory option as shown below:
Code:
grub-install --root-directory=/mnt/usbdevice /dev/sdb
where /mnt/usbdevice is the mount point of /dev/sdb1

Thanks for your help my friends...

Last edited by firewiz87; 08-17-2009 at 03:00 AM.
 
  


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
grub2 mbvo Slackware 7 11-12-2009 06:06 AM
Splashimage for Grub2 in Lenny megaprog Debian 12 10-21-2009 12:16 PM
debian sid and grub2 problem jackgu1988 Debian 39 08-08-2009 09:42 PM
grub problem and looking for grub2 docs m-jackson Linux - Newbie 1 10-27-2006 02:18 AM
Editing GRUB2 ssinustwo Fedora - Installation 1 07-20-2004 09:16 PM


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