http://distro.ibiblio.org/refracta/test ... b02.tar.gz
Installation _______
Unpack the tarball somewhere in your home directory and then cd to the
resulting refracta2usb directory. See readme.txt. Then run the script.
- Code: Select all
tar -xvzf refracta2usb.tar.gz
cd refracta2usb
bash refracta2usb.sh
Prepare a usb stick _______
Plug in usb stick and see what the device name is with:
- Code: Select all
dmesg | tail
Zero the beginning of the device: (might be optional)
- Code: Select all
dd if=/dev/zero of=/dev/sdX bs=512 count=4096
Run gparted:
Select the correct drive from the drop-down menu in the upper right corner.
Menu bar - select Device - Create Partition Table
Create a fat32 partition big enough to hold the image, and maybe
enough extra for future images. (e.g. 1000 MiB) Label it if you want.
You can optionally create a second partition at this time and format
it to ext2. Do not label it.
Apply all operations.
Set the fat32 partition to be bootable. (Right-click, Manage Flags, boot)
Note: If the usb stick was formatted as fat32 to begin with, you could
just resize it to make room for the second partition. No need to create
a new partition table.
Exit gparted and run the command:
- Code: Select all
install-mbr /dev/<sdX> (do this if you zeroed the device)
You might need to unplug and re-plug in the device at this time.
Create a live-USB system _______
Run refracta2usb:
Choose which task you'd like. There are three.
1. Create a live-USB using files taken from a live-CD .iso file.
This is the normal mode. The program asks you which iso file and usb
stick you'd like to use, mounts both the iso and the usb, copies
files from the iso to the usb, copies syslinux files and custom
hooks from its own library to the usb device, and makes the usb
bootable with syslinux.
2. Create a live-USB using files taken from a running live session.
You can do this if you don't want to install Refracta to hard drive.
Files are copied from the running system. (/lib/live/mount/medium)
Burn the iso to a CD and boot into the live system. Then follow this
guide.
3. Update a previously prepared usb stick with a newer (or older)
image, without reformatting the stick. Lets you choose the iso file
and usb device, copies files as in #1 above, but does not copy
syslinux files or run syslinux command. If the stick already
contains a /live/hooks folder, hooks are preserved and not replaced
with the ones from the program's library.
When it's done, you should be able to boot from the usb stick.