|
Howto: Convert a Gentoo install CD for use on a USB drive
If you've got a small (<1G) USB drive you'd want to use to install Gentoo, the Gentoo LiveUSB HOWTO won't work as the latest minimal/install CD has not got proper vfat support, and you would need atleast a 1G drive for a Live CD. You can also skip to the downloads if you don't want to create your own. Downloading the .isoYou will need to download the minimal install CD from a mirror near you. It will be under releases/your_arch/version_you_are_using/. In this example we will be using a x86 iso. # wget http://your_mirror.com/releases/x86/2008.0_beta1/install-x86-minimal-2008.0_beta1.iso Mounting the iso imageTo copy the files from the CD we will use a loop device. For this you will need the loop driver (CONFIG_BLK_DEV_LOOP). If you have compiled it as a module, modprobe it first # modprobe loop Now mount and copy the files
# mkdir -p /mnt/{usb,cdrom,removable} Formatting the USB driveYou will need to create a large enough ext2 partition for the files in /mnt/usb. In this example /dev/sdc is the USB drive we will use. Make sure you use the right drive or you might overwrite something important.
# mke2fs -L "Gentoo USB" /dev/sdc1 Copying the filesNow copy the files onto the USB disk.
# cp -a /mnt/cdrom/* /mnt/usb/ Setup the bootloader
You will need to setup Grub/extlinux on the drive to make it bootable.
# cd /mnt/usb/boot/grub On 2007.0 and older:
# emerge -na syslinux
Ready built images
A few pre-assembled USB images. # gunzip -c file_name.gz > of=/dev/sdc
x86 2007.0-r1 - fits on >=64M drive |
|
| Images by Mrs A. Linnapuomi | |