the card reader on my laptop doesn't want to work. can I use dd (or some other tool) to write an image to a networked disk.
I am trying to replace one raspberry pi distro with another. The SD card has 6gb free and uses only 2gb.
from the SD card
$ sudo parted -l
Model: SD SU08G (sd/mmc)
Disk /dev/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 95.4MB 94.4MB primary fat16 lba
2 95.4MB 1878MB 1783MB extended
5 96.5MB 1878MB 1782MB logical ext4
3 1878MB 7948MB 6070MB primary ext4
And Please, before you criticize why I want to do this, answer the question... then tell me how stupid I am.
dd
to overwrite a mounted filesystem is a recipe for disaster. The easiest way to do what you want to do is if you have a free partition on the raspberry pi which is large enough to hold the image. You candd
to that partition and set up to boot from there. If not, what you are asking is still possible, just a lot more complex than a simpledd
over the network. – Graeme Mar 28 '14 at 17:01scp
, it will be faster to do thedd
over the network as per frostschutz's answer. Please post the output ofparted -l
on the raspberry pi and I will answer with the steps you need to take. Also it would be good if you can update the question as per your above comments so that if anyone else is trying to do same thing, they are more likely to find this question. – Graeme Mar 28 '14 at 17:30