Rumburak avatar

RUMBURAK'S HOME PAGE

I'm just a simple man trying to make my way through the universe

about tests tools articles links news contact blog guestbook homepage

How to make a bootable USB pendrive


Here are the commands I used to make
a pendrive with installed /boot linux partition
the Debian based distro used GRUB.
You can copy the full system on the pendrive ( without /sys and /proc)
but I needed only /boot , as I used it to start linux distro on HD.

First it was a regular linux system installed on HD (/dev/hda4).
Then after plugging pendrive was recognized as /dev/sda.

Fdisk formats pendrive then need to make ext3 partition
and copy /boot directory to USB.






Then on USB disc I needed to change two files,first:
/mnt/boot/grub/device.map
because system starts from USB , pendrive has to be the first one.
I swapped hda with sda
(hd0) /dev/sda
(hd1) /dev/hda
and second :
menu.lst, somewhere within change to
# groot=(hd0,0) kernel~(0,0)
finally the last command writes info to pendrive's MBR
# grub-install --root-directory=/mnt /dev/sda

With LILO the lilo.conf looks like :



|home page| Valid HTML 4.01 Transitional Valid CSS!

Free Web Hosting