|
Size: 5735
Comment: fixed links to cat and zcat (manpages.debian.net)
|
Size: 6055
Comment: Quick Windows to Debian Method
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| Line 3: | Line 4: |
| This page is about boot Linux via ["USB"] pendrives in any computer with or without USB-BIOS capability (in this last case, using a BootFloppy). You can install Linux in your USB pendrive or buy it preinstalled. | This page is about boot Linux via ["USB"] pendrives in any computer with or without USB-BIOS capability (in this last case, using a BootFloppy). You can install Linux in your USB pendrive or buy it preinstalled. |
| Line 6: | Line 7: |
| There are two common BIOS methods for direct USB booting: | |
| Line 7: | Line 9: |
| There are two common BIOS methods for direct USB booting: * One method is called the "USBHDD" method and it is used to support the booting of standard USB mass storage devices that are configured like a normal PC hard drive. |
* One method is called the "USBHDD" method and it is used to support the booting of standard USB mass storage devices that are configured like a normal PC hard drive. |
| Line 10: | Line 11: |
Most computers (e.g. just about all Dells) made today have a BIOS that supports the USBHDD method so it's expected that this will eventually become the standard way of booting a USB device. However, many motherboards will support BOTH methods, and many older motherboards have USBZIP support. |
Most computers (e.g. just about all Dells) made today have a BIOS that supports the USBHDD method so it's expected that this will eventually become the standard way of booting a USB device. However, many motherboards will support BOTH methods, and many older motherboards have USBZIP support. |
| Line 17: | Line 17: |
| === Quick Windows to Debian Method === The website pendrivelinux.com has nice diffirent ways to quickly create your own pendrive. for example: http://www.pendrivelinux.com/2008/06/02/usb-centos-5-live-install-via-windows/ where the fedora live install is used to "burn" the centos iso our our beloved netinstal iso to a pendrive. |
|
| Line 18: | Line 21: |
The following instructions refer to /dev/sda. However, if you have serial-ATA harddisks, then the pendrive will probably be /dev/sdc. Do NOT accidentally write to the wrong drive, or you will destroy your main operating system or data! |
The following instructions refer to /dev/sda. However, if you have serial-ATA harddisks, then the pendrive will probably be /dev/sdc. Do NOT accidentally write to the wrong drive, or you will destroy your main operating system or data! |
| Line 23: | Line 24: |
| Line 34: | Line 34: |
| If you cannot find it, you have to load the ["USBStorage"] ["module"]. In a ["terminal"], type: | If you cannot find it, you have to load the ["USBStorage"] ["module"]. In a ["terminal"], type: |
| Line 37: | Line 38: |
| }}} | }}} |
| Line 39: | Line 40: |
| Line 42: | Line 44: |
| Line 46: | Line 47: |
| Using fdisk: Press P to see the list of all ["partition"]s. Use D repeatedly to delete all partitions. Create a new partition pressing N, P, 1 and accept all defaults concerning the size (minimum partition size necessary will be around 60 MB). Set the bootable flag with A, press T, 6 to create a FAT16 partition and press W to store and exit from fdisk. |
Using fdisk: Press P to see the list of all ["partition"]s. Use D repeatedly to delete all partitions. Create a new partition pressing N, P, 1 and accept all defaults concerning the size (minimum partition size necessary will be around 60 MB). Set the bootable flag with A, press T, 6 to create a FAT16 partition and press W to store and exit from fdisk. |
| Line 52: | Line 50: |
| Line 56: | Line 55: |
| Line 59: | Line 57: |
| === Master Boot Record === Some USB keys don't boot. If this is the case, it may be possible to fix them by installing a new master boot record. (Most keys boot OK by default; some cannot be fixed even by doing this. However, it helps in some cases). Run the command: |
|
| Line 60: | Line 60: |
| === Master Boot Record === Some USB keys don't boot. If this is the case, it may be possible to fix them by installing a new master boot record. (Most keys boot OK by default; some cannot be fixed even by doing this. However, it helps in some cases). Run the command: |
|
| Line 66: | Line 63: |
| Line 68: | Line 64: |
| There are two installation methods: | There are two installation methods: |
| Line 71: | Line 67: |
| * Unburned: download the ISO file and copy its contents into the USB pendrive. | * Unburned: download the ISO file and copy its contents into the USB pendrive. ==== Unburned using DamnSmallLinux ==== To install DamnSmallLinux download the ISO image and as ["root"] user go the directory with the dsl-*.iso file and type the following: |
| Line 73: | Line 71: |
| ==== Unburned using DamnSmallLinux ==== To install DamnSmallLinux download the ISO image and as ["root"] user go the directory with the dsl-*.iso file and type the following: |
|
| Line 82: | Line 78: |
| rm -Rf boot | rm -Rf boot |
| Line 92: | Line 88: |
| }}} |
}}} |
| Line 98: | Line 91: |
| Line 100: | Line 92: |
| Line 102: | Line 93: |
| * DamnSmallLinux (uses FluxBox as window manager), upon which the majority of Debian USB distros are based. * Flonix : based on DamnSmallLinux, but uses IceWM instead of FluxBox . * Fedora / RedHat: |
* DamnSmallLinux (uses FluxBox as window manager), upon which the majority of Debian USB distros are based. * Flonix : based on DamnSmallLinux, but uses IceWM instead of FluxBox . * Fedora / RedHat: |
| Line 111: | Line 102: |
| * http://indiboi.com/history/2003/11/18/2887223 | * http://indiboi.com/history/2003/11/18/2887223 |
| Line 116: | Line 107: |
| Line 118: | Line 108: |
| * [http://www.pcquest.com/content/linux/104010505.asp Booting Linux off USB Storage]. | * [http://www.pcquest.com/content/linux/104010505.asp Booting Linux off USB Storage]. |
| Line 125: | Line 115: |
| See also: | |
| Line 126: | Line 117: |
| See also: | |
| Line 129: | Line 119: |
| ---- CategoryQuickInstall |
["USB"]
This page is about boot Linux via ["USB"] pendrives in any computer with or without USB-BIOS capability (in this last case, using a ?BootFloppy). You can install Linux in your USB pendrive or buy it preinstalled.
BIOS and USB standard mass storage interface
There are two common BIOS methods for direct USB booting:
- One method is called the "USBHDD" method and it is used to support the booting of standard USB mass storage devices that are configured like a normal PC hard drive.
- The other method is called the "USBZIP" method and it supports booting from a USB storage device that behaves like the original IOMEGA ZIP drive with USB support.
Most computers (e.g. just about all Dells) made today have a BIOS that supports the USBHDD method so it's expected that this will eventually become the standard way of booting a USB device. However, many motherboards will support BOTH methods, and many older motherboards have USBZIP support.
You need a USB device with a standard mass storage interface and with at least 128 MB storage capacity (the distros generally use between 50 and 64 MB) to work with Linux.
See StandardPendrive.
Quick Windows to Debian Method
The website pendrivelinux.com has nice diffirent ways to quickly create your own pendrive. for example: http://www.pendrivelinux.com/2008/06/02/usb-centos-5-live-install-via-windows/ where the fedora live install is used to "burn" the centos iso our our beloved netinstal iso to a pendrive.
Warning
The following instructions refer to /dev/sda. However, if you have serial-ATA harddisks, then the pendrive will probably be /dev/sdc. Do NOT accidentally write to the wrong drive, or you will destroy your main operating system or data!
USB pendrive location and mount
Most USB pendrives are located at device node ["/dev/sda"] after they are plugged into the USB port.
However, you can verify this location by typing this command inside a ["terminal"] window:
dmesg | grep scsi -A 3
and it should tell you the device name for your USB (SCSI emulated) devices, along with the vendor name.
See: ["dmesg"].
If you cannot find it, you have to load the ["USBStorage"] ["module"]. In a ["terminal"], type:
modprobe usb-storage
and ["mount"] the usb filesystems
mount -t usb-devfs none /proc/bus/usb
Partitioning the USB key
Partition the USB pendrive with ["fdisk"] of ["cfdisk"] (the USB key must not be mounted!).
Using fdisk: Press P to see the list of all ["partition"]s. Use D repeatedly to delete all partitions. Create a new partition pressing N, P, 1 and accept all defaults concerning the size (minimum partition size necessary will be around 60 MB). Set the bootable flag with A, press T, 6 to create a FAT16 partition and press W to store and exit from fdisk.
The resulting partition table will look something like this:
Device Boot Start End Blocks Id System /dev/sda1 * 1 3730 1014544 6 FAT16
Now enter mkdosfs /dev/sda1 at the prompt to create a FAT16 filesystem, because otherwise the installation steps described under 'Unburned using DSL' later on won't work.
Master Boot Record
Some USB keys don't boot. If this is the case, it may be possible to fix them by installing a new master boot record. (Most keys boot OK by default; some cannot be fixed even by doing this. However, it helps in some cases). Run the command:
lilo -M /dev/sda
Installation methods
There are two installation methods:
- Burned: boot from a LiveCD and then use the 'Install to USB' utility.
- Unburned: download the ISO file and copy its contents into the USB pendrive.
Unburned using DamnSmallLinux
To install DamnSmallLinux download the ISO image and as ["root"] user go the directory with the dsl-*.iso file and type the following:
mkdir dsl_temp mkdir dsl_usb mount -o loop dsl-*.iso dsl_temp cp -a dsl_temp/* dsl_usb cd dsl_usb mv boot/isolinux/* ./ rm -Rf boot mv isolinux.bin syslinux.bin mv isolinux.cfg syslinux.cfg cd .. mkdir usb_pen mount -t vfat /dev/sda1 usb_pen cp -a dsl_usb/* usb_pen umount usb_pen umount dsl_temp syslinux /dev/sda1
See also BootUsb2, IsoBuster, ["Isolinux"], ["Grub"] .
USB Debian distros
- Debian:
DamnSmallLinux (uses FluxBox as window manager), upon which the majority of Debian USB distros are based.
Flonix : based on DamnSmallLinux, but uses IceWM instead of FluxBox .
Fedora / RedHat:
?PuppyLinux, uses FVWM-95.
- Gentoo :
- SPB-Linux, with XFCE4.
More information
[http://damnsmalllinux.org/usb.html USB pendrive with Linux preinstalled].
More additional links
[http://d-i.alioth.debian.org/manual/en.powerpc/ch04s04.html Preparing Files for USB Memory Stick Booting] : but use [http://manpages.debian.net/man/1/cat zcat] boot.img > /dev/sda1 ; if the stick doesn't boot, [http://manpages.debian.net/man/1/cat cat] mbr.bin > /dev/sda
[http://www.pcquest.com/content/linux/104010505.asp Booting Linux off USB Storage].
[http://d-i.pascal.at/ Installing Debian Sarge from a USB memory stick (USB key)].
[http://rz-obrian.rz.uni-karlsruhe.de/knoppix-usb/ Boot KNOPPIX from a USB Memory Stick].
[http://lists.debian.org/debian-boot/2004/11/msg01601.html Reboot from USB].
[http://www.damnsmalllinux.org/wiki/index.php/USB_Booting Damn Small Linux USB boot].
[http://groups.yahoo.com/group/bootflashlinux Mail list about booting Debian from a USB flashdrive].
See also:
?BootingFromFloppyToUsb .
- ["growisofs"].
