user@debian:~$ sudo ./mkusb-minp -p debian-live-10.0.0-amd64-standard.iso /dev/mmcblk0 This shellsript wraps a safety belt around 'dd' It helps you select the target device in a safe way to avoid overwriting valuable data by mistake. Please double-check at the final checkpoint! [press Enter to continue] Please check that you will clone to the correct target device! mmc-SP32G_0x52460eb1 /dev/mmcblk0 ata-LITEONIT_LMT-128M6M_mSATA_128GB_TW0T8MRJ550854170015 /dev/sda usb-SanDisk_Extreme_AA010425151516420420-0:0 /dev/sdb NAME MODEL FSTYPE LABEL MOUNTPOINT SIZE NAME mmcblk0 iso9660 Lubuntu 19.10 amd64 29.7G mmcblk0 ├─mmcblk0p1 iso9660 Lubuntu 19.10 amd64 1.6G ├─mmcblk0p1 ├─mmcblk0p2 vfat Lubuntu 19.10 amd64 3.9M ├─mmcblk0p2 └─mmcblk0p3 ext2 casper-rw 28.1G └─mmcblk0p3 Not a USB device. Do you really want to overwrite /dev/mmcblk0 ? (y/N) y Final checkpoint Do you want to overwrite /dev/mmcblk0 ? (y/N) y mount: /tmp/tmp.3yFer2LB6v: WARNING: device write-protected, mounted read-only. grep: /tmp/tmp.3yFer2LB6v/README.diskdefines: No such file or directory Official Debian GNU/Linux Live 10.0.0 standard 2019-07-06T10:36 Debian Making persistent live drive of version 10 ------------------------------------------------------------------ ***** pder: Persistence for Debian ***** Trying to unmount partitions if mounted on the target device umount: /dev/mmcblk0: not mounted. umount: /dev/mmcblk0p1: not mounted. umount: /dev/mmcblk0p2: not mounted. umount: /dev/mmcblk0p3: not mounted. ------------------------------------------------------------------ Please wait until the process has finished and 'Done' is written Error: Partition(s) 1 on /dev/sdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): Partition type p primary (2 primary, 0 extended, 2 free) e extended (container for logical partitions) Select (default p): Partition number (3,4, default 3): First sector (1689600-62333951, default 1689600): Last sector, +/-sectors or +/-size{K,M,G,T,P} (1689600-62333951, default 62333951): Created a new partition 3 of type 'Linux' and of size 28.9 GiB. Command (m for help): The partition table has been altered. Calling ioctl() to re-read partition table. Re-reading the partition table failed.: Device or resource busy The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8). Error: Partition(s) 1 on /dev/sdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. 1024+0 records in 1024+0 records out 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.197804 s, 5.3 MB/s Error: Partition(s) 1 on /dev/sdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. mke2fs 1.44.5 (15-Dec-2018) Discarding device blocks: done Creating filesystem with 7580544 4k blocks and 1896832 inodes Filesystem UUID: 8e5fc977-7ac4-4cd0-998b-8a74acaa506e Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000 Allocating group tables: done Writing inode tables: done Writing superblocks and filesystem accounting information: done Done :-) Press Enter to continue, when you have unplugged the target device '/dev/mmcblk0' (and maybe have plugged it back) Error: Partition(s) 1 on /dev/sdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. NAME MODEL FSTYPE LABEL MOUNTPOINT SIZE NAME mmcblk0 iso9660 d-live 10.0.0 st amd64 29.7G mmcblk0 ├─mmcblk0p1 iso9660 d-live 10.0.0 st amd64 825M ├─mmcblk0p1 ├─mmcblk0p2 vfat d-live 10.0.0 st amd64 2.9M ├─mmcblk0p2 └─mmcblk0p3 ext2 persistence 28.9G └─mmcblk0p3 user@debian:~$