Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307239 - Improve documentation for liveUSB : less commands, support for both amd64 and x86 systems
Summary: Improve documentation for liveUSB : less commands, support for both amd64 and...
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/liveusb.xml
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-28 22:31 UTC by Raphaël Barrois
Modified: 2011-01-07 10:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphaël Barrois 2010-02-28 22:31:39 UTC
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".
Comment 1 Raphaël Barrois 2011-01-07 10:14:27 UTC
(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.