Feb
20
2011

Install Fbinst in Ubuntu

Fbinst is a really good USB Flash Disk formatting tool.It creates universal bootable USB Flash Drives. I had previously posted about using Fbinst in Windows.In this article I will show you how you can install Fbinst and format your USB Flash Drives in Ubuntu or any other Linux Distribution.

There are no deb or rpm packages for Fbinst.So you have to compile it from the source to use it in Linux.

As of now there is no GUI interface for Fbinst in Linux.So you have to be satisfied with the command line version.

Compiling Fbinst from Source

  1. Download grubutil_scripts.zip and extract it to your home folder.
  2. Open grubutil_dirs with a text editor like gedit
  3. Edit the file as follows.
    SRCDIR=/home/username/fbinst/src
    OBJDIR=/home/username/fbinst/obj

    replace username with your User Name

  4. Open terminal and execute the following the commands
    sudo apt-get install subversion
    chmod +x grubutil_compile
    chmod +x grubutil_update
    PATH=$PATH:/home/username
    export PATH
    ./grubutil_update
    ./grubutil_compile
  5. Now you can execute fbinst.it will be located in the fbinst/obj folderCompiled Fbinst

Install Grub4Dos to your USB Flash Drive using Fbinst in Ubuntu

Grub4Dos is a very powerful and versatile bootloader with many features.I always use Grub4Dos as the bootloader in my bootable USB Flash Drives.

  1. Download AutoFbinst and extract grldr and fb.txt to /home/username/fbinst/obj
  2. Open Terminal and navigate to the fbinst folder.
    cd fbinst/obj
  3. To view Fbinst help
    ./fbinst -h
  4. View list of USB Drives connected.Note down the correct hd number.In my case it was (hd1)
    sudo ./fbinst -l

    You must run fbinst as root.

  5. Formating your USB Flash Drive and installing grub4dos boot loader.
    Execute the following instructions one by one.Make sure you enter the correct hd number.In this case it is hd1.In your case it maybe hd2 or hd3 depending on the number of USB Flash Drives connected to the computer.
    Never enter hd0 as it your primary hard disk.

    sudo ./fbinst "(hd1)" format --force --fat32
    sudo ./fbinst "(hd1)" add grldr grldr
    sudo ./fbinst "(hd1)" add-menu fb.cfg fb.txt
  6. You can now copy your menu.lst and other boot files to your USB Drive.
«

»

About the Author: Bharat Balegere

Bharat Balegere is a 27 year old blogger from Bengaluru. He is a technology enthusiast and loves tinkering with computers and usb drives.

1 Comment + Add Comment

  • I tried your solution. It works perfectly.

    After I formatted and prepared USB device I have to physically disconnect and reconnect the device to be able to mount it?

    Is there a workaround for this? Have you been experiencing the same
    problem?

Leave a comment