How to install grub or lilo to an external usb hd
Hello everyone, Im trying to install linux into my new usb hd (it's a maxtor touchIII).
I can't even get a stage2 boot loader loaded, lilo give me alot of error code 40 and grub : hard disk error.
How I can install one of those boot loader, into my hd. The first partition is ext3 and my host system detect it as sda1.
ps. Im not even in the process of tweaking the initrd to load the usb driver ...
Thx in advance
First, your BIOS have to have support to boot to a USB disk. If it does not, you have to use either a floppy or CD/DVD disc to use USB disks.
In order to boot up Linux from a USB, you have to make sure all the required modules are in initrd file. Some people set the kernel to have USB and its devices set as built-in. The USB storage software in the kernel works best as a module instead as built-in. Also you may have to edit the initrd setup, so it can detect the drives before moving on using pivot and other commands to boot up Linux.
installing a grub on a USB/SCSI device is easy. First use a Live Linux and boot to it. Next get your USB disk activated and mount it. Mount proc where you mount your USB disk. Then use chroot. After you have chroot, type source /etc/profile. Then you can type grub. In the grub command prompt, type root (hd<tab>. Pick the USB drive. Lets say h0 is your USB disk. Then type root (hd0,<tab> to pick partition where the boot directory is located. Next type setup (hd0). After it is done, type quit. Finally exit from the chroot and reboot.
|All times are GMT -5. The time now is 10:47 AM.|