Results 1 to 3 of 3

Thread: USB thumbdrive boot with EXTLINUX

Hybrid View

  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
  •  


Lenovo ThinkPad E14 Gen 2 Laptop 14” HD Ryzen 5 16GB RAM 512GB SSD Win 11 Pro picture

Lenovo ThinkPad E14 Gen 2 Laptop 14” HD Ryzen 5 16GB RAM 512GB SSD Win 11 Pro

$334.99



Lenovo ThinkPad L15 Gen 3 15.6

Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black

$241.50



Lenovo ThinkPad E14 Gen 3 Laptop 14” FHD AMD Ryzen 5 16GB RAM 512GB SSD Win 11 picture

Lenovo ThinkPad E14 Gen 3 Laptop 14” FHD AMD Ryzen 5 16GB RAM 512GB SSD Win 11

$374.99



Lenovo ThinkPad T14 Gen 2 i5-1145G7 16GB 512GB SSD Touch Win11 Pro picture

Lenovo ThinkPad T14 Gen 2 i5-1145G7 16GB 512GB SSD Touch Win11 Pro

$289.99



Lenovo Legion 5 Gaming 15.1

Lenovo Legion 5 Gaming 15.1" WQXGA OLED 165Hz Core i9-14900HX 16GB 1TB RTX 5070

$1469.00



Lenovo ThinkPad X13 Gen 1 i5-10310U 16GB 512GB SSD Touch Win 11 Pro Good picture

Lenovo ThinkPad X13 Gen 1 i5-10310U 16GB 512GB SSD Touch Win 11 Pro Good

$222.99



Lenovo ThinkPad T14 Gen 1 14

Lenovo ThinkPad T14 Gen 1 14" AMD Ryzen 5 16GB 256GB SSD

$219.99



Lenovo - IdeaPad Slim 3i 15.3

Lenovo - IdeaPad Slim 3i 15.3" 2K Touchscreen Laptop - Intel Core 7 350 2026 ...

$679.99



Lenovo Thinkbook 14s Yoga ITL 14” Core i7-1165G7, 16GB RAM, 512GB SSD Touch picture

Lenovo Thinkbook 14s Yoga ITL 14” Core i7-1165G7, 16GB RAM, 512GB SSD Touch

$379.00



Lenovo ThinkPad L15 Gen 3 15.6

Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black

$241.50