LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-03-2007, 06:41 AM   #1
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu 12.04LTS
Posts: 258

Rep: Reputation: 31
Smile 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
 
Old 07-03-2007, 06:47 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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)
 
Old 07-03-2007, 06:51 AM   #3
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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.
 
Old 07-03-2007, 07:10 AM   #4
fayez
Member
 
Registered: Aug 2004
Location: Amman
Distribution: Red Hat
Posts: 50

Rep: Reputation: 15
Hi,

Remember to create your new user account as the old owner (user id and group id).....
 
Old 07-04-2007, 08:15 AM   #5
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu 12.04LTS
Posts: 258

Original Poster
Rep: Reputation: 31
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
 
Old 07-04-2007, 09:21 AM   #6
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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?
 
Old 07-04-2007, 10:48 AM   #7
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu 12.04LTS
Posts: 258

Original Poster
Rep: Reputation: 31
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
 
Old 07-05-2007, 12:21 AM   #8
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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.

Last edited by Simon Bridge; 07-05-2007 at 12:30 AM.
 
  


Reply

Tags
data, from, iso, mount, restore


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing data or files into .iso!! justsimran Linux - Networking 4 03-07-2007 12:38 PM
Need help making a data DVD ISO OccamsRzr Linux - Newbie 3 02-01-2007 02:25 PM
Helix Data Forensics/System Repair iso AwesomeMachine Linux - Software 2 09-21-2005 05:53 PM
data restoration cyberia_2ooo Linux - General 2 09-24-2004 01:00 PM
Burning Data and Iso Cds on Fedora wasabi Fedora 6 06-13-2004 02:58 AM


All times are GMT -5. The time now is 11:37 PM.

Main Menu
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