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.
Parents
  • 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
  • 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.
Reply
  • 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.
Children
No Data