Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-28-2008, 06:26 PM   #1
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 50
Bootable USB stick with G4L


howto create bootable USB stick with G4L?

Last edited by cccc; 11-28-2008 at 06:52 PM.
Old 11-28-2008, 06:53 PM   #2
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 50
here is a very good solution:

Bootable USB stick with G4L
Oct 23rd, 2008, 10:54am
I figured this might be usefull for some, this can be done in windows or linux

- I asume we have an empty usb stick, if not, we need about 55mb
- I asume under windows the usb stick is drive F:
- I asume under linux the usb stick is sdd1
- If your usb stick is another drive or device then adjust the guide below

- download G4L ISO from
- download latest from

- insert your usb stick
- make a directory "boot" on the usb stick

- extract all the files from downloaded G4L ISO and place them into the "boot" directory on the usb stick:
--- windows user can d/l and use to do this
--- linux users simply mount the iso using mount -o loop g4l-v0.27.iso iso and cp the files over
- in the "boot" directory delete syslinux.cfg
- in the "boot" directory rename isolinux.cfg to syslinux.cfg
- from the "boot" directory copy syslinux.cfg to the root of the usb stick (F: or /)
- edit syslinux.cfg in the root directory, you now need to add "boot/" before each line that points to a file:
--- DEFAULT vesamenu.c32 to DEFAULT boot/vesamenu.c32
--- MENU BACKGROUND test.png to MENU BACKGROUND boot/test.png
--- KERNEL bzImage6 to KERNEL boot/bzImage6
--- APPEND initrd=ramdisk.gz.... to APPEND initrd=boot/ramdisk.gz....
------- do this for all KERNEL lines and all APPEND lines just add boot/ dont change what is there already, till you reach the last line
--- ONTIMEOUT bz26.5 and change that to ONTIMEOUT boot/bz26.5

- extract the you downloaded
- windows users go into the win32 directory of the extracted file
--- do syslinux.exe -m -a -d /boot F:
- linux users go into the linux directory of the extraced file
--- do ./syslinux /dev/sdd1

and that is it, you now have a bootable USB stick with G4L on it, and with todays huge sticks and usb drives you got it all in one, bootup with it and backup to it or restore from it.

note: If you rather not edit the syslinux.cfg then instead of making a "boot" directory, simply put everything in the root, but this way its a bit cleaner.
Old 08-01-2011, 12:53 PM   #3
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 50
Much easier is, for example on Windows:

1.) Backup all data and format an usb stick for example using HP USB Disk Storage Format Tool, FAT32 is fine.

2.) Enable in Windows "Show hidden files and folders"

3.) Download g4l iso file:

4.) Extract all files from the g4l iso file using for example WinRAR, 7-Zip for Windows etc.

5.) Copy ALL extracted files into a fresh formated USB stick

6.) Download syslinux zip file:

7.) Extract the you downloaded

8.) Open Windows command prompt using "cmd" and go into the win32 directory of the extracted syslinux file

9.) Use the following command to make USB stick bootable:

syslinux.exe -m -a -d /boot F:

F: is a drive letter of the mounted USB stick under Windows

10.) Unmount, eject safety the USB stick under Windows

11.) That's all, now you can boot your system from this USB stick and make a backup image of the whole hard disk, for example to a ftp server.

Have fun!

Last edited by cccc; 08-01-2011 at 05:06 PM.
Old 07-26-2013, 11:38 PM   #4
LQ Newbie
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
I tried with syslinux-4 ...thats the result :

Y:\syslinux-4\win32>syslinux.exe -m -a -d /boot E:
Accessing physical drive: Access is denied.
Did not successfully update the MBR; continuing...


Can u plz Advice? ....thanks


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to a bootable flag on usb stick? xpucto Linux - Newbie 10 08-29-2008 08:52 AM
Making a usb stick bootable TotalLinuxNoob Linux - Software 2 01-05-2008 11:03 AM
How to make USB stick bootable? depam Linux - Software 3 12-31-2006 11:22 AM
make a USB stick bootable lothario Linux - Software 1 07-13-2006 01:02 PM
bootable USB-Stick overlord73 Linux - Hardware 1 01-14-2005 02:17 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration