LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-08-2008, 02:57 AM   #1
ilbozza
LQ Newbie
 
Registered: May 2008
Posts: 5

Rep: Reputation: 0
installing GRUB to the MBR of external harddisk


sorry if i am so stupid however i have a probem since i am having an error with the grub. I need to install the grub to the mbr of the external hard disk and netloader to the mbr of the internal hard disk.

Can anybody please tell me how to do such porcedure and also how to enter the "screen" to where i enter the commands?

thanks for your help in advance
 
Old 05-08-2008, 03:10 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You have also replied to the other thread.
You can also use google, as these are very common problems.

Install netloader from the windows rescue mode.
... take care: Windows often tries to erase any linux it sees.

Install grub from the Ubuntu live desktop CD.
Open a root terminal and enter "fdisk -l" and make a note of which /dev your external drive is. The internal drive will be /dev/sda ... so it's the other one. Lets say /dev/sdf.
Then enter "grub-install /dev/hdf".

Last edited by Simon Bridge; 05-08-2008 at 05:04 AM.
 
Old 05-08-2008, 03:39 AM   #3
ilbozza
LQ Newbie
 
Registered: May 2008
Posts: 5

Original Poster
Rep: Reputation: 0
thanks alot simonbridge however when i try the method above i get another error

dash: grubinstall: command not found

seems like a problem after the other thanks for your help and time
 
Old 05-08-2008, 03:53 AM   #4
ilbozza
LQ Newbie
 
Registered: May 2008
Posts: 5

Original Poster
Rep: Reputation: 0
oki it is suppos to be grub-install not grubinstall however the problem still remains
 
Old 05-08-2008, 05:09 AM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Thanks for spotting that - corrected.

OK - never mind. In the root terminal enter "grub"
Now you have entered the grub shell.

In the shell:

root (hd?,!)
setup (hd?)
quit

Where "?" should be replaced with the number the hard drive Linux is installed on and "!" the number of the partiton is is on.
Note!! Grub starts counting at 0, so /dev/hda3 would be (hd0,2) and /dev/hdb1 (hd1,0). No harm in trying to root several partitions when you don't know what hard disk or partition your install is on. When grub says it has rooted a ext2 or ext3 partition you've most likely found the right one.
 
  


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
Re-installing Grub on the MBR satyakb Mandriva 1 02-29-2008 06:07 AM
help on installing grub on mbr Paxmaster Linux - Software 6 01-10-2007 10:47 PM
Installing grub to root not mbr. acidblue Fedora 4 05-24-2006 07:48 PM
Installing Linux on USB External Harddisk compatible to HP Laptop yogesh_chitnis Linux - Hardware 0 04-17-2002 08:34 PM


All times are GMT -5. The time now is 06:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration