LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   data restoration from an iso (http://www.linuxquestions.org/questions/linux-newbie-8/data-restoration-from-an-iso-566269/)

drmjh 07-03-2007 06:41 AM

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.
Matthew

Simon Bridge 07-03-2007 06:47 AM

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)

b0uncer 07-03-2007 06:51 AM

Actually it's
Code:

mount /path/to/file.iso /mnt/iso -o loop
You can specify the filesystem if you like, but it's usually not needed as the default is "auto" which should detect it anyway.

fayez 07-03-2007 07:10 AM

Hi,

Remember to create your new user account as the old owner (user id and group id).....

drmjh 07-04-2007 08:15 AM

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:
mkdir /media/dvd
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
No joy.
***********************
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
*********************************
Matthew

Simon Bridge 07-04-2007 09:21 AM

Quote:

mount -t iso9660/dev/hdc/media/dvd
... needs spaces

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?

drmjh 07-04-2007 10:48 AM

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
mathay@linux-lqc2:~> su
Password:
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?
Matthew

Simon Bridge 07-05-2007 12:21 AM

Quote:

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
mathay@linux-lqc2:~> su
Password:
linux-lqc2:/home/mathay # mount -t iso9660 /dev/hdc /media/dvd
mount: No medium found
For a blank DVD, this is expected.
Quote:

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.
... so you have the iso burned to a disk?
These results suggest that the disk is automatically mounted.

ls /media
... this will tell you possible places that fedora mounted it. Probably called cdrom0 or dvdrom0 or similar.

ls /media/cdrom0
... should show you the files.

Quote:

Does it make any sense to try the command mount /path/to/file.iso /mnt/iso -o loop ?
That is for an iso that currently resides in your hard drive. If it has been burned to media, there is no point.
Quote:

Would an entry into the fstab help?
It would appear to be going well without it... however, I don't see how it would hurt.
Quote:

Where would I find the proper syntax?
Verify that the drive really is /dev/hdc

(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 04:40 PM.