LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing GRUB to the MBR of external harddisk (https://www.linuxquestions.org/questions/linux-newbie-8/installing-grub-to-the-mbr-of-external-harddisk-640727/)

ilbozza 05-08-2008 02:57 AM

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

Simon Bridge 05-08-2008 03:10 AM

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".

ilbozza 05-08-2008 03:39 AM

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

ilbozza 05-08-2008 03:53 AM

oki it is suppos to be grub-install not grubinstall however the problem still remains

Simon Bridge 05-08-2008 05:09 AM

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.


All times are GMT -5. The time now is 04:58 AM.