Use cases - Ubuntu 8.10 on USB device

Disk configuration

USB Device

BIOS configuration

GRUB installation

Additional notes

None.

Usage instructions

One can use grub2 to boot ubuntu with an usbdrive instead of burning a cd.

:# fdisk /dev/sdb

:# mount /dev/sdb2 ~/usbdrive

:# mkdir -p ~/usbdrive/boot/grub

:# echo (hd0) /dev/sdb>~/usbdrive/boot/grub/device.map

:# vim ~/usbdrive/boot/grub/grub.cfg

set default=0
set timeout=5
set root=(hd0,2)
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd-gu.gz quiet splash --
initrd /casper/initrd-gu.gz

:# grub-install --root-directory=~/usbdrive/ /dev/sdb

:# mount -o loop ~/downloads/u8.10.iso ~/isoimage

:# cp -rfv ~/isoimage/* ~/usbdrive

Thats it! :)


CategoryDeveloper

GrubWiki: UseCases/Ubuntu (last edited 2008-11-22 23:13:31 by VesaJääskeläinen)