On Sat 04 Jan 2020 at 13:00:04 (+0800), kaye n wrote: > First I used gparted to format the entire flash drive to fat32.
As Charles pointed out, anything you do before the dd is a waste of time because it will be overwritten. > Then I executed the command in terminal: > > sudo dd if=debian-live-10.2.0-amd64-xfce+nonfree.iso of=/dev/sdb bs=4M; sync That looks ok. > which resulted in a non-working flash drive; Did you actually try booting with it? "Non-working" is far too imprecise to be of much help here. > when I looked at it in > gparted, there was a small black partition, and the rest was empty. One wouldn't expect much sense from conventional paritioning programs. Here's the output from a perfectly good buster netinst ISO on a USB stick in a PC, using parted, fdisk, and gdisk (in 2 ways). Model: Multiple Card Reader (scsi) Disk /dev/sdb: 4109MB Sector size (logical/physical): 2048B/512B Partition Table: mac Disk Flags: Number Start End Size File system Name Flags 1 2048B 6143B 4096B Apple 2 2081kB 4342kB 2261kB EFI Disk /dev/sdb: 979.8 MiB, 1027342336 bytes, 2006528 sectors Disk model: Card Reader 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: 0x571cd279 Device Boot Start End Sectors Size Id Type /dev/sdb1 * 0 954367 954368 466M 0 Empty /dev/sdb2 4064 8479 4416 2.2M ef EFI (FAT-12/16/32) GPT fdisk (gdisk) version 1.0.3 Partition table scan: MBR: MBR only BSD: not present APM: not present GPT: present Found valid MBR and GPT. Which do you want to use? 1 - MBR 2 - GPT 3 - Create blank GPT Your answer: 1 Disk /dev/sdb: 2006528 sectors, 979.8 MiB Model: Card Reader Sector size (logical/physical): 512/512 bytes Disk identifier (GUID): 3C2347FD-8B3D-4ECA-9240-E7101DB97B1C Partition table holds up to 128 entries Main partition table begins at sector 2 and ends at sector 33 First usable sector is 34, last usable sector is 2006494 Partitions will be aligned on 32-sector boundaries Total free space is 2002045 sectors (977.6 MiB) Number Start (sector) End (sector) Size Code Name 2 4064 8479 2.2 MiB EF00 EFI System GPT fdisk (gdisk) version 1.0.3 Partition table scan: MBR: MBR only BSD: not present APM: not present GPT: present Found valid MBR and GPT. Which do you want to use? 1 - MBR 2 - GPT 3 - Create blank GPT Your answer: 2 Using GPT and creating fresh protective MBR. Warning! Main partition table overlaps the first partition by 64 blocks! You will need to delete this partition or resize it in another utility. Disk /dev/sdb: 2006528 sectors, 979.8 MiB Model: Card Reader Sector size (logical/physical): 512/512 bytes Disk identifier (GUID): B8AAEB19-4DCE-4CA8-A569-087E29CCAA60 Partition table holds up to 208 entries Main partition table begins at sector 12 and ends at sector 63 First usable sector is 64, last usable sector is 954314 Partitions will be aligned on 32-sector boundaries Total free space is 3 sectors (1.5 KiB) Number Start (sector) End (sector) Size Code Name 2 4064 8479 2.2 MiB 0700 ISOHybrid1 There are people here who understand these contents, but I'm not one. But this is from a stick that has been used to install buster. > Doesn't matter now, I'm zeroing the flash drive as I'm typing this. How > long does it take to zero an 8gb flash drive anyway? I forgot to put > "status=progress" in the zeroing command, so now I don't know how long I > have to wait. >From man dd "Sending a USR1 signal to a running 'dd' process makes it print I/O statistics to standard error and then resume copying." Cheers, David.