Wolvix Wiki : USBFlashDriveInstall

HomePage :: Wolvix.org :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

How to install Wolvix to a USB Flash Drive


You can install Wolvix to a USB Flash Drive by:


Using Wolvix / Linux:


Note! In Wolvix 1.0.5 and later there is a USB drive installer included in the WolvixControlPanel, so there is no need to install manually as described below.

Note! Your motherboard needs to be able to boot from a USB device.

All commands described in this guide are executed from a terminal.

Make sure you have a Flash Drive with sufficient space before you start. The minimum is 512MB, or 256MB if you intend to install 'Wolvix Cub'.

1) Preparation:


Boot the Wolvix CD and download the latest syslinux tarball from kernel.org (syslinux-3.31.tar.gz will be used in this guide).

Insert the Flash Drive to your computer and wait a few seconds for Wolvix to detect it. To see if it was detected properly, start the FileManager (Xfe) and browse to the /mnt directory, or simply use the command:
ls /mnt

Inside /mnt you should see a directory called 'sda1_removable' or similar. The actual DeviceName (sda1 in my case) may be different on your system, depending on whether you have any S-ATA or SCSI hard drives or any other flash devices in your computer. If you don't have any S-ATA or SCSI hard drives and the Flash Drive you intend to use is the only one inserted, it's probably sda1. (/dev/sda1)

I like to use the FAT32 filesystem on my Flash Drive, but you can also use FAT16 which is the default on most Flash devices, so this step is optional.

To format your Flash Drive with FAT32 use this command (remember to replace sda1 with your actual device):
mkdosfs -F 32 /dev/sda1

Warning! This will destroy all data on the drive, so backup the files you want to keep and make sure you format the right device.


2) Copying files to the drive:


First, we must mount the drive so we can copy files to it:
mount /mnt/sda1_removable


Copy the needed files from the CD to the Flash Drive with the command:
cp -ra /mnt/live/mnt/hdc/* /mnt/sda1_removable/

Replace hdc with the DeviceName that applies to your system. Look inside the directory '/mnt/live/mnt' if you're not sure. Inside, you should see a directory called 'hdb', 'hdc', or 'hdd', depending on how your CD/DVD drive is connected to the computer.


3) Moving files on the drive:


We need to move some files from the /boot directory to the base (root) of the drive:
mv /mnt/sda1_removable/boot/vmlinuz /mnt/sda1_removable/
mv /mnt/sda1_removable/boot/initrd.gz /mnt/sda1_removable/
mv /mnt/sda1_removable/boot/splash.* /mnt/sda1_removable/

Then rename the file 'isolinux.cfg' to 'syslinux.cfg':
cd /mnt/sda1_removable/
mv isolinux.cfg syslinux.cfg

Again, replace sda1 with your device.

4) Editing syslinux.cfg and splash.cfg:


Now we need to edit 'syslinux.cfg' so it will find the kernel (vmlinuz), the initrd and the splash config we just moved. You need to remove all the boot/ references, except for the last one for memtest in this file.

nano-w syslinux.cfg


Change the 'syslinux.cfg' from this:

display boot/splash.cfg
default wolvix
prompt 1
timeout 100
F1 boot/splash.txt
F2 boot/splash.cfg

label wolvix
kernel boot/vmlinuz
append vga=791 max_loop=255 initrd=boot/initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

label linux
kernel boot/vmlinuz
append vga=791 max_loop=255 initrd=boot/initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

label memtest
kernel boot/memtest


To this:

display splash.cfg
default wolvix
prompt 1
timeout 100
F1 splash.txt
F2 splash.cfg

label wolvix
kernel vmlinuz
append vga=791 max_loop=255 initrd=initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

label linux
kernel vmlinuz
append vga=791 max_loop=255 initrd=initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

label memtest
kernel boot/memtest


Then edit splash.cfg
nano-w splash.cfg


Again you need to remove boot/, so edit the file from this:

^L^Xboot/splash.lss
^O0f

Welcome to Wolvix Live CD. Hit Enter to continue booting or press F1 for help.


To this:

^L^Xsplash.lss
^O0f

Welcome to Wolvix Live CD. Hit Enter to continue booting or press F1 for help.


5) Final step, unmount and install syslinux:


First, we move out of the Flash Drive, then unmount it.
cd
umount /mnt/sda1_removable


Then we unpack the syslinux tarball that was downloaded in the first step. (Replace 3.31 with the version you've downloaded.)
tar -xzvf syslinux-3.31.tar.gz


Go to the syslinux-3.31/mtools directory and install it to the Flash Drive.
cd syslinux-3.31/mtools
./syslinux /dev/sda1

Remember to change sda1 with what applies to your system.

If everything goes well, you should now be able to run Wolvix from your USB Flash Drive.

Using Windows:


The method listed here has no real advantage over the method listed above,
but users who are new to Linux will find this method a bit more familiar.


1) Preparation:


You will need:


2) Copying files from the CD-ROM to the USB drive:




3) Editing syslinux.cfg and splash.cfg:



Before editing
display boot/splash.cfg
default wolvix
prompt 1
timeout 300
F1 boot/splash.txt
F2 boot/splash.cfg

label wolvix
kernel boot/vmlinuz
append vga=791 max_loop=255 initrd=boot/initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

label memtest
kernel boot/memtest


And after editing:

display splash.cfg
default wolvix
prompt 1
timeout 300
F1 splash.txt
F2 splash.cfg

label wolvix
kernel vmlinuz
append vga=791 max_loop=255 initrd=initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4444 root=/dev/ram0 rw

label memtest
kernel boot/memtest


Save the edited syslinux.cfg file and close it.
Then, open the splash.cfg file in your editor:
Again, you need to remove boot/, so edit the file from this:

^L^Xboot/splash.lss
^O0f
 Welcome to Wolvix Live CD. Hit Enter to continue booting or press F1 for help.



Note!The first characters at the beginning of line 1 and line 2 are not readable ... that's OK. Leave them alone and just edit the text that you can read, like removing boot/ in line 1.

To this:
^L^Xsplash.lss
^O0f
 Welcome to Wolvix Live CD. Hit Enter to continue booting or press F1 for help.



4) Install syslinux:






CategoryGuide

There is one comment on this page. [Display comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1021 seconds