Date created: Monday, May 3, 2021 12:07:20 PM. Last modified: Thursday, June 20, 2024 9:20:15 AM

Make Bootable USB

1. Insert USB drive

 

2. Find drive name/path

$ sudo fdisk -l
...
Disk /dev/sdb: 7.5 GiB, 8004304896 bytes, 15633408 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
...
sdb 8:16 1 7.5G 0 disk /media/bensley/disk

$ dmesg
...
[13465.529061] usb 1-1.2: new high-speed USB device number 6 using ehci-pci
[13465.639572] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5567
[13465.639578] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[13465.639580] usb 1-1.2: Product: Firebird USB Flash Drive
[13465.639583] usb 1-1.2: Manufacturer: SanDisk
[13465.639585] usb 1-1.2: SerialNumber: 4C532000041214104485
[13465.683978] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[13465.684069] scsi host4: usb-storage 1-1.2:1.0
[13465.684157] usbcore: registered new interface driver usb-storage
[13465.686224] usbcore: registered new interface driver uas
[13466.706965] scsi 4:0:0:0: Direct-Access SanDisk Cruzer Blade 1.26 PQ: 0 ANSI: 5
[13466.707726] sd 4:0:0:0: Attached scsi generic sg1 type 0
[13466.709318] sd 4:0:0:0: [sdb] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[13466.710897] sd 4:0:0:0: [sdb] Write Protect is off
[13466.710902] sd 4:0:0:0: [sdb] Mode Sense: 43 00 00 00
[13466.712356] sd 4:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[13466.723136] sdb:
[13466.727923] sd 4:0:0:0: [sdb] Attached SCSI removable disk

 

3. Make sure the drive and all partitions are unmounted

$ sudo umount /dev/sdb*

 

4. Zero out the partition

# fdatasync will "physically write output file data before finishing":
$ sudo dd if=/dev/zero of=/dev/sdb1 bs=1M status=progress conv=fdatasync
8002732032 bytes (8.0 GB, 7.5 GiB) copied, 918 s, 8.7 MB/s

 

5. Copy over the install image:

$ sudo dd if=ubuntu-20.04.2.0-desktop-amd64.iso of=/dev/sdb1 bs=1M status=progress conv=fdatasync && sync

 


Previous page: Magic Systems Request
Next page: Memory Tuning