LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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.

Notices



Reply
 
Search this Thread
Old 12-27-2004, 04:43 PM   #1
yjiang
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
data recovery


Hi,
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.
yong
 
Old 12-27-2004, 07:28 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,590

Rep: Reputation: 188Reputation: 188
" any ideas ?"

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.

-------------------------
Steve Stites
 
Old 12-27-2004, 07:33 PM   #3
yjiang
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
any suggestion to restore it ?

you are right, however i already did it, and i need a workaround to recover the data.
 
Old 12-28-2004, 05:23 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
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.
 
Old 12-28-2004, 06:19 PM   #5
yjiang
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
yes, I can mount

Yes, I can mount the image, however, i missed most data in the mounted image, does that mean i lost them forever ?
thank you anyway.
 
Old 12-30-2004, 04:51 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
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?
 
Old 12-30-2004, 06:37 PM   #7
yjiang
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
image data

well, when i mount the image, some of the directory can be accessed, some of them can not ( i got input/output error).
i suspect that the image is not intact, is that right ?
 
Old 12-30-2004, 08:58 PM   #8
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,590

Rep: Reputation: 188Reputation: 188
"well, when i mount the image, some of the directory can be accessed, some of them can not ( i got input/output error).
i suspect that the image is not intact, is that right ?"

Yes, the image is probably not intact. The next thing to do is to use the tar command to back up as much of the image as you can so that you won't lose that data when you try to fix things.

------------------------
Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with data recovery. A.C. Helm Linux - Newbie 2 10-15-2005 11:58 AM
data recovery possible? darkleaf Linux - Software 1 02-05-2005 01:33 PM
Data Recovery plisken General 3 07-04-2004 02:06 PM
data recovery bardinjw General 1 02-12-2004 02:59 AM
data-recovery lobo Linux - General 3 01-24-2002 09:17 AM


All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration