Results 1 to 3 of 3

Thread: USB thumbdrive boot with EXTLINUX

  1. #1
    Member registered user
    Join Date
    Mar 2006
    Posts
    50

    USB thumbdrive boot with EXTLINUX

    I have been (mostly) successful in getting my USB thumbdrive to boot with EXTLINUX.

    Earlier, I followed the instructions here, to get it to boot with GRUB:

    http://www.knoppix.net/wiki/USB_Based_FAQ

    Was moderately successful... until I went to a different PC that had an additional SATA drive installed, and realized that GRUB was rather strict about exact device number and placement. My GRUB (hd0,0) was now a different hard drive with other data, not my USB thumbdrive! GRUB would no longer boot, and crashed out with "Error 17". Couldn't even make it to the GRUB command line to change the root device.

    SYSLINUX, on the other hand, is well-known for being very independent and self-contained, not really caring where it's booted from, as long as the BIOS can see it.

    Has anyone else tried this?

    It seems simpler than GRUB, plus you get to take full advantage of all the SYSLINUX-based preboot features (help screens, etc.) that you get with CD/DVD. Since the CD already uses ISOLINUX, there's no problem "porting" to EXTLINUX.

    I had already partitioned the USB thumbdrive into several ext3 partitions, and copied the KNOPPIX data to it, so installing EXTLINUX was straightforward:

    1) Get the latest SYSLINUX:

    http://syslinux.zytor.com/
    http://www.kernel.org/pub/linux/utils/boot/syslinux/

    2) Read the EXTLINUX instructions:

    http://syslinux.zytor.com/extlinux.php

    Pay attention to the part about mbr.bin: you need to copy the MBR to your thumbdrive.

    3) Go into the extlinux directory, wherever you installed SYSLINUX, and install EXTLINUX:

    ./extlinux /mnt/sdz1/boot/isolinux

    Replace sdz1 with your USB thumbdrive partition's actual device, of course. Have it mounted.

    This installs EXTLINUX right side-by-side with the existing ISOLINUX directory! The filenames are different, so there will be no conflicts.

    EXTLINUX modifies the PBR of whatever device holds that directory. So, it had better be one of the partitions on your USB thumbdrive. It creates the extlinux.bin file, and points the PBR to it.

    4) Go into that directory, and copy the config file:

    cd /mnt/sdz1/boot/isolinux
    cp isolinux.cfg extlinux.conf

    EXTLINUX and ISOLINUX share the same file format for their options, so you'll get all the nice help screens and other features from the CD, even when booting from the thumbdrive!

    5) Unmount it, sync, reboot, and pray....

    Anyone else have luck with this?

    BTW, my partition structure on my USB thumbdrive (1GB SanDisk Cruzer Micro):
    750MB ext3 = for 700MB of Knoppix CD, plus overhead/padding
    150MB ext3 = Encrypted home directory will go here
    100MB FAT16 = So I still have something to use with Windows

    Josh

  2. #2
    Junior Member
    Join Date
    Mar 2006
    Posts
    2

    Re: USB thumbdrive boot with EXTLINUX

    This did not work for me.

    I tried extlinux, but I have Western Digital USB HDD.

    ./extlinux /mnt/uba2/boot/extlinux

    Warning: unable to obtain device geometry
    bmap: Operation not permitted

    Any ideas please ?

  3. #3
    Member registered user
    Join Date
    Mar 2006
    Posts
    50

    Re: USB thumbdrive boot with EXTLINUX

    Quote Originally Posted by beerak
    This did not work for me.

    I tried extlinux, but I have Western Digital USB HDD.

    ./extlinux /mnt/uba2/boot/extlinux

    Warning: unable to obtain device geometry
    bmap: Operation not permitted

    Any ideas please ?
    Hmm. I gave up on the ext2 filesystem for USB thumbdrives, and had better success with the FAT32 filesystem, using just SYSLINUX, instead of EXTLINUX. I also just used 1 big FAT32 partition, and didn't bother to make multiple partitions on my thumbdrive. See my newer post: http://www.knoppix.net/forum/viewtopic.php?t=23558

    As for a real hard drive hooked up with USB, I don't know. I've never tried that.

    It's strange that you have /mnt/uba2. All of my USB thumbdrives show up as SCSI devices: sda, sdb, and so on. I've never seen uba.

Similar Threads

  1. How to use Extlinux bootloader?
    By fossiili in forum Hardware & Booting
    Replies: 0
    Last Post: 03-03-2008, 03:39 PM
  2. Thumbdrive live dual boot XOSL or grub or.........
    By dvryknopper in forum General Support
    Replies: 2
    Last Post: 03-27-2006, 01:42 AM
  3. Thumbdrive help
    By fidofido in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 05-27-2005, 08:09 PM
  4. Cannot see my thumbdrive
    By gdog in forum Hardware & Booting
    Replies: 1
    Last Post: 12-13-2004, 05:18 AM
  5. USB Thumbdrive/keychain NTFS ISO boot/Poor Man's Install
    By semreh in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 09-15-2004, 10:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray picture

Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray

$39.99



Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5

Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A

$64.00



HGST Ultrastar HUS726040AL5210 4TB 7200RPM SAS 12Gb/s Enterprise HDD picture

HGST Ultrastar HUS726040AL5210 4TB 7200RPM SAS 12Gb/s Enterprise HDD

$41.00



DELL 2TB Enterprise HDD (7200RPM, 3.5

DELL 2TB Enterprise HDD (7200RPM, 3.5", SATA III, 128MB Cache) HUS722T2TALA600

$49.95



Seagate Exos ST2000NX0253 HDD 2TB SATA 7.2K 2.5

Seagate Exos ST2000NX0253 HDD 2TB SATA 7.2K 2.5" 512b/s

$55.00



Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE picture

Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE

$68.99



Toshiba 14TB MG07 MG07ACA14TEY 7.2K RPM SATA 6Gb/s 512e 3.5

Toshiba 14TB MG07 MG07ACA14TEY 7.2K RPM SATA 6Gb/s 512e 3.5" Enterprise HDD

$339.00



Toshiba DT01ACA100 1 TB 3.5

Toshiba DT01ACA100 1 TB 3.5" SATA III 3.5 in Desktop Hard Drive

$24.99



Tested WD Ultrastar DC HC520 12TB 7.2K RPM SATA 6Gb/s 3.5

Tested WD Ultrastar DC HC520 12TB 7.2K RPM SATA 6Gb/s 3.5" HDD HUH721212ALN600

$239.99



New Western Digital WD40EFPX 68C6CN0 4TB 3.5

New Western Digital WD40EFPX 68C6CN0 4TB 3.5" SATA III Internal NAS Red Plus HDD

$137.59