jcnelson / vdev

A device-file manager for *nix
GNU General Public License v3.0
101 stars 13 forks source link

dd'ing raspberrypi image to sdcard #98

Open suedi opened 8 years ago

suedi commented 8 years ago

I put a new empty sd card in my comp's reader.

vdev found it and it showed up in spacefm automatically.

I did dd bs=4M if=devuan_jessie_1.0.0-beta_armhf_raspi2.img of=/dev/sde to sd card then it seems vdev did not pick up the change in partition structure of sde

Spacefm still showed only one vfat partition that I could mount but no data there and no obvious errors either?

I did the boring test of dd'ing an image back from sdcard to hdd, trunctate it and diff'ed it with the original image

dd bs=4M if=/dev/sde of=from-sd-card.img
truncate --reference devuan_jessie_1.0.0-beta_armhf_raspi2.img from-sd-card.img
diff -s from-sd-card.img devuan_jessie_1.0.0-beta_armhf_raspi2.img

They came out equal.

At this stage I just rebooted.

Now vdev seems to pick up the new structure and I get

sde1 type vfat 61M
sde2 type ext4 1G

Something goes wrong here. Not sure if it is vdev core or the vdev-udev-compat notifying of spacefm that falters.

definitely a bug here though

Hope you are fine Jude