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.
- do
sudo losetup /dev/loop0 sdimage.img
sudo gparted /dev/loop0
(install gparted if haven't already)- edit last partition smaller.
Comments
Post a Comment