data restoration from an iso
A power surge took out my MB, CPU and hard disk.
I've managed to get my dual boot (suse 10.2/winXp) up and running but
now need to know how to get some of my data back.
I made an iso of /etc and /home prior to the accident.
I have no experience recovering data from an iso and would appreciate
some explicit advice here. I don't think that I want to restore the
/etc because certain things are different on the computer rebuild
(different HD's and partitions etc.) but I would like to restore my
personal data from /home.
How do I go about that?
As usual, any help is much appreciated.
No worries... if the ISO is burned to a CD, mount the CD and copy the files over. If it is a file, you may mount the ISO-file via the loopback interface or burn it to a CD and reread the first sentence.
mount -t iso9660 /path/to/file.iso /mnt/iso -o lo
(or something like that... man mount for details)
Remember to create your new user account as the old owner (user id and group id).....
This is my 3rd time wrestling with the same issue. I'm sure my brain is adled! But this time I'm entering the solution in a notebook, when I get it.
The iso of my data was created by mkisofs and has not been burned.
But, I can't even get to solving that problem because I can't find my cd/dvd device in "My Computer" nor is it in my fstab (that I can see).
Remembering that I had done it before I tried:
mount -t iso9660/dev/dvd/media/dvd
That didn't seem to work, so I looked in a DMA table and found that my device was referred to as /dev/hdc (type cdrom; name ide 16x)
So, then tried mount -t iso9660/dev/hdc/media/dvd
This is my fstab file...do I need to edit this?
/dev/hdb7 / ext3 acl,user_xattr 1 1
/dev/hdb7 /home ext3 acl,user_xattr 1 2
/dev/hdb1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb5 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
mount -t iso9660 /dev/hdc /media/dvd
Of course, the media in the drive must have an iso fs on it. If it is blank, it won't work.
Interestingly, my combo drive has device: /dev/scd0
You fstab is missing a line for the optical drive all right.
What happens when you insert blank media?
When I enter a blank dvd I get a kde daemon asking me what I want to do with the new medium that was detected. If I choose create new data cd, a burner appears.
As Root, I entered
linux-lqc2:/home/mathay # mount -t iso9660 /dev/hdc /media/dvd
mount: No medium found
When I slipped in the iso disk, the sensor light showed activity but nothing more.
By entering the same command: mount -t iso9660 /dev/hdc /media/dvd, also nothing. But I can't eject the disk unless I umount.
Does it make any sense to try the command mount /path/to/file.iso /mnt/iso -o loop ?
Would an entry into the fstab help? Where would I find the proper syntax?
These results suggest that the disk is automatically mounted.
... this will tell you possible places that fedora mounted it. Probably called cdrom0 or dvdrom0 or similar.
... should show you the files.
(ls -l /dev/hdc ... also dmesg | grep DVD)
Then copy the following line to the end of your fstab
/dev/hdc /media/dvd utf,iso9660 defaults 0 0
... though I suspect there is an mtab rule for is.
|All times are GMT -5. The time now is 09:10 AM.|