HTML dump on Mon Dec 4 11:11:18 EST 2006 http://www.marlow.dk/site.php/tech/usbkeys The Place of Marlow [1]Davs ! [2]Who am I ? [3]Technical Stuff [4]Asterisk Telephony Switch [5]Bootable USB Keys [6]Dell Latitude D600 [7]Dell Latitude X1 [8]Digital Alpha Workstations [9]Gnome Screenshots [10]IE Search modified [11]ISP Mailserver Solution [12]ISPWorks (ISP Management Solution) [13]Linux based Access Points [14]LM sensors configuration [15]madwifi Debian packages [16]Pro@ccess Router Setup [17]Vservers (BSD Jails on Linux) [18]Wireless Community WAN [19]Reviews [20]Pictures [21]Links [22]Tagwall [23]Statistics Bootable USB Keys Author: Martin List-Petersen - martin at list-petersen dot dk The newest version of this document can allways be found at [24]http://www.marlow.dk/usbkeys To see this document without menu etc. (for printing, opens new window), click [25]here. Version: 0.09 Created: August 7th, 2003 Last updated: September 1st, 2005 Acknowledgements: This document describes how to create a bootable USB key, what the differences are and why some machines only boot on some of the keys around, but not all. This document is provided as is, of course. Feel free to use the info provided here, but don't blame me, if it doesn't work. Feedback however is allways appreciated. I can't be made responsible for data loss or other damages in any way. Background Since floppy drives get optional in many computers and more and more machines have the ability to boot from USB, it get's more interesting to have an USB key instead. Also because it's smaller and not that wulnerable. Also the pricing of these small items get more and more interesting. The USB Keys are formatted with FAT and thus accessible by nealy all operating systems around. Hardware The following USB keys have been tested and verified, that these can be bootet, once prepared: * Dazzle Zio! MMC/SD-Card Reader * Dell 16MB and 64MB USB Key [26]Dazzle Zio! Technology USB Keys can be formatted in two ways: * Superfloppy * Harddisk (including MBR) This is the reason, why some bootable USB keys not boot on every system. Some computers BIOS simply only understand one of the formats, not both, and if you use Windows and plug your key in, you won't notice the difference. Using Linux it get's pretty clear. Looking at the different formats shows, that the superfloppy formatted key is formatted as one big storage device (/dev/sda is mounted). The harddisk formatted key, which has a MBR, can have multiple partitions (/dev/sda1 etc.). Getting DOS on the key Before making your USB key bootable, be aware, that your USB Key will be deleted completely. So a backup would come in handy. - Using DOS or Windows 98 you need to install drivers first, to access the USB key. For DOS there is [27]DUSE and for Windows 98 you will find the drivers on the [28]Memorykey Tools site. As soon as these drivers are in place, you simply format the key with "format /s M:" (replacing M: with the drive letter, that you USB key got assigned.). * For Windows 2000/XP there are a couple of tools you can use. + The easiest is the MBRTool, that the [29]Memorykey Tools site used to provide. I still keep a copy around of it [30]here. The tool formats your key in harddisk mode and installs a FreeDOS kernel on there (with FAT32 support). Downside of this tool is, that it seems to have trouble with USB keys at the size of 256MB or bigger. + Another solution is the [31]HP USB Disk Storage Format Tool. This tool seems to work with bigger storage keys, but needs a floppy or the files from a floppy in a directory to copy on the usbkey, to make it bootable. * On Linux you just need to load the usb-storage module. + To format the drive in superfloppy format, you simply do: mkdosfs -I /dev/sda + Formatting in harddisk requires more steps, if it's not allready formatted that way: dd if=/dev/zero of=/dev/sda bs=512 count=1 to erase the start of the USB Key. After that you can do a "fdisk /dev/sda" and create a new FAT partition (FAT16 is suitable). To install a MBR and format the key afterwards, do install-mbr /dev/sda --force mkdosfs -I /dev/sda1 + Now the USB key is ready to be loaded with systemfiles. If you use FreeDOS, MS-DOS, IBM-DOS or DR-/Novell-DOS is up to you. Since install-mbr is Debian specific, you might do this on other systems: dd if=/dev/hda of=mbr bs=512 count=1 dd if=mbr of=/dev/sda Repartition your USBkey using fdisk to clean up the partition table using fdisk and format your partition afterwards with mkdosfs -I /dev/sda1 /dev/hda would in this case be your harddisk, /dev/sda would be your usb key. References * Linux Magazin - Edition 13/2003 (german) Lot's of the info here came from a very nice article in this magazine. Unfortunately it's in german and not available on the net. * [32]Memorykey Tools - Here you'll find Windows 98 drivers for the Dell USB Key. * [33]http://www.nu2.nu/bootdisk/ - This site provides a modular design for bootdisks. very nice to use, when you want to build a rescue system on your USB key. * [34]HP has another Windows based tool for formatting USBkeys. And since HP does expire pages now and then, I keep [35]a copy around here. Links * [36]RUNT - Slackware stripped down to a 128 MB USBkey. * [37]Damn Small Linux - 50 megabytes of penguin power. Debian/Knoppix outbreak, 50 MB big, includes X. * [38]Knoppix - This howto describes how to get Knoppix on a USBkey (incl. X). History * 0.09 - (20050901) fixed url to HP's USBkey formatting tool. They keep removing stuff :(. Also downloaded a copy of it. * 0.08 - fixed url to HP's USBkey formatting tool. * 0.07 - added url to HP's USBkey formatting tool. Added some minor stuff. * 0.06 - added url to Damn Small Linux. * 0.05 - fixed some minor stuff, added picture. * 0.04 - fixed broken link, introduced due to new design. * 0.03 - updates to meet HTML 4.01 transitional specs and integration in new webdesign. * 0.02 - added links section. * 0.01 - initial document. Website last modified: Oct 30th, 2006 - 9:56 PM GMT. (C)opyright 1997 - 2006 by [39]Martin List-Petersen [40]Hosting by TuxBox [41]Valid HTML 4.01! [42]Valid CSS! References Visible links 1. http://www.marlow.dk/site.php/main 2. http://www.marlow.dk/site.php/info 3. http://www.marlow.dk/site.php/tech 4. http://www.marlow.dk/site.php/tech/asterisk 5. http://www.marlow.dk/site.php/tech/usbkeys 6. http://www.marlow.dk/site.php/tech/dell_latitude_d600 7. http://www.marlow.dk/site.php/tech/dell_latitude_x1 8. http://www.marlow.dk/site.php/tech/alpha 9. http://www.marlow.dk/site.php/tech/desktop 10. http://www.marlow.dk/site.php/tech/ie-search 11. http://www.marlow.dk/site.php/tech/postfix 12. http://www.marlow.dk/site.php/tech/ispworks 13. http://www.marlow.dk/site.php/tech/ap 14. http://www.marlow.dk/site.php/tech/lm-sensors 15. http://www.marlow.dk/site.php/tech/madwifi 16. http://www.marlow.dk/site.php/tech/speedstream 17. http://www.marlow.dk/site.php/tech/vserver 18. http://www.marlow.dk/site.php/tech/wan 19. http://www.marlow.dk/site.php/review 20. http://www.marlow.dk/site.php/pics 21. http://www.marlow.dk/site.php/main/links 22. http://www.marlow.dk/site.php/main/tagwall 23. http://www.marlow.dk/site.php/main/statistics/ 24. http://www.marlow.dk/usbkeys 25. http://www.marlow.dk/site.php/tech/usbkeys/simple 26. http://www.marlow.dk/site.php/tech/image/zio.jpg 27. http://www.pocketec.net/downloads.taf?f=pockey1DosDrivers 28. http://www.memorykeytools.com/ 29. http://www.memorykeytools.com/ 30. http://www.marlow.dk/tech/src/mbrtool.zip 31. http://h18007.www1.hp.com/support/files/compaqbusinesspcs/us/download/20306.html 32. http://www.memorykeytools.com/ 33. http://www.nu2.nu/bootdisk/ 34. http://h18007.www1.hp.com/support/files/evodesktop/us/download/20306.html 35. http://www.marlow.dk/tech/src/SP27213.exe 36. http://www.ncsu.edu/resnet/runt/ 37. http://www.damnsmalllinux.org/ 38. http://rz-obrian.rz.uni-karlsruhe.de/knoppix-usb/ 39. mailto:martin@list-petersen.dk 40. http://www.tuxbox.dk/ 41. http://validator.w3.org/check?uri=referer 42. http://jigsaw.w3.org/css-validator/check/referer Hidden links: 43. http://www.marlow.dk/site.php/main 44. http://www.marlow.dk/site.php/info 45. http://www.marlow.dk/site.php/tech 46. http://www.marlow.dk/site.php/tech/asterisk 47. http://www.marlow.dk/site.php/tech/usbkeys 48. http://www.marlow.dk/site.php/tech/dell_latitude_d600 49. http://www.marlow.dk/site.php/tech/dell_latitude_x1 50. http://www.marlow.dk/site.php/tech/alpha 51. http://www.marlow.dk/site.php/tech/desktop 52. http://www.marlow.dk/site.php/tech/ie-search 53. http://www.marlow.dk/site.php/tech/postfix 54. http://www.marlow.dk/site.php/tech/ispworks 55. http://www.marlow.dk/site.php/tech/ap 56. http://www.marlow.dk/site.php/tech/lm-sensors 57. http://www.marlow.dk/site.php/tech/madwifi 58. http://www.marlow.dk/site.php/tech/speedstream 59. http://www.marlow.dk/site.php/tech/vserver 60. http://www.marlow.dk/site.php/tech/wan 61. http://www.marlow.dk/site.php/review 62. http://www.marlow.dk/site.php/pics 63. http://www.marlow.dk/site.php/main/links 64. http://www.marlow.dk/site.php/main/tagwall 65. http://www.marlow.dk/site.php/main/statistics/