Bootable Gparted USB Stick

Creating a bootable usb stick with the Gparted live iso in Ubuntu. Gparted is a graphical partition editor which can resize, move, copy, create, delete your hard drive partitions.

Overview:

  • Format your usb stick to Fat16 and make it bootable using gparted.
  • Install the gparted-live*.iso using unetbootin. (unetbootin also automatically installs the syslinux bootloader)
  • Reinstall syslinux onto usb stick. (Gparted’s live cd requires syslinux newer than ver 3.71. Currently (May 7 2009) Ubuntu 9.04 Jaunty has syslinux 3.63. Use apt-cache show syslinux | grep "^Filename" to check Ubuntu’s version)

Installation Steps

1. Install gparted and unetbootin

sudo aptitude install gparted unetbootin

2. Download the gparted live iso and the latest syslinux.

wget http://superb-west.dl.sourceforge.net/sourceforge/gparted/gparted-live-0.4.4-1.iso
wget http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.80.tar.bz2

3. Insert your usb stick into the computer, and copy any files you want to save to your hard drive. You will be reformatting your stick and will lose all the files on the usb drive.

4. Run gparted.

sudo gparted

Select your usb drive. (Probably something like /dev/sdc). Right click on the partition and select Unmount to unmount the drive. Format the drive to Fat16 and apply. Then make the usb drive bootable by going to Manage Flags and selecting the boot flag.

screenshot-gparted

Exit gparted.

5. Remount your usb drive by unplugging and replugging your usb stick.

6. Run unetbootin

unetbootin

Select Diskimage ISO and locate the gparted-*.iso that you downloaded. Make sure the correct partition is selected at the bottom and click OK.

screenshot-unetbootin

Don’t reboot yet. Just exit unetbootin.

7. Now, you would be done, except that Ubuntu’s syslinux is version 3.63 and the gparted live iso requires at least syslinux version 3.71, so you need to reinstall syslinux onto your usb stick.

Unpack the syslinux tarball you downloaded.

tar xjvf syslinux-3.80.tar.bz2

Now install syslinux onto your usb stick

cd syslinux-3.80/linux
sudo ./syslinux -s /dev/sdc1

8. Now you’re done. Reboot using your new gparted bootable usb stick.

End Notes:

This method should work on other bootable isos too.

You could try to use Fat32 if your motherboard supports booting from Fat32 USB devices. Fat16 is generally more compatible though.

If your USB stick is bigger than the the allowable Fat16 size (2gb), make two partitions: first a 1-2gb Fat16 partition for your boot drive, and a second Fat32 partition with the rest of the space.

This entry was posted in <linux>. Bookmark the permalink.
  • pedro

    Thanks, it works reallay nice !

  • kevin

    thanks ! the trick with syslinux version solved my problem. I had an error after the reboot : Could not find kernel image: vesamenu.c32

  • mark

    Perfect! Thank you thank you!!

  • Sunil Gandhi

    hey!!! I am getting error:
    No previous syslinux boot sector found
    when i execute command:
    sudo ./syslinux -s /dev/sdc1

  • Sunil Gandhi

    Hey guys i solved my problem…I am posting solution here in case anybody faces same problem:

    go to usb drive/utils/linux and type following commands :
        ./syslinux -us /dev/sdb1    ./syslinux -is /dev/sdb1

    This will update and install gparted to newest version.
    After that copy vesamenu.c32 file from usbdrive/isolinux folder to usb drive
    and thats it …you are ready to go…

    In case of any doubts post it on my blog:
    innovationhere.wordpress.com
    so that i will know about your doubts and reply to them..

  • Anonymous

    Thanks for posting your solution!

<RSS Feed>