Installation of DebEX to a USB stick
(To perform the installations you must be root)
The DebEX ISO
is now a ISO-hybrid, which means that it can very easily be transferred (copied) to a USB pen drive. You can then even run DebEX from the USB stick and save all your system changes on the stick. I.e. you will enjoy persistence!
A) "Normal" installation without persistence
DebEX can be installed/transferred to a USB stick directly from the ISO file. It might be good to use this method if your computer lacks a CD/DVD drive, or if you just prefer to run Linux systems from a USB stick.This is the way to perform the installation:
1. Boot up a Linux system (Ubuntu or...) and download the ISO file debex-barebone-64bit-xfce4-1000mb-140509.iso
2. Open up a terminal and cd to the folder where the ISO file is
3. Insert a USB stick and make sure which name it was given (/dev/sdb1 or /dev/sdc1 or ...)
4. Run the installation command cp debex-barebone-64bit-xfce4-1000mb-140509.iso /dev/sdb
5. Then run the command sync
B) Installation with perfect persistence
To make changes persistent do this:
Download the ISO file debex-barebone-64bit-xfce4-1000mb-140509.iso
2. Download the script
3. Download the script
4. Change Directories (cd) to your download directory
5. Run chmod 755
./debex-create-usb-drive.sh debex-barebone-64bit-xfce4-1000mb-140509.iso /dev/sdb
Run ./debex-create-usb-drive-persistent.sh debex-barebone-64bit-xfce4-1000mb-140509.iso /dev/sdb
NOTE 1: It is not necessary to format the USB stick. The scripts take care of everything.
NOTE2: Do not use /dev/sda. (You will then delete the partition on which you probably have a Windows system).
NOTE3: You shall not write /dev/sdb1 (which is easy to believe).
After following the instruction 1 - 5 or 1-7:
Restart your computer with the USB stick in place and change the BIOS so that the computer in the first place is booting from the USB stick.
NOTE4: This way to transfer/install DebEX to a USB stick works perfectly. See this Boot menu.
NOTE5: If the above described methods doesn't work for you, you should try with another USB stick. (Another brand). All different versions of SanDisk are known to work very well.
Alternative in Windows
You can as an alternative to the above mentioned commands use Linux Live USB creator (LiLi) in Windows. When using it it will look like this. Persistence can't be enabled though. Be sure to go to OPTIONS and choose "Recognized Linux" as Debian Live 6.0.4 (LXDE) or Debian 7.0 (LXDE) before starting the installation.
debex-create-usb-drive.sh and debex-create-usb-drive-persistent.sh make UNetbootin and Ubuntu's Startup Disk Creator superfluous (in Linux).The scripts are quite ingenious. Unfortunately, it is not me who have created them. I found the scripts on Kanotix website. There was no direct indication of how good the scripts were, but my tests show that they work flawlessly on USB installations of all normal Ubuntu systems.
The installation to USB works in the same way for version 140626 of DebEX.