This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bootable USB Thumb drive creation

Greetings,

Seen some posts about people trying, but no one succeeding in getting a thumb drive to boot and load the updated iso's similar to the way the astaro thumb drive works.  Is it simply impossibly for us to create our own?

 - Zeb


This thread was automatically locked due to age.
  • The trick is the hardware header.  Normal USB drives are external hard drives, the Astaro Smart Installer is seen as an external CD-ROM drive- this is a hardware-level difference, you can't simply change the file system format to get this to work.

    For Astaro appliances, I think the ASI is your best bet- but for Astaro software on your own hardware you can use unetbootin and a normal thumbdrive to make a bootable USB device.
  • Hi Jack,

    Is there a list of instructions or paramaters for unetbootin to work with Astaro ISOs? It doesn't seem to be able to blindy load random ISOs.

    Thanks,
    Barry
  • Fantastic!  I think I spent 40 hours in late 2007 trying to accomplish this, but failed.

    Just generate a live USB drive?  Sweet!

    Thanks, Jack!
    PS Now, if it were possible to install ASL on a 16GB USB drive and run it from there, we'd have another option for using our laptops to demo Astaro...
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Hi Barry,

    unetbootin should "just work", Select the "Diskimage" option instead of the Distributrion option, then browse to the iso, select the correct USB drive letter, click OK.  

    I have used it with a wide variety of images, the only thing I have had problems with was Kon-Boot, but that is an oddity.
  • I just tried with 7.402.  No joy.

    This is an ISO that I had already burned to a CD and loaded successfully on a machine earlier this month.  I just tried to load from the Unetbootin USB, but the PC was pronounced incompatible, as if the hard drive or memory were too small.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • I mentioned this in another thread, but I figured I should post it here, too, as this thread has a more apt topic name. 

    Unfortunately, as of 9.004, creating a bootable thumbdrive from the ISO file still doesn't fully work. I just tried it with unetbootin. It will boot into the Astaro installer and begin the install, but it will then fail part way through saying it cannot find "install.tar". I saw someone post about this a while back with a hack you can do to make it work. I'll see if I can dig it up.
  • Found it, but the steps in this link don't work with ASG v9:
    https://community.sophos.com/products/unified-threat-management/astaroorg/f/52/t/27887

    The issue is that the common thumbdrive utilities (such as unetbootin) tend to truncate file names greater than 64 characters when extracting the iso to a thumbdrive.  (This happens with any ISO that contains very long filenames.)  Having truncated file names will of course break the installer, since it will be unable to find the files it needs.  (This truncation issue seems to be related to ISO 9660 cdrom filesystem standards, which is another issue entirely.)

    To get around the truncation issue, you can create the bootable thumbdrive on a Linux machine by mounting the iso file as a filesystem and copying the files manually.  If you have a tool in Windows that will similarly mount an ISO file to a drive letter, that might work, too.  The idea is that you create a bootable thumbdrive, then copy all the files from the iso onto the thumbdrive.  

    Tools like unetbootin basically work like this:

    They format the thumbdrive (if desired).
    They install syslinux onto the thumbdrive to make it bootable.
    They extract the iso file onto the thumbdrive.

    It's that last step that's the problem.  Most extraction utilities will read the iso 9660 standard filenames from the iso file, which max out at 64 characters.  You have to have some way to mount the iso in such a way as to read the full filenames.

    Here's how to make an ASG thumbdrive on a Linux machine.  It's not as bad as it looks!  I've included comments for each step to show you what's going on.

    # In your operating system of choice, partition and format the usb thumbdrive.
    # Partition it with a single partition, and be sure to set the partition as "active" or bootable in your partitioning tool.
    # Format it with the fat32 filesystem.
    # The following steps are in Linux, and they assume your usb drive is /dev/sdb.
    # Copy the master boot record to the thumbdrive.

    sudo dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/mbr.bin of=/dev/sdb
    # Install syslinux to the thumbdrive.
    sudo syslinux -i /dev/sdb1
    # Mount the thumbdrive and the asg iso file.
    sudo mount /dev/sdb1 /media/bootstick
    sudo mount -o loop /tmp/asg.iso /mnt/asdf 
    # Copy the contents of the iso file to the thumbdrive.
    sudo cp -a /mnt/asdf/* /media/bootstick/
    # Now tweak the boot files a bit.
    cd /media/bootstick
    sudo cp isolinux/isolinux.cfg syslinux.cfg
    # Now you'll need to edit the syslinux.cfg file so it looks like this:

    PROMPT 0
    DEFAULT default
    LABEL default
      KERNEL isolinux/bzimage
      APPEND vga=normal initrd=isolinux/initramfs.gz load_ramdisk=1 root=/dev/ram0 quiet



    Now unmount/eject your thumbdrive, put it in your router machine, and boot from it.
    On the first screen of the installer, hit Alt-F2.  This will give you a command prompt.
    Type this command:

    bash-3.2# mount /dev/sdb1 /mnt
    bash-3.2# mkdir /install/install
    bash-3.2# cp -a /mnt/install/* /install/install/
    Hit Alt-F1 to go back to the installer.
    Finish the Installation as normal.

    Alternatively, you could just use unetbootin to burn the iso to your thumbdrive as usual, and then go through the files on the thumbdrive looking for all the trucated filenames and fixing them.  Most of the offending files seem to be under /install/rpm.  Every file should end with .rpm in that directory.  Most of the files are good, so use them as a template.
  • Bruce documented this, with a solution, at
    http://www.astaro.org/gateway-products/hardware-installation-up2date-licensing/45225-failed-install-utm-9-003-dell-gx270.html#post219969

    Barry


    Thanks for the link.  However, the solution Bruce provided only works when the issue is with your usb cdrom drive not mounting quickly enough.  His solution still assumes you are burning the iso to a cdrom.  It doesn't solve the problem of long file names getting truncated when using a tool such as unetbootin to create a bootable thumbdrive.  However, his solution did make me realize I could slim down my instructions a bit. [:)]