Copy encrypted compact flash issues with dd in ubuntu
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Copy encrypted compact flash issues with dd in ubuntu
Hello, I have a system that uses a compact flash with a windows os and some other files on it, also somewhere is some sort of encrypted licensing information. I have several of these machines and can use the cf from the others just fine in this machine. But when I take one of those cards and try to copy it with dd, somehow the machine can tell the difference. It's nothing illegal, it's just too old to buy the replacement. Someone has told me they copied successfully in linux with the dd command, but mine aren't working. I also can't tell the brand or type of cf since all the labels have been removed. All i know is that it's a 256mb card. So is there any other options besides dd, or is there a deeper level of dd that i can use to copy this info. I'm using something like:
sudo dd if=/dev/sde of=/home/folder/cfcard
then to copy from my hard drive to the blank cf:
sudo dd if=/home/folder/cfcard of=/dev/sde
I'm using a usb cf reader, and when i have my finished cf everything looks good. Even the machine can read it, it just gives me an error that the cf card isn't a licensed or corrupted.
there can be several issues:
the card is too small (so the image cannot be copied onto it)
or you did not umount the card properly after the dd command.
So you need to specify exactly all the steps you made. dd is safe, it makes a perfect copy (byte by byte), that cannot be the problem.
ok so that might be it right there. I didn't know there was an import to unmounting. I just pulled it out when all was done. My steps were 1. Put card from working machine in card reader, open terminal, type df -h to identify cf card. 2. enter dd command mentioned in original post to copy card to hard drive. 3 pull out card and insert blank card which was 1 GB (I don't have any 256MB cards on hand, i'm ordering some) enter dd command in original post to copy to card. Then when it finished, i just pulled it out.
I will mention that even thought it was a 1GB blank card, when I put it in a card reader it shows only 256 MB like the original. Not sure it counts where it matters most, but it looked identical when i was done. Also the card is 256 MB that i'm copying from, but it only uses about 22 MB on the card. Not sure if that's important, i'm just trying to list everything i know so far. How do you properly unmount after dd?
that is umount /dev/sde and you need to wait as long as it returns.
df will not check the card (device), but the filesystem on it. So you can easily have a 256 MB filesystem on a 1 GB card, that looks ok.
ok i'll try that next, it will have to be tomorrow since i'm doing it at work and already off for the day. I was checking the size in the regular ubuntu window, not sure if that makes a difference. Does it need to be a 256MB card though, or will the 1 GB work if I unmount it properly? And, might sound silly, but I need to unmount AFTER the dd right? or is that something that needs to happen before to properly do the dd?
should it be 1. copy to hard drive 2. unmount. 3. insert blank copy to blank. 4. unmount and use?
umount is recommended (only) if you modified the content of that device, but if you are unsure just umount, that is the safe way.
Any size will work if the capacity was enough to hold that data. Just you will not be able to access the remaining part.
ok so in response to an earlier suggestion to unmount the cfcard, it's telling me bash:unmount/dev/sde: No such file or directory. Did I first need to mount it in order to unmount? I just plugged in the card to the card reader and it found it in df -h so i assumed i was good. I'm not very well versed in dd or linux at all so please let me know if i'm doing this wrong. Thanks