- Any USB drive, preferably SanDisk (Cruzer Edge/Switch)
- Computer running Linux / Windows 10
- Insert the USB to your linux file system
- Execute
umount /dev/sdX
if it is auto-mounted. - Use the
dd
utility to copy your image to the use device.
dd if=file.iso of=/dev/sdX bs=1M status=progress && sync
- Proceed by booting to your USB device and doing your intended task.
- Many third party software exist for the purpose of making bootable USB drives.
- This guide uses Windows native methods of crafting a bootable USB.
Get-Disk | Where BusType -eq 'USB'
Clear-Disk -Number 1 -RemoveData
New-Partition -DiskNumber 1 -UseMaximumSize -AssignDriveLetter
Get-Volume
Format-Volume -DriveLetter F -FileSystem [NTFS/FAT32]
Use
NTFS
for BIOS boot andFAT32
for UEFI boot
Mount-DiskImage -ImagePath "C:\path\to\iso"
Get-CimInstance Win32_LogicalDisk | ?{ $_.DriveType -eq 5} | select DeviceID
xcopy G:\*.* F:\ /e /f /h
exit
In this example
G:
is theCD
drive, andF:
is the destination USB
list disk
select disk <number>
clean
create partition primary
list partition
select partition 1
list disk
select disk <number>
clean
convert mbr
create partition primary
list partition
select partition 1
active
format fs=[ntfs/fat32] quick
assign [letter=F]
exit
right-click file.iso
select "Mount"
OR
- Choose one of the following:
start path/to/iso
explorer path/to/iso
- Either one of these commands will execute the iso file in Windows 10 to emulate a double-click.
- If the default behaviour is edited, the second command may be used to mount the
ISO
toG:
G:
cd BOOT
bootsect.exe /nt60 F:
xcopy G:\*.* F:\ /e /f /h
exit
label f:ARCH_YYYYMM
Thanks for the detailed gist, i found it useful