Cloning 16Gb USB Lubuntu drive to 16Gb Micro SD card - "no space left on device" - Ask Ubuntu


i trying clone persistent lubuntu 16.10 installation on 16gb sandisk usb memory stick sandisk 16gb micro sd card. did this:

dd if=/dev/sdb of=sdimage.img bs=4m dd if=sdimage.img of=/dev/sdc bs=4m 

where /dev/sdb usb memory stick , /dev/sdc target micro sd card. after several hours job ended with:

dd: error writing /dev/sdc: no space left on device 3799+0 records in 3798+0 records out 15931539456 bytes (16gb, 15 gib) copied, 10604 s, 1.5 mb/s 

so seems real capacity of micro sd card smaller of usb memory stick same nominal capacity. can recommend way of cloning o/s usb stick sd card work "smaller" sd card?

the best way use gparted shrink partitions on sdimage.img file.

  1. do sudo losetup /dev/loop0 sdimage.img
  2. sudo gparted /dev/loop0 (install gparted if haven't already)
  3. edit last partition smaller.

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User