LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-11-2004, 04:03 PM   #1
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Rep: Reputation: 15
Anyone know how to mount a hard drive image?


Hi everyone.

No one seemed to be able to help me with getting at my backup hard drive. I did looking around and found the program dd_rescue. I created an image of the hard drive. Now I just need to find out how to mount it. Any help?

Chris DeGroot
 
Old 08-11-2004, 04:11 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
add -o loop option to mount, eg
Code:
mount -t ext2 -o loop /your/image/file /your/mount/point

Last edited by Demonbane; 08-11-2004 at 04:21 PM.
 
Old 08-11-2004, 04:11 PM   #3
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
My guess is that you mount it as a loop device as you would a CD image (iso filesystem) using the -o loop option
 
Old 08-11-2004, 04:14 PM   #4
Charalambos
Member
 
Registered: Aug 2004
Location: Switzerland
Distribution: debian
Posts: 149

Rep: Reputation: 15
Something like this?
mount -o loop -t filesystem imagefilename mountpoint

Filesystem: i don't know what kind of image your tool created.
E.g., for an iso cdrom image this would be "iso9660".

Or you can try automount, perhaps it will figure out by itself.
 
Old 08-11-2004, 04:34 PM   #5
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Original Poster
Rep: Reputation: 15
ok... i tried:

mount -t ext2 -o loop /home/chrisdegroot/backup /backup

It didn't come up with any errors, but there are no files in /backup

Any ideas?
 
Old 08-11-2004, 04:41 PM   #6
redhatman
Member
 
Registered: Feb 2004
Location: Canada
Distribution: FC2
Posts: 63

Original Poster
Rep: Reputation: 15
As a sort of side question... my disk never did crash, so it shouldn't really need disk recovery I would assume. For some reason it now says there is no filesystem. Is it possible to create a filesystem without ruining what is written on the disk? I posted a similar question that no one replied to, but I figured I'd ask again.

Chris
 
  


Reply



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
Make image of hard drive spondootre Linux - General 1 07-19-2005 03:33 PM
hard drive failing, how can I create an image of my drive? oily_rags SUSE / openSUSE 6 07-07-2005 02:19 PM
Hard Drive Image ...H2H pacer Linux - Software 1 12-14-2004 03:23 PM
Image a hard drive burton Linux - Software 2 04-08-2004 11:15 PM
Hard drive image bkmesenbrink Linux - Newbie 7 06-21-2003 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration