# Set up the root filesystem on a USB stick # Basic USB support (USB 1.1 and USB 2) opkg update opkg install kmod-usb-uhci kmod-usb-ohci kmod-usb2 insmod uhci insmod usb-ohci insmod usbcore insmod ehci-hcd # USB Storage (FAT requires additional modules # that you can upgrade later, however) opkg install kmod-usb-storage-mount block kmod-fs-ext4-core kmod-scsci # Prepare USB stick (on the PC) # -> Partition with three partitions (root, home, swap) # fdisk /dev/sdb etc. # -> Format partitions with ext4 or swap # mkfs.ext4 /dev/sdb1 # mkfs.ext4 /dev/sdb2 # mkswap /dev/sdb3 # Prepare root on USB (copies old root file system) mkdir -p /mnt/usb mount /dev/sda1 /mnt/usb tar -cvf --C /overlay . | tar -xf --C /mnt/usb umount /mnt/usb