User Tools

Site Tools


linux:debian_on_usb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:debian_on_usb [2015/09/03 12:32]
ozan
linux:debian_on_usb [2015/12/24 08:32] (current)
ozan
Line 1: Line 1:
 ===== Debian On USB ===== ===== Debian On USB =====
  
-In this tutorial I will try to tell how to install debian on a USB stick shortly. ​__This tutorial ​does NOT include copying live linux ISO's to USB.__+In this tutorial I will try to tell how to install debian on a USB stick shortly. ​This section ​does not include copying live linux ISO's to USB but this [[#Writing ISO Images to USB|section]] helps you.
 You can freely carry your usb stick with you and run it on any computer. You can freely carry your usb stick with you and run it on any computer.
 **BUT**, after your installation do not expect a good performance from OS because even if you use a USB 3.0, limited simultaneous read/write performance prevents you from having a good performance. **BUT**, after your installation do not expect a good performance from OS because even if you use a USB 3.0, limited simultaneous read/write performance prevents you from having a good performance.
Line 42: Line 42:
  
 Now it is ready to use. Just boot your pc with your new USB by changing settings from BIOS. Have fun. Now it is ready to use. Just boot your pc with your new USB by changing settings from BIOS. Have fun.
-{{tag>​debian linux usb gparted LVM}}+ 
 +==== Writing ISO Images to USB ==== 
 + 
 +When you download ISO images of Debian or any other Linux distribution you most probably write it to a USB to install it to another computer. Since USBs took the place of CD and DVDs, you need a tool to copy ISO image to USB. For Windows systems, there are many softwares out there but I like to use [[https://​rufus.akeo.ie/​|Rufus]]. It is small, open sourced, no installation required and very **stable**. I have not had any problems so far. I found a nice youtube video showing how to use Rufus; 
 +<WRAP center round 60%> 
 +<​html>​ 
 +<iframe width="​854"​ height="​480"​ src="​https://​www.youtube.com/​embed/​VmtRE9LTCOE"​ frameborder="​0"​ allowfullscreen></​iframe>​ 
 +</​html>​ 
 +</​WRAP>​ 
 +For Linux users, you do not need to install any software you have it in your system that is ''​dd''​ 
 +After downloading iso and plugging your usb in, identify usb's device path then run ''​dd''​ then ''​sync''​ commands 
 + 
 +<code bash> 
 +dd if=<​your_iso_file>​.iso of=<​device>​ 
 +sync 
 +</​code>​ 
 +If you cannot find the device path, you can use the following commands 
 +<code bash> 
 +df -h 
 +</​code>​ 
 +''​df''​ shows the information about file system ''​-h''​ switch just makes sizes human readable instead of bytes. 
 +{{ :​linux:​debian_on_usb:​df-h.jpg |}} 
 +**OR** 
 +<code bash> 
 +lsblk 
 +</​code>​ 
 +{{ :​linux:​debian_on_usb:​lsblk.jpg |}} 
 +**OR** 
 +<code bash> 
 +ls -l /​dev/​disk/​by-id/​ 
 +</​code>​ 
 +{{ :​linux:​debian_on_usb:​ls-l-dev-disk-by-id.jpg |}} 
 +So, after successfully getting the device path (which is ''/​dev/​sdb''​ in this case), final command should look like this; 
 +<code bash> 
 +umount /dev/sdb1 
 +dd if=<​your_iso_file>​.iso of=/​dev/​sdb 
 +sync 
 +</​code>​ 
 +Make sure you unmount the usb before ''​dd''​ command, because if any activity occurs on usb while ''​dd''​ is running, your partition may be broken. 
 +''​dd''​ command does not inform you about progress, sit and wait till it finishes. ''​bs=4M''​ argument can make the progress faster for ''​dd''​. 
 +THE END 
 +{{tag>​debian linux usb gparted LVM rufus cd dvd iso image dd}}
 ~~DISCUSSION~~ ~~DISCUSSION~~
linux/debian_on_usb.txt · Last modified: 2015/12/24 08:32 by ozan