Slackware 14.1 on a USB drive
Hello all,
After reading Didier Spaier's Slackware 13.37 installation howto, I thought I'd give it ago and install Slackware 14.1 to a 64GB Thumb drive.
YMMV, but it worked for me...
1. Boot slackware install DVD
2. Setup partitions on USB drive using either fdisk or cfdisk, make sure your working with correct drive - eg. cfdisk /dev/sdb
Where /dev/sdb = USB drive.
3. Run setup, setup swap & install to the USB drive.
4. Use the 3.10.17-huge-smp kernel.
5. Upon exiting setup, reboot into your desktop.
6. Mount USB drive, make sure its /dev/sdb, on /mnt.
a. blkid /dev/sdb1 to get id & do the same for swap partition
b. chroot /mnt
c. mkinitrd -c -k 3.10.17-smp -m ehci_hcd:ehci_pci:usb_storage -f ext4(or whatever you chose) -r /dev/disk/by-uuid/(your rootfs blkid).
d. edit lilo.conf
# LILO configuration file
lba32
boot = /dev/sdb
compact # faster, but won't work on all systems.
# Append any additional kernel parameters, adjust rootdelay to suit
append="rootdelay=30"
vga = normal
image = /boot/vmlinuz
root = /dev/sdb1
initrd = /boot/initrd.gz
label = SlackUSB
read-only # Partitions should be mounted read-only for checking
e. edit fstab
/dev/disk/by-uuid/(your swap blkid) swap swap defaults 0 0
/dev/disk/by-uuid/(your rootfs blkid) / ext4 defaults 1 1
/dev/cdrom /Cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/tmp /dev/shm tmpfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
f. lilo & exit.
7. Reboot into SlackUSB & enjoy...
----------------------------------------------------------------------
Shame, they bought their tickets, they knew what they were getting into. I say, let 'em crash.
|