{"id":114,"date":"2014-04-30T08:12:22","date_gmt":"2014-04-30T08:12:22","guid":{"rendered":"http:\/\/info.ffteixeira.net\/2014\/04\/30\/installing-debian-on-a-usb-stick\/"},"modified":"2014-04-30T08:12:22","modified_gmt":"2014-04-30T08:12:22","slug":"installing-debian-on-a-usb-stick","status":"publish","type":"post","link":"https:\/\/blog.ffteixeira.net\/?p=114","title":{"rendered":"Installing Debian on a USB stick"},"content":{"rendered":"<p><b>1. &nbsp;Creating a USB version of a live CD &#8212; the boring option<\/b><br \/>With the current &#039;hybrid&#039; Debian iso&#039;s it couldn&#039;t be easier.<br \/>THIS WILL WIPE YOUR USB STICK<\/p>\n<p><b>&nbsp;&#8212; START HERE &#8212;<\/b><\/p>\n<p><b>a. Download the iso<\/b><br \/>Using jigdo is a good option. Downloading a business-card\/netinstall iso is another, if you&#039;ll have a working internet connection available.<\/p>\n<p><b>b. Plug in and mount your USB device and &nbsp;find out the device name of your USB drive.<\/b><br \/>If it&#039;s mounted you can use<br \/><span style=\"font-family:courier new,courier,monospace\"><i>#df -h<\/i><\/span><\/p>\n<blockquote class=\"tr_bq\"><p><span style=\"font-family:courier new,courier,monospace\"><span style=\"font-size: x-small\">rootfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 93G &nbsp; 36G &nbsp; 54G &nbsp;40% \/<br \/>udev &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.9G &nbsp; &nbsp; 0 &nbsp;3.9G &nbsp; 0% \/dev<br \/>tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 801M &nbsp;980K &nbsp;800M &nbsp; 1% \/run<br \/>\/dev\/disk\/by-uuid\/..-10a350f85687 &nbsp; 93G &nbsp; 36G &nbsp; 54G &nbsp;40% \/<br \/>tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5.0M &nbsp; &nbsp; 0 &nbsp;5.0M &nbsp; 0% \/run\/lock<br \/>tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.6G &nbsp; 52K &nbsp;1.6G &nbsp; 1% \/tmp<br \/>tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.6G &nbsp;816K &nbsp;1.6G &nbsp; 1% \/run\/shm<br \/>\/dev\/sda6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 745G &nbsp;183G &nbsp;525G &nbsp;26% \/home<br \/><span style=\"color: red\">\/dev\/sdc1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2.0G &nbsp;434M &nbsp;1.5G &nbsp;23% \/media\/XP-KOMKU<\/span><\/span><\/span><\/p><\/blockquote>\n<p><i style=\"line-height: 1.538em\">or<\/i><\/p>\n<p><i>mount<\/i><\/p>\n<blockquote class=\"tr_bq\"><p><span style=\"font-family:courier new,courier,monospace\"><i>..<\/i><span style=\"font-size: x-small\">\/dev\/sdc1 on \/media\/XP-KOMKU type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=cp437,iocharset=utf8,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks)<\/span><\/span><\/p><\/blockquote>\n<p><span style=\"line-height: 1.538em\">to list mounted devices. In my case it&#039;s an old 2 G usb stick I used to create a Windows XP installation USB device on.<\/span><\/p>\n<p>If you prefer a gui tool, start <b>palimpsest<\/b> (called Disk Utility in gnome)<br \/>It will be something akin to <b>sdb1<\/b> or <b>sdc1<\/b> etc. That means the device name is <i>\/dev\/sdb<\/i> or <i>\/dev\/sdc<\/i>, respectively. In our case, it&#039;s <b>sdc<\/b>.<\/p>\n<div class=\"separator\" style=\"clear: both;text-align: center\">&nbsp;<\/div>\n<p><b>c. Unmount but don&#039;t detach the device<\/b><br \/>You don&#039;t want anything else writing to it.<br \/>&nbsp;<\/p>\n<blockquote class=\"tr_bq\"><p><span style=\"font-family:courier new,courier,monospace\"><span style=\"font-size: x-small\"># <span style=\"color: red\">umount \/dev\/sdc1<\/span><br \/># df -h<br \/>Filesystem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Size &nbsp;Used Avail Use% Mounted on<br \/>rootfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 93G &nbsp; 36G &nbsp; 54G &nbsp;40% \/<br \/>udev &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.9G &nbsp; &nbsp; 0 &nbsp;3.9G &nbsp; 0% \/dev<br \/>tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 801M &nbsp;976K &nbsp;800M &nbsp; 1% \/run<br \/>\/dev\/disk\/by-uuid\/..-10a350f85687 &nbsp; 93G &nbsp; 36G &nbsp; 54G &nbsp;40% \/<br \/>tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5.0M &nbsp; &nbsp; 0 &nbsp;5.0M &nbsp; 0% \/run\/lock<br \/>tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.6G &nbsp; 60K &nbsp;1.6G &nbsp; 1% \/tmp<br \/>tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.6G &nbsp;820K &nbsp;1.6G &nbsp; 1% \/run\/shm<br \/>\/dev\/sda6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 745G &nbsp;183G &nbsp;525G &nbsp;26% \/home<\/span><\/span><\/p><\/blockquote>\n<div><b>d. Become root and use cat to write the iso to the USB device<\/b><\/div>\n<p><span style=\"font-family:courier new,courier,monospace\">sudo su<\/span><\/p>\n<p>And write (assuming that the device name is sdc and you are using the businesscard iso)<\/p>\n<p><span style=\"font-family:courier new,courier,monospace\">cat debian-6.0.3-amd64-businesscard.iso &gt; \/dev\/sdc<\/span><\/p>\n<p>Done.<\/p>\n<p><b>e. boot from your USB drive and go through the same steps as for a CD. &nbsp;<\/b><br \/>Plug it in, then start your computer. Hit F12 (or F10 or del or F2) during the bios start-up to select boot medium. Choose to boot from usb.&nbsp;Older BIOSes can&#039;t boot from USB.<\/p>\n<p>Fonte:&nbsp;http:\/\/verahill.blogspot.pt\/2012\/02\/installing-debian-on-usb-stick-live-usb.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. &nbsp;Creating a USB version of a live CD &#8212; the boring optionWith the current &#039;hybrid&#039; Debian iso&#039;s it couldn&#039;t be easier.THIS WILL WIPE YOUR USB STICK &nbsp;&#8212; START HERE &#8212; a. Download the isoUsing jigdo is a good option. &hellip; <a href=\"https:\/\/blog.ffteixeira.net\/?p=114\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":0,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}