Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I tried to back up my home directory to a new SATA HD using dd command:
dd if=/dev/hda2 of=/mnt/aSATAdrive/home_back
the image size is roughly the same as my home partition. however, when i tried to restore the image file by dd if=/mnt/aSTAdrive/home_back of=/dev/sda5
if worked. when I browsed the files, for most files i got a error: input/output error.
any ideas ?
thank you in advance.
When you use dd to copy data to a hard drive which has a different geometry than the original you often end up with problems. I recommend that you forget dd and use the tar command to backup and restore your home directory.
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
You should be able to mount the image. Try
mount -t ext2/ext3/reiserfs /mnt/aSATAdrive/home_back /mnt/somewhere -o loop
Choose the right partition type and fill directories. You'd also need to be root to do this.
If you have created the full image, the data should be accessible. If it's not it means something got wrong. What do you mean by 'i missed most data in the mounted image'? There are no such files or there are files by empty etc?