Changes

Bootable USB flash drive utilities

3,089 bytes added, 19:09, 10 April 2020
/* WoeUSB */
The following lines were added (+) and removed (-):
<small>To create a Windows 7 boot:* from console execute: sudo bash echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes exit* ensure ISO is on the local disk, not a network drive or mounted from another medium, this seems to cause problems* using an ISO, run WoeUSB, and select NTFS as the file system for the flash.  * If you get an exit code 256 error after the NTFS format, dont worry.  Just start the process over.  It seems to be a conflict between automount and woeusb.  The second time around it starts copying files after it realizes the drive is NTFS formatted already* monitor the progress from console with nmonNote: This process is not verified, and failed during testing.</small>=== Etcher / balena Etcher ===* https://www.balena.io/etcher/* Cross-platform (Windows, macOS, Linux) +  burn images on USB drives and Micro SD Cards.balenaEtcher is a free and open-source utility used for writing image files such as .iso and .img files, as well as zipped folders onto storage media to create live SD cards and USB flash drives.  Uses a GUI Etcher Bootable USB Creator.When I downloaded Etcher for Linux from the main web page the program came as an [[AppImage]] file.  They also provide external links to deb package and other options such as RPM.=== The dd Command in Linux ===* https://linuxize.com/post/create-bootable-debian-10-usb-stick-on-linux/Here are some examples using dd.  sudo dd if=./linuxmint-19.2-cinnamon-64bit.iso of=/dev/sdc bs=4M status=progress oflag=sync sudo dd if=./linuxmint-19.2-cinnamon-64bit.iso of=/dev/sdc bs=4M status=progress conv=fdatasync sudo dd if=./linuxmint-19.2-cinnamon-64bit.iso of=/dev/sdc bs=4M && syncThese are from different sources.  Sometimes this works.  Sometimes it just sits there forever and you don't get a prompt back even if you try to break.When you insert the USB flash drive into the Linux PC it is immediately recognized as a block device, not not necessarily auto mounted even when auto mount is enabled.  It will be auto mounted if there is a partition that has a compatible file system.  If it is auto mounted you need to unmount it from the command line while not "ejecting" it.  We want the kernel to see the block device, however, we do not want any partition mounted.  The block device will show up in fdisk -l and if it does not, then you will not be able to write the ISO to the flash drive.  If the flash drive auto mounts, then simply unmount it by a command umount /dev/sdcWith the block device recognized, and the partition(s) not mounted, I found this command to work best: sudo dd if=./linuxmint-19.2-cinnamon-64bit.iso of=/dev/sdc bs=4M status=progress oflag=synccan detach a USB drive with the following commands sudo eject /dev/sdcAfter invoking the eject command the USB flash drive is no longer a block device visible with fdisk -l== Related ==* [[Ubuntu Installation from a Flash Drive]]* [[Bootable USB flash drive utilities]]* [[Creating bootable USB Flash Drive]][[Category:Solid_State_Media]]
Bureaucrat, administrator
16,199
edits