|
| Booting from USB |
- Booting from the USB devices requires a USB boot capable BIOS
the bios should list:
HDA, HDC, cdrom, ...
USB-disk, USB-cdrom, USB-zip, USB-network <--- these usb devices
- Example generic Slackware-10 image for 128MB usb memory stick
|
| USB Support Requires the Following Kernel Options |
|
|
SCSI support
|
CONFIG_SCSI
|
scsi_mod.o
|
|
SCSI disk support
|
CONFIG_BLK_DEV_SD
|
sd_mod.o
|
|
|
- USB Support
- cd /usr/local/src/linux-2.4.27
- egrep -i "CONFIG_USB|CONFIG_USB_DEVICEFS|CONFIG_USB_STORAGE" .config | grep -iv ^#
|
|
Support for USB
|
CONFIG_USB
|
usbcore.o
|
|
Preliminary USB device filesystem
|
CONFIG_USB_DEVICEFS
|
|
UHCI HCD support
|
CONFIG_USB_UHCI_HCD
|
uhci_hcd
|
|
|
USB Mass Storage support
|
CONFIG_USB_STORAGE
|
usb-storage.o
|
|
|
|
| /etc/modules.conf |
/etc/modules.conf
|
| Loading the Kernel Modules |
|
| Checking the USB subsystem |
- lsusb ( lots of stuff )
- usbview
- sg_map -i
- ls -la /proc/scsi
dr-xr-xr-x 2 root root 0 Sep 13 18:47 ide-scsi
-r--r--r-- 1 root root 0 Sep 13 18:47 scsi
dr-xr-xr-x 2 root root 0 Sep 13 18:47 sg
dr-xr-xr-x 2 root root 0 Sep 13 18:47 usb-storage-0
ls -la /proc/scsi/usb-storage-0
cat /proc/scsi/usb-storage-0/1
ls -l /proc/bus/usb
dr-xr-xr-x 1 root root 0 Sep 19 14:21 001
dr-xr-xr-x 1 root root 0 Sep 19 14:21 002
-r--r--r-- 1 root root 0 Sep 19 22:30 devices
-r--r--r-- 1 root root 0 Sep 19 22:30 drivers
cat /proc/bus/usb/devices ( lots of stuff )
cat /proc/bus/usb/drivers ( lots of stuff )
|
| Format and Mount the USB Memory Stick |
mke2fs -j /dev/sda1
mount /dev/sda1 /mnt/usb
/dev/sda1 123683 4127 113170 4% /mnt/usb
mkreiserfs /dev/sda1
mount /dev/sda1 /mnt/usb
/dev/sda1 127720 32840 94880 26% /mnt/usb
|
| RamDisk for Mounting Memory Sticks |
- ramdisk is NOT needed if youcompile the scsi and usb modules into the kernel
Uni-Karlsruhe.de knoppix + DamnSmallLinux.org
d-i.Pascal.at Installing Debian from USB stick
|
| USB-based Distro |
Linux-Boot.net/Boot/Scripts Slackware-10 -- w/ minimum "A" and "N" packages
- Linux-2.4.27 kernel config file
- Example rc.usb-stick to load the usb modules
- List of installed slackware-10 packages
- Requires the latest lilo-22.6
- To Install the minimum install Slackware-10.usb.tgz image
- Uses 100MB of the 128MB USB memory stick
- pick a filesystem that is immune to power failures ( hot-plug in and out )
msdos ( not vfat ) is best but it's "not good" for linux per se
- Simplified install
fdisk /dev/sda
mkreiserfs /dev/sda1
mount /dev/sda1 /mnt/usb
cd /mnt/usb ; tar zxvfp slack-10.usb.tgz
chroot /mnt/usb lilo -v -C etc/lilo.usb.conf
reboot
- You can shrink it to under 50MB (installed) by removing the garbage
|
| USB Memory Stick URLs |
|