|
...All the cool kids are doing it. If you have a minute and a spare 2Gb or > flash drive laying around, this is how you can load Debian on it.
Get yourself an image: pick one (here is the Xfce4 live image.), plug in your flash drive, memory stick, usb drive, whatever you call it...
You'll need to know the device address of your drive and you can find this out quickly by checking with any number of utilities that will reveal the address of your drive:
Some example commands to get the device address you need include the following:
- fdisk -l will list your drives including the one you just plugged in. Run it as root.
- ls -la /dev/disk/by-id/usb-* will show you a listing
- dmesg | grep SCSI will show you devices
- tail -f /var/log/messages will show you the address of the new drive you just plugged in
..There are myriad ways to get the dev address that you need. Before you install Debian live on your flash drive make sure that you have formatted the drive. I normally fire-up gparted (partition editor in your menu) and format my flash drive as one 4Gb ext3 partition. Then, it's important to make the drive bootable. Choose the boot flag from a menu in gparted. Make sure the drive stays unmounted when you finish with gparted. That's it and now you're ready to install Debian live on it. You may close gparted.
Now, in your terminal you use dd to "install" the image to your drive.
# dd if=debian-live-500-i386-xfce-desktop.img of=$USBDRV
where $USBDRV is the dev address of your drive. For example: /dev/sdb or similar. this is what I just did:
lapbox:/home/machiner/Desktop# fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x475d475c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 742 5960083+ 83 Linux
/dev/sda2 743 1107 2931862+ 82 Linux swap / Solaris
/dev/sda3 1108 14602 108398587+ 83 Linux
/dev/sda4 14603 38913 195278107+ 83 Linux
Disk /dev/sdb: 4102 MB, 4102887936 bytes
255 heads, 63 sectors/track, 498 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00030040
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 498 4000153+ 83 Linux
#dd if=debian-live-500-i386-xfce-desktop.img of=/dev/sdb
1079296+0 records in
1079296+0 records out
552599552 bytes (553 MB) copied, 62.0236 s, 8.9 MB/s
lapbox:/home/machiner/Desktop#
All finished. Of course, we could get very detailed with an article like this, but it's very simple and if you have issue we do have a forum where problems are solved.
--machiner 3mar09
|