Timeline for How to use DD to clone a partition off a disk image?
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 19, 2020 at 16:04 | vote | accept | JamesTheAwesomeDude | ||
| Mar 10, 2016 at 11:43 | comment | added | cgogolin |
In principle the command worked for me on a SystemRescueCD system, however, regardless of which loop device I specified it always made the partitions available under the first free loop device, /dev/loop1 in my case The partitions then appeared as /del/loop/1p1, /del/loop/1p2, ...
|
|
| Oct 1, 2014 at 20:10 | comment | added | PythoNic | /dev/loop7p2 ? probably a typo, right? | |
| Apr 22, 2013 at 21:30 | comment | added | JamesTheAwesomeDude | @psusi ...the Linux distro I'm using at the moment has a really lame package manager. so... yeah. | |
| Apr 22, 2013 at 21:30 | comment | added | JamesTheAwesomeDude | @frostschutz That was 12280 bytes from the start of the image file. | |
| Apr 21, 2013 at 2:18 | comment | added | psusi |
kpartx is for LVM. partprobe will also do the job, from the parted package.
|
|
| Apr 20, 2013 at 23:49 | comment | added | frostschutz |
skip depends on bs, so if you used bs=1M (or have an alias that does this), that'd explain why it doesn't work. try with bs=512. Also, why 122880 when fdisk says 131072? Also my losetup is losetup from util-linux 2.22.2. same for partx. kpartx is from multipath-tools (used device mapper).
|
|
| Apr 20, 2013 at 22:49 | comment | added | JamesTheAwesomeDude |
I would just run dd if=2013-02-09-wheezy-raspbian.img of=/dev/sdc skip=122880, but that returns dd: ‘2013-02-09-wheezy-raspbian.img’: cannot skip: Invalid argument.
|
|
| Apr 20, 2013 at 22:45 | comment | added | JamesTheAwesomeDude |
Your losetup command didn't work - it said unrecognized option --find. I removed that, it said it didn't recognize --show. Taking that off caused it to complain about --partscan, at which point I realized that command wasn't going to do anything for me anytime soon. I decided to try the others, but both partx and kpartx return "command not found".
|
|
| Apr 20, 2013 at 22:40 | history | answered | frostschutz | CC BY-SA 3.0 |