{"id":4363,"date":"2015-12-05T13:00:33","date_gmt":"2015-12-05T13:00:33","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=4363"},"modified":"2018-03-06T20:37:25","modified_gmt":"2018-03-06T20:37:25","slug":"create-ubuntu-usb-stick","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=4363","title":{"rendered":"Create Ubuntu USB Stick"},"content":{"rendered":"<h3>ISO-9660 \/ MBR \/ GPT<\/h3>\n<p>&#8220;CD-Rs normally use the ISO-9660 filesystem directly, without partitions.&#8221;<br \/>\n<a href=\"http:\/\/superuser.com\/questions\/631109\/do-isos-contain-partition-tables-as-well-as-a-backup-of-the-data\">Do ISO&#8217;s contain partition tables as well as a backup of the data?<\/a><br \/>\n<a href=\"http:\/\/unix.stackexchange.com\/questions\/259446\/how-to-understand-partition-table-on-hybrid-iso-image\">How to understand partition table on hybrid ISO image?<\/a><br \/>\n<a href=\"http:\/\/askubuntu.com\/questions\/814745\/in-ubuntu-iso-mbr-why-does-a-gpt-partition-overlap-the-boot-partition-and-make\">In Ubuntu ISO MBR, why does a GPT partition overlap the boot partition, and make MBR uneditable?<\/a><\/p>\n<h3>mkusb<\/h3>\n<p><a href=\"http:\/\/askubuntu.com\/questions\/817931\/how-to-create-a-live-ubuntu-usb-drive-with-persistence-for-bios-using-only-termi\"><\/a><br \/>\n<a href=\"https:\/\/help.ubuntu.com\/community\/mkusb\/gui#dus_-_a_revamped_interface_of_mkusb_and_mkusb-nox\">dus &#8211; a revamped interface of mkusb and mkusb-nox<\/a><br \/>\n<a href=\"https:\/\/help.ubuntu.com\/community\/mkusb\/gui\">mkusb versions with GUI<\/a><br \/>\n<a href=\"https:\/\/help.ubuntu.com\/community\/mkusb\">mkusb &#8211; tool to create boot drives<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo add-apt-repository ppa:mkusb\/unstable\r\n$ sudo apt-get update\r\n$ sudo apt-get install mkusb\r\n\r\n$ guidus\r\n<\/pre>\n<p><a href=\"https:\/\/de.wikipedia.org\/wiki\/Zenity\">Zenity<\/a>, erlaubt, GTK-Dialoge von der Kommandozeile oder von Shell-Skripten aus zu starten<\/p>\n<h3>Von Hand<\/h3>\n<p><a href=\"http:\/\/askubuntu.com\/questions\/372607\/how-to-create-a-bootable-ubuntu-usb-flash-drive-from-terminal\">How to create a bootable Ubuntu USB flash drive from terminal?<\/a><\/p>\n<pre class=\"brush: plain; title: old; notranslate\" title=\"old\">\r\nsudo umount \/dev\/sdb\r\nsudo dd if=\/path\/to\/ubuntu.iso of=\/dev\/sdb bs=1M\r\n<\/pre>\n<p><a href=\"https:\/\/askubuntu.com\/questions\/215505\/how-do-you-monitor-the-progress-of-dd\">How do you monitor the progress of dd?<\/a><\/p>\n<pre class=\"brush: plain; title: new (linux); notranslate\" title=\"new (linux)\">\r\n$ sudo dd if=\/dev\/urandom of=\/dev\/null status=progress\r\nor\r\n$ sudo apt-get install pv\r\n$ dd if=\/path\/to\/ubuntu.iso | pv | dd of=\/dev\/sdb\r\n<\/pre>\n<pre class=\"brush: plain; title: new (Linux); notranslate\" title=\"new (Linux)\">\r\nsudo mkdir \/media\/iso\/\r\nsudo mount -o loop \/path\/to\/ubuntu.iso \/media\/iso\r\n\r\n# add fat32 partition (with gparted)\r\n\r\ncp -a \/media\/iso\/. \/media\/xxx\/\r\n\r\nsudo apt-get install syslinux mtools\r\nsudo syslinux -s \/dev\/sdd1\r\n\r\n=== NOT FINISHED !!! ===\r\n\r\n<\/pre>\n<pre class=\"brush: plain; title: new (FreeBSD); notranslate\" title=\"new (FreeBSD)\">\r\n$ pkg install syslinux\r\nNew packages to be INSTALLED:\r\n        syslinux: 6.03\r\n        mtools: 4.0.10_4\r\n&#x5B;...]\r\n&#x5B;1\/2] Installing mtools-4.0.10_4...\r\n&#x5B;1\/2] Extracting mtools-4.0.10_4: 100%\r\n&#x5B;2\/2] Installing syslinux-6.03...\r\n&#x5B;2\/2] Extracting syslinux-6.03: 100%\r\nMessage from mtools-4.0.10_4:\r\n************************************************************\r\nPlease verify \/usr\/local\/etc\/mtools.conf for your machine.\r\n************************************************************\r\n\r\nDelete MBR\r\n$ dd if=\/dev\/zero of=\/dev\/da1 bs=2m count=1\r\n\r\nCreate MBR with one FAT32 partition\r\n$ fdisk -i \/dev\/da0\r\n\r\nFormat the partition\r\n$ newfs_msdos -F32 \/dev\/da1s1\r\n\r\nMount partition\r\n$ mount_msdosfs \/dev\/da1s1 \/mnt\r\n\r\nCreate a memory disk:\r\n-a        = attach\r\n-t vnode  = backing store &quot;file&quot;\r\n-f &lt;file&gt; = filename to use\r\n-u 0      = create \/dev\/md0\r\n$ mdconfig -a -t vnode -f ubuntu-15.10-server-amd64.iso -u 0\r\n\r\nMount the memory disk\r\n$  mount -t cd9660 \/dev\/md0 \/media\/iso\r\n\r\nCopy files from ISO to USB Stick\r\n$ cp -a \/media\/iso\/. \/mnt\r\n\r\n$ find \/mnt -name syslinux.cfg\r\n\/mnt\/install\/netboot\/ubuntu-installer\/amd64\/boot-screens\/syslinux.cfg\r\n\r\n=== NOT FINISHED !!! ===\r\n\r\n<\/pre>\n<p><a href=\"http:\/\/blog.bachi.net\/?p=4676\">Format USB Stick with FAT32 on FreeBSD<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ISO-9660 \/ MBR \/ GPT &#8220;CD-Rs normally use the ISO-9660 filesystem directly, without partitions.&#8221; Do ISO&#8217;s contain partition tables as well as a backup of the data? How to understand partition table on hybrid ISO image? In Ubuntu ISO MBR, why does a GPT partition overlap the boot partition, and make MBR uneditable? mkusb dus [&hellip;]<\/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-4363","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/4363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4363"}],"version-history":[{"count":11,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/4363\/revisions"}],"predecessor-version":[{"id":7428,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/4363\/revisions\/7428"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}