====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
eb_imagetypes [2007/03/07 15:26] stevem |
eb_imagetypes [2007/04/07 04:00] (current) stevem |
||
---|---|---|---|
Line 145: | Line 145: | ||
</file> | </file> | ||
- | ==== EtherBoot from USB flash key ==== | + | ==== EtherBoot from USB flash ==== |
- | An EtherBoot initial load from USB flash media, perhaps a flash key,is quite staightforward provided of course that your BIOS can boot from USB in the first place. A modern BIOS probably will be able to do this, however there are two possible USB boot geometries and your BIOS may be able to boot from only one of them. | + | An EtherBoot initial load from USB flash media is quite staightforward provided of course that your BIOS can boot from USB in the first place. A modern machine will probably be able to do this. |
- | Also required: | + | - BIOS |
+ | - USB master boot record | ||
+ | - USB partition boot record | ||
+ | - SYSLINUX | ||
+ | - EtherBoot | ||
+ | - Linux kernel | ||
+ | |||
+ | Your BIOS should really be able to boot from any sensible arrangement of partitions and boot sectors, but it might insist that a ZIP DRIVE geometry be used. | ||
+ | |||
+ | Required: | ||
[[http://syslinux.zytor.com/|SYSLINUX]] | [[http://syslinux.zytor.com/|SYSLINUX]] | ||
Line 155: | Line 164: | ||
[[http://www.etherboot.org|EtherBoot]] | [[http://www.etherboot.org|EtherBoot]] | ||
- | Once Linux is running with USB storage support, an inserted USB key will appear as a SCSI drive and be called something like 'sda', 'sdb', 'sdc',... | + | Once Linux is running with USB storage support, an inserted USB key will appear as a SCSI drive and be called something like ///dev/sda//, ///dev/sdb//, ///dev/sdc//,... in the following guide, the key is referred to as ///dev/sda//. |
- | In the following guide, the key is referred to as /dev/sda. | + | ** Be certain which device name refers to your flash key as this device is about to be irrevocably erased ** |
- | ** Ensure you are certain which device name is used by your flash key as this device is about to be irrevocably erased ** | + | ===== USB Flash EtherBoot - General hard disk boot geometry ===== |
- | ===== USB Flash key - Hard disk drive ===== | + | * If necessary, prepare Linux to handle USB storage devices. This is up to your configuration and distribution. For example, you might find these modules present if they are not already linked into the kernel: |
- | *Prepare an active, bootable USB key | + | Module Size Used by |
- | [[http://flashlinux.org.uk/make|Instructions]] | + | sd_mod 19472 0 |
+ | usb_storage 35588 0 | ||
+ | libusual 14864 1 usb_storage | ||
+ | uhci_hcd 25100 0 | ||
+ | usbcore 141956 4 usb_storage,libusual,uhci_hcd | ||
- | *Install syslinux onto the bootable partition | + | * Insert USB flash key and examine //dmesg// output |
- | syslinux /dev/sda1 | + | sda: sda1 |
+ | sd 2:0:0:0: Attached scsi removable disk sda | ||
- | ===== USB Flash key - ZIP DRIVE geometry ===== | + | * Wipe the master boot record ** losing all data ** |
- | A standard zip drive appears to your BIOS as having 64 heads and 32 sectors per track. The number of cylinders depends on the capacity of the drive. A zip drive insists on booting from partition 4. | + | dd if=/dev/zero of=/dev/sda bs=1k count=128 |
- | *Use the mkdiskimage script from SYSLINUX to create a blank DOS-formatted image on your flash key, letting mkdiskimage work out the size of the device. This may take a little while to complete. | + | * Create new partition |
- | mkdiskimage -4 /dev/sda 0 64 32 | + | sfdisk /dev/sda [ENTER for defaults then (w)rite partition table] |
- | *Install syslinux onto the key. | + | Device Boot Start End #cyls #blocks Id System |
+ | /dev/sda1 0+ 1021 1022- 124683+ 83 Linux | ||
+ | /dev/sda2 0 - 0 0 0 Empty | ||
+ | /dev/sda3 0 - 0 0 0 Empty | ||
+ | /dev/sda4 0 - 0 0 0 Empty | ||
- | syslinux /dev/sda4 | + | * Mark the partition as active: |
- | Finally, use the Etherboot ''networkcard.zlilo'' file in place of the Linux kernel and /dev/sda4 in place of the diskette device, follow these [[http://www.etherboot.org/wiki/eb_imagetypes#lilogrubsyslinux_files_.zlilo|instructions]] | + | sfdisk /dev/sda -A1 |
- | above so that syslinux will load Etherboot. | + | |
- | More recipies can be found [[http://www.beezmo.com/FloobyDustDir/FDKnoppixUsbDir/FDKnoppixUsb.htm|here]], with another source of information [[http://www.freesoftwaremagazine.com/articles/grub_intro|here]]. | + | * Create a DOS filesystem on the newly created active partition |
+ | mkdosfs /dev/sda1 | ||
+ | * Install SYSLINUX onto it | ||
- | A recipe can be found [[http://www.beezmo.com/FloobyDustDir/FDKnoppixUsbDir/FDKnoppixUsb.htm|here]], with another source of information [[http://www.freesoftwaremagazine.com/articles/grub_intro|here]]. | + | syslinux /dev/sda1 |
+ | * Mount the device and copy over required //networkcard.zlilo// file and corresponding //syslinux.cfg// [[eb_imagetypes#Using lilo on a floppy|just as in a diskette boot]]. There will now be three files on the flash device | ||
+ | |||
+ | root@shark(/flash)# ls | ||
+ | ldlinux.sys r8169.zli syslinux.cfg | ||
+ | |||
+ | root@shark(/flash)# cat syslinux.cfg | ||
+ | default r8169.zli | ||
+ | |||
+ | * Unmount the device, shutdown and reboot from the network. | ||
+ | |||
+ | ===== USB Flash EtherBoot - ZIP drive geometry ===== | ||
+ | An older machine may insist on a geometry which appears to your BIOS as a standard ZIP drive having 64 heads and 32 sectors per track. The number of cylinders depends on the capacity of the drive. A ZIP drive boots from partition 4. | ||
+ | |||
+ | * Use the mkdiskimage script from SYSLINUX to create a blank DOS-formatted image on your flash key, letting mkdiskimage work out the size of the device. This may take a little while to complete. | ||
+ | |||
+ | mkdiskimage -4 /dev/sda 0 64 32 | ||
+ | |||
+ | * Install SYSLINUX onto the key. | ||
+ | |||
+ | syslinux /dev/sda4 | ||
+ | |||
+ | * Mount /dev/sda4 and copy over required //networkcard.zlilo// file and corresponding //syslinux.cfg// [[eb_imagetypes#Using lilo on a floppy|just as in a diskette boot]] | ||
+ | |||
+ | * Unmount the device, shutdown and reboot from the network. | ||
+ | |||
+ | |||
+ | More recipies can be found [[http://www.beezmo.com/FloobyDustDir/FDKnoppixUsbDir/FDKnoppixUsb.htm|here]], with another source of information [[http://www.freesoftwaremagazine.com/articles/grub_intro|here]]. | ||
===== PXE bootstrap loader (.zpxe) ===== | ===== PXE bootstrap loader (.zpxe) ===== |