Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restore from dd

Status
Not open for further replies.

radamsen

MIS
Jul 24, 2002
1
NO
Hi all,

I have a J40 server running AIX 4.1.5, the system is now being phased out. Backup has been taken, using &quot;dd&quot;, because of raw-devices. My problem now, is that I have to restore files from the /home-directory. Backup of /home has also been done by use of dd. Under /home there are several mountpoints. The backup-command is &quot;dd if=/home of=/dev/rmt0.1 ibs=8192k obs=8192k&quot;. If I try to restore using this command &quot;dd if=/dev/rmt0.1 of=/home ibs=8192k obs=8192k&quot;, I get the error-messge &quot;/home is a directory&quot;. I have restored the data to a UNIX-file without errors. And then I hav used tar to try to locate my data. &quot;dd if=<filename> ibs=8192k obs=16k | tar tvf -&quot;, then I get the message &quot;tar blocksize error (0 =! 21272). I have tried this with &quot;if=/dev/rmt0.1&quot;, and various blocksizes, but I still get the same message.

Does anyone have a good solution to this problem?

tia.
 
Hi Radamsen,
using dd cannot backup filesystems. Your dd wrote to tape
/home as file. You can restore it
$ dd if=/dev/rmt0 of=home_dir bs=8192k
and learn it using command od.
Regards Boris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top