Changes

→‎Linux instructions: Added MBR overwrite instructions
Line 47: Line 47:  
::# quit  
 
::# quit  
   −
* Also, check to see that you do not already have an existing bootloader (such as GRUB) in the MBR of your stick. If you have not previously used this stick as a live boot, you can skip this step.
+
* Also, check to see that you do not already have an existing bootloader (such as GRUB) in the MBR of your stick. (If you have not previously used this stick as a live boot, you can skip this step.) To be sure that the USB stick's MBR is wiped clean, overwrite it completely using:
:#TODO: instructions.
+
: <tt>dd if=/dev/zero of=/dev/sdb bs=446 count=1</tt>
 
* Unmount the drive,<br>
 
* Unmount the drive,<br>
 
: <tt>sudo umount /dev/sdb1</tt>
 
: <tt>sudo umount /dev/sdb1</tt>
Line 54: Line 54:  
: <tt>chmod +x livecd-iso-to-disk.sh</tt>
 
: <tt>chmod +x livecd-iso-to-disk.sh</tt>
 
* Run it as root, making sure to pass the correct USB device and to set overlay and home size appropriately, depending on the stick size.
 
* Run it as root, making sure to pass the correct USB device and to set overlay and home size appropriately, depending on the stick size.
  sudo ./livecd-iso-to-disk.sh --overlay-size-mb 300 --home-size-mb 160 --delete-home --unencrypted-home soas-beta.iso /dev/sdb1
+
sudo ./livecd-iso-to-disk.sh --overlay-size-mb 300 --home-size-mb 160 \
 +
--delete-home --unencrypted-home soas-beta.iso /dev/sdb1
 
The Linux installation has the advantage of allowing a persistent /home/liveuser folder with the <tt>--home-size-mb ''NNN''</tt> option. This feature would allow you to update the OS image while keeping the user files (by running the script against your existing installation but <u>leaving out</u> the --home-size-mb NNN option).
 
The Linux installation has the advantage of allowing a persistent /home/liveuser folder with the <tt>--home-size-mb ''NNN''</tt> option. This feature would allow you to update the OS image while keeping the user files (by running the script against your existing installation but <u>leaving out</u> the --home-size-mb NNN option).
 
* The <code>--unencrypted-home</code> option prevents password protection and encryption of the /home/liveuser folder. This releaves overhead on the compressed sqaushfs, and should be more robust to file system failures (outside of security).
 
* The <code>--unencrypted-home</code> option prevents password protection and encryption of the /home/liveuser folder. This releaves overhead on the compressed sqaushfs, and should be more robust to file system failures (outside of security).
2

edits