Restoring Data from a DD image

Joe S js.lists at gmail.com
Thu Oct 6 12:49:41 PDT 2005


Joe S wrote:
> Bill Schmitt (SW) wrote:
> 
>> I've just replaced a hard disk that was dying fast. I've done a full 
>> installation of 4.9 (later releases won't install, which I've 
>> submitted a problem report on already). The old disk is connected but 
>> not mounted. Searching around, I found some suggestions to try to read 
>> the old disk to restore what I can and I used dd to copy what could be 
>> found (dd -if=/dev/ad0s1e of=/usr/olddsk/oldimag.dmg 
>> conv=noerror,sync) and it seems to have copied the file. Now, I'm a 
>> little stuck. Can someone help me understand how do I mount that image 
>> somewhere to browse it and copy what I can from it? If I'm not going 
>> about this the right way, I'd appreciate other suggestions
>>
>>
>> _______________________________________________
>> freebsd-questions at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to 
>> "freebsd-questions-unsubscribe at freebsd.org"
>>
> 
> man vnconfig
> man mount
> 
> This may work:
> 
> # vnconfig /dev/vn0 /usr/olddsk/oldimag.dmg
> # mount /dev/vn0 /some_mount_point_on_your_system
> 
> 
You may need to use /dev/vn0c instead of /dev/vn0 in both commands.
See the handbook for more info:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-virtual.html

Note: vnconfig is for 4.x, while mdconfig is for 5.x

-joe


More information about the freebsd-questions mailing list