I have a few suggestions for the liveUSB doc : - The part about configuring syslinux could be simpler : -- Current --------------------------- Code Listing 3.3: Copying the files # cp -r /mnt/cdrom/* /mnt/usb # mv /mnt/usb/isolinux/* /mnt/usb # mv /mnt/usb/isolinux.cfg /mnt/usb/syslinux.cfg # rm -rf /mnt/usb/isolinux* --------------------------------------- -- Proposed --------------------------- Code Listing 3.3: Copying the files # cp -r /mnt/cdrom/* /mnt/usb # mv /mnt/usb/isolinux /mnt/usb/syslinux # mv /mnt/usb/syslinux/isolinux.cfg /mnt/usb/syslinux/syslinux.cfg # rm -rf /mnt/usb/syslinux/isolinux* --------------------------------------- And a section could be added on "how to add support for both x86 and amd64 on the same key" : -- Proposed text : -------------------- You can even prepare a flash drive which can boot either in 32 or 64 bits mode, using the fact that a 64 bits kernel can execute 32 bits binaries (we will use a x86 liveUSB and add support for an amd64 kernel). 1) follow steps 1 to 3 for an "x86" system 2) download the liveCD for an "amd64" install 3) Rename the kernel to gentoo32 # mv /mnt/usb/syslinux/gentoo /mnt/usb/syslinux/gentoo32 # mv /mnt/usb/syslinux/gentoo.igz /mnt/usb/syslinux/gentoo32.igz 4) Mount on /mnt/cdrom the "amd64" iso 5) Copy the kernel from there # cp /mnt/cdrom/isolinux/gentoo /mnt/usb/syslinux/gentoo64 # cp /mnt/cdrom/isolinux/gentoo.igz /mnt/usb/syslinux/gentoo64.igz 6) Update the bootloader config Edit /mnt/usb/syslinux/syslinux.cfg : - replace all instances of "gentoo" with "gentoo64" - copy the blocks of lines starting with label / kernel / append and replace gentoo64 with gentoo32 in the copied blocks Update the /mnt/usb/syslinux/kernels.msg file (add references to the new kernels) 7) continue with step 4 Once you have booted on your USB key, you can start in 64 bits mode by typing "gentoo64" at the "boot" prompt, or in 32bits by typing "gentoo32".
(In reply to comment #0) > I have a few suggestions for the liveUSB doc : > - The part about configuring syslinux could be simpler : > > -- Current --------------------------- > Code Listing 3.3: Copying the files > # cp -r /mnt/cdrom/* /mnt/usb > # mv /mnt/usb/isolinux/* /mnt/usb > # mv /mnt/usb/isolinux.cfg /mnt/usb/syslinux.cfg > # rm -rf /mnt/usb/isolinux* > --------------------------------------- > > -- Proposed --------------------------- > Code Listing 3.3: Copying the files > # cp -r /mnt/cdrom/* /mnt/usb > # mv /mnt/usb/isolinux /mnt/usb/syslinux > # mv /mnt/usb/syslinux/isolinux.cfg /mnt/usb/syslinux/syslinux.cfg > # rm -rf /mnt/usb/syslinux/isolinux* > --------------------------------------- > > And a section could be added on "how to add support for both x86 and amd64 on > the same key" : > > -- Proposed text : -------------------- > You can even prepare a flash drive which can boot either in 32 or 64 bits mode, > using the fact that a 64 bits kernel can execute 32 bits binaries (we will use > a x86 liveUSB and add support for an amd64 kernel). > > 1) follow steps 1 to 3 for an "x86" system > 2) download the liveCD for an "amd64" install > 3) Rename the kernel to gentoo32 > # mv /mnt/usb/syslinux/gentoo /mnt/usb/syslinux/gentoo32 > # mv /mnt/usb/syslinux/gentoo.igz /mnt/usb/syslinux/gentoo32.igz > 4) Mount on /mnt/cdrom the "amd64" iso > 5) Copy the kernel from there > # cp /mnt/cdrom/isolinux/gentoo /mnt/usb/syslinux/gentoo64 > # cp /mnt/cdrom/isolinux/gentoo.igz /mnt/usb/syslinux/gentoo64.igz > 6) Update the bootloader config > Edit /mnt/usb/syslinux/syslinux.cfg : > - replace all instances of "gentoo" with "gentoo64" > - copy the blocks of lines starting with label / kernel / append and > replace gentoo64 with gentoo32 in the copied blocks > Update the /mnt/usb/syslinux/kernels.msg file (add references to the new > kernels) > 7) continue with step 4 > > Once you have booted on your USB key, you can start in 64 bits mode by typing > "gentoo64" at the "boot" prompt, or in 32bits by typing "gentoo32". > Actually, the "Dual kernel" doesn't work, because my 64 bits kernel doesn't manage to use the 32 bits modules, and vice-versa. Since the other improvement was quite minor, I think this should be closed as INVALID.