On 11/08/14 05:48, Ethan Rosenberg wrote:
Dear List -
I am having trouble w/ dd. I am sure that it is probably a stupid mistake.
Anyway..,.
/dev/sdb [500 G external USB drive] has one partition /dev/sdb1 which is
mounted on /media/lin50
I wish to copy /var/www to the USB drive.
I have tried:
root@meow:/var# dd if=/var/www of=/dev/sdb1/ bs=2048
dd: failed to open ‘/dev/sdb1/’: Is a directory
root@meow:/var# dd if=/var/www of=/dev/sdb/ bs=2048
dd: failed to open ‘/dev/sdb/’: Is a directory
root@meow:/var# dd if=/var/www of=/media/lin50/ bs=2048
dd: failed to open ‘/media/lin50/’: Is a directory
root@meow:/var# dd if=/var/www/ of=/media/lin50/ bs=2048
dd: failed to open ‘/media/lin50/’: Is a directory
dd is the wrong tool for that job.
You need something to copy the contents of the directory, like rsync or
just simply cp
cp -a /var/www/* /media/lin50
--
Dom
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53e859a5.9010...@rpdom.net