From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HmAvX-00019C-CY for garchives@archives.gentoo.org; Thu, 10 May 2007 15:51:36 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l4AFpDfN002643; Thu, 10 May 2007 15:51:13 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l4AFpB0Q002610 for ; Thu, 10 May 2007 15:51:12 GMT Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 2BC4264760 for ; Thu, 10 May 2007 15:51:11 +0000 (UTC) Received: from neysx by stork.gentoo.org with local (Exim 4.60) (envelope-from ) id 1HmAv7-0002JS-JV for gentoo-doc-cvs@lists.gentoo.org; Thu, 10 May 2007 15:51:09 +0000 To: gentoo-doc-cvs@lists.gentoo.org Subject: [gentoo-doc-cvs] cvs commit: liveusb.xml Message-Id: From: Xavier Neys Date: Thu, 10 May 2007 15:51:09 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-doc-cvs@gentoo.org Reply-to: docs-team@lists.gentoo.org X-Archives-Salt: 2847e723-f8a6-42fd-8814-04e3322e4dfc X-Archives-Hash: 9ff06d9de0f603054806bb46b5cd843e neysx 07/05/10 15:51:09 Modified: liveusb.xml Log: #173117 update to 2007.0 Revision Changes Path 1.13 xml/htdocs/doc/en/liveusb.xml file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/liveusb.xml?rev=1.13&view=markup plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/liveusb.xml?rev=1.13&content-type=text/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/liveusb.xml?r1=1.12&r2=1.13 Index: liveusb.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/liveusb.xml,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- liveusb.xml 22 Dec 2006 07:33:38 -0000 1.12 +++ liveusb.xml 10 May 2007 15:51:09 -0000 1.13 @@ -1,6 +1,6 @@ - + Gentoo Linux LiveUSB HOWTO @@ -8,18 +8,21 @@ Henrik Brix Andersen + + Xavier Neys + This HOWTO explains how to create a Gentoo Linux LiveUSB or, in other words, -how to emulate a Gentoo Linux Installation CD using an USB flash drive. +how to emulate an x86 or AMD64 Gentoo Linux LiveCD using a USB flash drive. -1.7 -2006-12-21 +2 +2007-05-10 Introduction @@ -29,15 +32,15 @@

This HOWTO explains how to create a Gentoo Linux LiveUSB or, in other -words, how to emulate a Gentoo Linux Installation CD using an USB flash drive. -This is particularly useful for installing Gentoo Linux on a modern laptop with -no CD-ROM drive. +words, how to emulate an x86 or AMD64 Gentoo Linux LiveCD using a USB flash +drive. This is particularly useful for installing Gentoo Linux on a modern +laptop with no CD-ROM drive.

Although the instructions found in this document aim at emulating a Gentoo -Linux Installation CD using an USB flash drive, they should work for any -arbitrary block device as long as you adjust the device names accordingly. +Linux LiveCD using a USB flash drive, they should work for any arbitrary block +device as long as you adjust the device names accordingly.

@@ -51,10 +54,8 @@

    -
  • Bootable USB flash drive (at least 64MB)
  • -
  • - x86 computer with support for booting from USB -
  • +
  • Bootable USB flash drive with at least 1GB
  • +
  • i686 or x86_64 computer with support for booting from USB

@@ -68,6 +69,14 @@ + +If you want to use the minimal CD on a smaller key or boot a <i686 system, +you need to follow the procedure described in this document with a +2006.0 minimal CD image because of a bug in more recent +releases. + + @@ -83,25 +92,29 @@ -This HOWTO assumes that the /dev/sda device node corresponds to +This HOWTO assumes that the /dev/sdc device node corresponds to your USB flash drive. If you have other SCSI-like devices make sure to use the correct device node.

-Create a FAT32 partition on your USB flash drive and mark it bootable using +Create a FAT16 partition on your USB flash drive and mark it bootable using fdisk. An example partitioning scheme can be seen below:

+ +If your key is 4GB or larger, use partition type b (W95 FAT32). + +
-# fdisk -l /dev/sda
+# fdisk -l /dev/sdc
 
-Disk /dev/sda: 1048 MB, 1048313856 bytes
-33 heads, 61 sectors/track, 1017 cylinders
-Units = cylinders of 2013 * 512 = 1030656 bytes
+Disk /dev/sdc: 2063 MB, 2063597056 bytes
+255 heads, 63 sectors/track, 250 cylinders
+Units = cylinders of 16065 * 512 = 8225280 bytes
 
    Device Boot      Start         End      Blocks   Id  System
-/dev/sda1   *           1        1017     1023580    b  W95 FAT32
+/dev/sdc1   *           1         250     2008124+   6  FAT16
 
@@ -111,13 +124,17 @@

-Create a FAT32 filesystem on the USB flash drive using mkdosfs: +Create a FAT16 filesystem on the USB flash drive using mkdosfs:

+ +If your key is 4GB or larger, use -F 32 to create a FAT32 filesystem. + +
 (Make sure you have sys-fs/dosfstools installed)
 # emerge -av sys-fs/dosfstools
-# mkdosfs -F 32 /dev/sda1
+# mkdosfs -F 16 /dev/sdc1
 mkdosfs 2.11 (12 Mar 2005)
 
@@ -135,35 +152,33 @@
 (Make sure you have sys-boot/syslinux-3.00 or later installed)
 # emerge -av '>sys-boot/syslinux-3'
-# dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
+# dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdc
 0+1 records in
 0+1 records out
+304 bytes (304 B) copied, 0.0162317 s, 18.7 kB/s
 
+ -Copying the files +Copying the files to your key
Mounting the Gentoo Linux Installation CD - -This guide is designed only to be used with Gentoo 2006.0. Do not attempt to -use a 2006.1 CD or newer; you will end up with an unbootable USB disk. - -

-Download the install-x86-minimal-2006.0.iso file from your -local Gentoo Linux mirror site and mount -the ISO image on /mnt/cdrom/ as shown below: +Download either livecd-i686-installer-2007.0.iso or +livecd-amd64-installer-2007.0.iso from your local Gentoo Linux +mirror site and mount the ISO image on +/mnt/cdrom as shown below:

-(Create the /mnt/cdrom/ mount point if needed)
+(Create the /mnt/cdrom mount point if needed)
 # mkdir -p /mnt/cdrom
-# mount -o loop,ro -t iso9660 install-x86-minimal-2006.0.iso /mnt/cdrom/
+# mount -o loop,ro -t iso9660 livecd-i686-installer-2007.0.iso /mnt/cdrom
 
@@ -179,14 +194,14 @@

-Mount the newly formatted USB flash drive on /mnt/usb/ as shown +Mount the newly formatted USB flash drive on /mnt/usb as shown below:

-(Create the /mnt/usb/ mount point if needed)
+(Create the /mnt/usb mount point if needed)
 # mkdir -p /mnt/usb
-# mount -t vfat /dev/sda1 /mnt/usb/
+# mount -t vfat /dev/sdc1 /mnt/usb
 
@@ -202,8 +217,8 @@

-# cp -r /mnt/cdrom/* /mnt/usb/
-# mv /mnt/usb/isolinux/* /mnt/usb/
+# 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*
 
@@ -216,7 +231,7 @@
 

-# umount /mnt/cdrom/
+# umount /mnt/cdrom
 
@@ -227,68 +242,22 @@

Adjust the syslinux configuration file using sed as shown below. The -dobladecenter parameter will introduce some extra delays before -attempting to mount the filesystem. This is needed to allow the USB -flash drive to settle upon detection. +slowusb parameter will introduce some extra delays before attempting to +mount the filesystem. This is needed to allow the USB flash drive to settle +upon detection.

 # sed -i \
-    -e "s:cdroot:cdroot dobladecenter:" \
+    -e "s:cdroot:cdroot slowusb:" \
     -e "s:kernel memtest86:kernel memtest:" \
     /mnt/usb/syslinux.cfg
 
- -Consider adding docache to the boot parameters. This will allow running -umount /mnt/cdrom/ after booting so that you can unplug the USB flash -drive. Do not enable this unless the target computer has at least 128MB RAM. - - - -
+ Installing a bootloader
@@ -300,7 +269,7 @@

-# umount /mnt/usb/
+# umount /mnt/usb
 
@@ -314,11 +283,11 @@

-# syslinux /dev/sda1
+# syslinux /dev/sdc1
 
-You will need to rerun syslinux /dev/sda1 each time you modify the +You will need to rerun syslinux /dev/sdc1 each time you modify the syslinux.cfg file for the configuration changes to take affect. -- gentoo-doc-cvs@gentoo.org mailing list