DRBL

Diskless Remote Boot in Linux

DRBL Live on USB flash drive or USB hard drive

Some machine, e.g. Asus Eee PC or Acer Aspire One, comes without CD/DVD drive. In this case, USB flash drive or USB hard drive is the best way to boot DRBL live. You can follow the following to make a bootable DRBL live USB flash drive or hard drive.

Requirement:

  1. Microsoft Windows 2000/XP/Vista/7, or GNU/Linux.
  2. Internet access for downloading a distribution to install, or a pre-downloaded ISO file.
  3. An USB drive with a FAT partition.

How:

  • On MS windows
    • Choice 1 (Use GUI program on MS windows):
      • Download Tuxboot to help you to create this Live USB flash drive. Just run the program on MS windows, then you can follow the GUI to create the live.
    • Choice 2 (Manually):
      *****************************
      WARNING! WARNING! WARNING!
      *****************************
      WARNING!: ***DO NOT RUN*** makeboot.bat from your local hard drive! It should only be run from your USB flash drive or USB hard drive. Executing it incorrectly could cause your MS windows not to boot!!!
      1. Create a partition on your flash drive as FAT16 or FAT32 if there is no any FAT16 or FAT32 partition on that. If there is, you can use the existing one.
      2. Extract all the contents of the clonezilla-live-usb.zip to FAT16/FAT32 partition on your "flash drive." Keep the directory architecture, for example, file "COPYING" should be in the USB flash drive or USB hard drive's top directory (e.g. G:\COPYING).
      3. Browse to your "flash drive" and enter the directory "utils", then sub-directory "win32",
        • If running Windows 7, you might have to select syslinux.exe and right click, then left click on Properties, verify that 'Run the program as administrator' is checked, it not then check it.
        • Then click the file "makeboot.bat" to execute it.
        • WARNING! Makeboot.bat must be run from your USB flash drive or USB hard drive. Executing it incorrectly could cause your MS windows not to boot.
      4. Follow the on-screen instructions.
      (PS: The above description was modified from: http://www.pendrivelinux.com/2007/01/02/all-in-one-usb-dsl. Thanks to PDLA from http://pendrivelinux.com)
    • Choice 3 (Use GUI program on MS windows):
      • Download Unetbootin to help you to create this Live USB flash drive. Just run the program on MS windows, then you can follow the GUI to create the live. You will need the DRBL live iso file in this method. PS. The boot menu created by Unetbootin is not exactly the same boot menu as the one created in choice 1 or 2. Therefore it's recommended to use the choice 1 or 2.
  • On GNU/Linux
    • Choice 1 (Use GUI program on GNU/Linux):
      • Download Tuxboot to help you to create this Live USB flash drive. Just run the program on MS windows, then you can follow the GUI to create the live.
    • Choice 2 (Manually):
      1. Prepare an USB flash drive or USB hard drive or external disk which has a partition using FAT (either FAT16, FAT32) file system. If the USB flash drive or USB hard drive does not have any partition, you can use disk tool (e.g. gparted, fdisk, cfdisk or sfdisk) to create a partition with size 200 MB or more, Here we assume your USB flash drive or USB hard drive is /dev/sdb (You have to comfirm your the device name, since it's _NOT_ always /dev/sdb) on your GNU/Linux, so the partition table is like:
        # fdisk -l /dev/sdb
        Disk /dev/sdb: 12.8 GB, 12884901888 bytes
        15 heads, 63 sectors/track, 26630 cylinders
        Units = cylinders of 945 * 512 = 483840 bytes
        Disk identifier: 0x000c2aa7
        
           Device Boot      Start         End      Blocks   Id  System
           /dev/sdb1   *           1       26630    12582643+   b  W95 FAT32
        
        Then format the partition as FAT (e.g. "mkfs.vfat -F 32 /dev/sdb1" WARNING! Executing it incorrectly could cause your GNU/Linux not to boot. Confirm the command before you run it.).
        # mkfs.vfat -F 32 /dev/sdb1
        mkfs.vfat 2.11 (12 Mar 2005)
        
      2. Insert your USB flash drive or USB hard drive into the USB port on your Linux machine and wait a few seconds. Next, run the command "dmesg" to query the device name of the USB flash drive or USB hard drive. Let's say, for example, that you find it is /dev/sdb1. In this example, we assume /dev/sdb1 has FAT filesystem, and it is automatically mounted in dir /media/usb/. If it's not automatically mounted, manually mount it by "mkdir -p /media/usb; mount /dev/sdb1 /media/usb/".
      3. Unzip all the files, and copy them into your USB flash drive or USB hard drive (You can make it by the command like: "unzip clonezilla-live-1.0.10-8.zip -d /media/usb/"). Keep the directory architecture, for example, file "COPYING" should be in the USB flash drive or USB hard drive's top directory (e.g. /media/usb/COPYING).
      4. To make your USB flash drive bootable, first change the working dir, e.g. "cd /media/usb/utils/linux", then run "bash makeboot.sh /dev/sdb1" (replace /dev/sdb1 as your USB flash drive device name), and follow the prompts to finish that. WARNING! Executing it with wrong device name could cause your GNU/Linux not to boot. Confirm the command before you run it. (There is a known problem if you run makeboot.sh on Debian Etch, since the program utils/linux/syslinux does not work on that. Make sure you run it on newer GNU/Linux, e.g. Debian Lenny, Ubuntu 8.04, Fedora 9...).
      5. If your USB flash drive or USB hard drive is not able to boot, check (1) Is there any partition in your flash drive ? It must contain 1 partition at least. (2) The partition must be marked as "bootable" in the partition table. (3) The partition must be on the cylinder boundary.
    • Choice 3 (Use GUI program on GNU/Linux):
      • Download Unetbootin to help you to create this Live USB flash drive. Just run the program on MS windows, then you can follow the GUI to create the live. You will need the DRBL live iso file in this method. PS. The boot menu created by Unetbootin is not exactly the same boot menu as the one created in choice 1 or 2. Therefore it's recommended to use the choice 1 or 2.