Live_USB_stick
Contents |
Introduction
This guide describes a lazy man's way of creating a Gentoo USB install medium from existing Gentoo install ISOs. This currently only handles x86 and AMD64 (x86_64) platforms.
Handling live data can be dangerous:
- CREATE A BACKUP BEFORE STARTING. (at least of your bootsectors, before handling grub, and your USB-Stick, but you should have that data backed up anyway).
Prerequisites
- One USB Stick of at least 128 MB in size (64 might work, too)
- GRUB, and grub stagefiles on the PC making the USB Stick
- loopback mount capability in the kernel, if an iso is used
Install
Preparing the stick
Nothing much to prepare, really, you can leave the fs it has, provided you can write to it from your PC and grub is able to read it later. (The USB-Stick default vfat fs is fine).
You don't even have to wipe the stick, just make sure there is enough space for the files we put on later.
Mount the stick somewhere in your Filesystem. This guide will assume /dev/sde for the stick and /mnt/usb for the mountpoint
mount /dev/sde1 /mnt/usb
Preparing the source
- Go to a Gentoo Mirror and download the appropriate minimal disk for your tarkget architecture, or insert Gentoo Minimal BootCD into your CDROM-drive.
mount your CD or iso (don't forget to use -o loop if mounting an iso file)
# mount /dev/cdrom /mnt/cdrom -- or in case of an iso: # mount -o loop /path/to/install-x86-minimal-2008.0.iso /mnt/cdrom
Copy the data to the stick
copy all the files recursively from the CD or ISO to your USB Stick.
cp -rv /mnt/cdrom/* /mnt/usb
now mount your /boot partition (if you are running this on a gentoo PC and followed the installation guide you almost certainly have one) and copy the grub stages to the stick's boot/ directory
mount /boot cp /boot/grub/stage* /mnt/usb/boot/grub
Now you can safely umount your CD/ISO and the stick
umount /mnt/cdrom /mnt/usb
Install GRUB
Now you only need to install grub on the stick, and you're done!
You can find out which number your USB should be by tabbing after you type the root (hd part, usually it's the last number if you plugged it in after your PC booted completely.
# grub --no-floppy > root (hd6,0) > setup (hd6) > quit
See also
Browse categories > Gentoo Linux Wiki > Wiki maintenance > Articles to be merged
Browse categories > Installation > LiveUSB
Created by NickStallman.net, Luxury Homes Australia
Real estate agents should be using interactive floor plans and real estate agent tools.
