Bootable USB stick with G4L

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 http://sourceforge.net/projects/g4l
- download latest syslinux-X.XX.zip from http://www.kernel.org/pub/linux/utils/boot/syslinux/

- 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 http://www.magiciso.com/ 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 syslinux-X.XX.zip 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.

Enjoy,

Alex

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值