Greetings, @thewoose.thewoose said:I am trying to clone two USB drives with dd. Using this command:
Code:dd if=/dev/da0 of=/dev/da1
I get the error "/dev/da1 invalid argument"
Trying to use if=/dev/zero gives the same error.
Thanks,
thewoose
ls /dev | grep da
? gpart list da0
, will tell you what is seen on either da0, or when run against da1, will also possibly provide some clues. But possibly the easiest, would be the output from ls /dev | grep da
. As you will see what FreeBSD sees on those USB disks (SSD's), as da0s1, da0s1a, etc.I don't think that really matters, you can write to the device at any time. You may need to force the system to re-read the partition table when it's done though. But dd(1) shouldn't complain. One thing I can think of is that /dev/da1 doesn't exist. Maybe it has a different name?Chris_H said:I'm guessing there are already partitions/slices,... on (at least) one of the SSd's.
Right you are. I hadn't it through, far enough, before replying.SirDice said:I don't think that really matters, you can write to the device at any time. You may need to force the system to re-read the partition table when it's done though. But dd(1) shouldn't complain. One thing I can think of is that /dev/da1 doesn't exist. Maybe it has a different name?Chris_H said:I'm guessing there are already partitions/slices,... on (at least) one of the SSd's.
ls /dev/ | grep da
ls /dev | grep da
ada0
da0
da0p1
da0p2
da0p3
da1
da1p1
da1p2
da1p3
dd if=/dev/da0 of=/dev/da1 bs=128k