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
  •  


GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX picture

GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX

$59.99



GIGABYTE Z790 AORUS ELITE AX LGA 1700 Intel Z790 ATX Motherboard with DDR5 picture

GIGABYTE Z790 AORUS ELITE AX LGA 1700 Intel Z790 ATX Motherboard with DDR5

$189.99



Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery picture

Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery

$54.99



ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield picture

ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield

$84.99



GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard picture

GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard

$59.99



⁠Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)⁠ picture

⁠Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)⁠

$29.90



ASUS PRIME B360M-C MicroATX Intel LGA1151 DDR4 HDMI VGA USB RJ-45 Audio picture

ASUS PRIME B360M-C MicroATX Intel LGA1151 DDR4 HDMI VGA USB RJ-45 Audio

$34.99



ASUS TUF GAMING B550-PLUS WIFI II AM4 AMD B550 ATX AMD Motherboard picture

ASUS TUF GAMING B550-PLUS WIFI II AM4 AMD B550 ATX AMD Motherboard

$90.99



ASUS B85M-G / B85M-G PLUS LGA1150 DDR3 Micro ATX Motherboard HDMI Support 4thCPU picture

ASUS B85M-G / B85M-G PLUS LGA1150 DDR3 Micro ATX Motherboard HDMI Support 4thCPU

$45.00



ASUS ROG STRIX X870E-E GAMING WIFI picture

ASUS ROG STRIX X870E-E GAMING WIFI

$289.99