I tried to copy all the files from my USB drive using the "dd" command. Output shows success, equal in and out# of records, and less total GB available on HDD where I saved them to, but files are nowhere to be found. Ubuntu os.
dd if=/dev/sdx bs=16M of=/home/directory/foldername
where sdx
= sdb
= files to copy from USB; of
=destination on hdd. directory
= comp name; I created folder to put image in.
I mounted usb as "read-only".
I found my files, the image. How can I tell if it is corrupt?
dd
command that you used. And/or do you know the names of the files? – ctrl-alt-delor Aug 11 '19 at 15:44of=/dev/sda
(as mentioned in a previous comment), you would overwrite your machine's filesystem with that of the USB drive. Don't do that. It would lead to not being able to boot, and to loss of data. You seem to not know the difference between a device file and a file on a device. – Kusalananda Aug 11 '19 at 16:49