So I've found this command:
dd if=/dev/sdx of=/directory/for/image bs=1M
But that gives me this error:
dd: failed to open ‘directory/for/image’: Is a directory
So I found that the directory has to be unmounted. Trying the same command, but changing the directory to my /home/user
directory got the same error. Well, lucky for me, the original location is an extra partition I use for independent storage between my OSes, so I unmounted it and tried again. This time I got this error:
dd: failed to open ‘/directory/for/image’: No such file or directory
So that doesn't work either. But it doesn't make sense that it has to be unmounted because the majority of people don't have another partition for storage. I found another post that said you have to be operating from the directory where the .img file is, but I'm trying to read the whole card and write an image of it, so there isn't an image file yet. So I tried one more time, executing the command from within the directory I am writing to and got the same error as I got first:
dd: failed to open ‘/directory/for/image’: Is a directory
So what the heck is going on and how in the world do you use the dd
tool?
Ubuntu 15.04
Thanks!