====== 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/04/07 03:06] stevem |
eb_imagetypes [2007/04/07 04:00] (current) stevem |
||
---|---|---|---|
Line 185: | Line 185: | ||
* Wipe the master boot record ** losing all data ** | * Wipe the master boot record ** losing all data ** | ||
- | //dd if=/dev/zero of=/dev/sda bs=1k count=128// | + | |
+ | dd if=/dev/zero of=/dev/sda bs=1k count=128 | ||
* Create new partition | * Create new partition | ||
- | //sfdisk /dev/sda// (ENTER for defaults then (w)rite partition table) | + | |
+ | sfdisk /dev/sda [ENTER for defaults then (w)rite partition table] | ||
Device Boot Start End #cyls #blocks Id System | Device Boot Start End #cyls #blocks Id System | ||
Line 197: | Line 199: | ||
* Mark the partition as active: | * Mark the partition as active: | ||
- | //sfdisk /dev/sda -A1 // | + | |
+ | sfdisk /dev/sda -A1 | ||
* Create a DOS filesystem on the newly created active partition | * Create a DOS filesystem on the newly created active partition | ||
- | //mkdosfs /dev/sda1// | + | |
+ | mkdosfs /dev/sda1 | ||
* Install SYSLINUX onto it | * Install SYSLINUX onto it | ||
- | //syslinux /dev/sda1// | ||
- | * create a directory to mount the device | ||
- | //mkdir /flash | ||
- | * mount it | ||
- | //mount -t msdos /dev/sda1 /flash// | ||
- | * copy over required //networkcard//.zlilo file and syslinux.sys | ||
- | ===== USB Flash key - ZIP DRIVE geometry ===== | + | syslinux /dev/sda1 |
- | 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. | + | |
- | *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. | + | * 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 | mkdiskimage -4 /dev/sda 0 64 32 | ||
- | *Install syslinux onto the key. | + | * Install SYSLINUX onto the key. |
syslinux /dev/sda4 | syslinux /dev/sda4 | ||
- | Finally, use the Etherboot ''networkcard.zlilo'' file in place of the Linux kernel, /dev/sda4 in place of the diskette device and follow these [[http://www.etherboot.org/wiki/eb_imagetypes#lilogrubsyslinux_files_.zlilo|instructions]] | + | * 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]] |
- | above so that syslinux will load Etherboot. | + | |
+ | * 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]]. | 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]]. |