News:

Wieners, Brats, Franks, we've got 'em all.

Main Menu

Mounting a full hard drive image?

Started by MyndFyre, September 19, 2005, 11:07:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MyndFyre

Hey --

I need to mount a full hard drive image as if it's an actual hard drive.  Is this possible?

Essentially I direct copied a full hard drive (such as /dev/hda) and want to mount its main /dev/hda1 partition, which is NTFS.

Is it possible?
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

Joe

hm..

get root

cd /
mkdir hd
mount /dev/hda1 /hd
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


iago

Quote from: MyndFyrex86] link=topic=2969.msg28482#msg28482 date=1127185637]
Hey --

I need to mount a full hard drive image as if it's an actual hard drive.  Is this possible?

Essentially I direct copied a full hard drive (such as /dev/hda) and want to mount its main /dev/hda1 partition, which is NTFS.

Is it possible?

I don't quite understand you.  If you want to mount /dev/hda1, then what Joe said.

If you have a "dd" (.iso) image, you can mount it like this:
iago@Slayer:~$ sudo mount -o loop /mnt/vmware/iso/BroodWar.iso  /mnt/tmp
iago@Slayer:~$ ls /mnt/tmp
autorun.inf*  bw.ico*  install.exe*  isp/  setup.exe*  smackw32.dll*  support/

If it's ntfs, you might have to specify "-t ntfs" to the mount command.  I don't have an iso of a NTFS drive, so I'm not sure if that works, but I don't see why not. 

MyndFyre

I didn't dd /dev/hda1, I dd'd /dev/hda.  I know how to mount /dev/hda1 or individual partitions.  But I copied the entire thing, partition table included.

So, if I did something like:

mkdir /tmp/hd
mount notebook-backup.img /tmp/hd

would it spawn:

/tmp/hd/hda1 (ntfs)
/tmp/hd/hda2 (ext3)
/tmp/hd/hda3 (swap)
/tmp/hd/hda5 (ntfs)
/tmp/hd/hda6 (ntfs)
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

Newby

- Newby
http://www.x86labs.org

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote from: Rule on June 30, 2008, 01:13:20 PM
Quote from: CrAz3D on June 30, 2008, 10:38:22 AM
I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

iago

Quote from: MyndFyrex86] link=topic=2969.msg28525#msg28525 date=1127195753]
I didn't dd /dev/hda1, I dd'd /dev/hda.  I know how to mount /dev/hda1 or individual partitions.  But I copied the entire thing, partition table included.

So, if I did something like:

mkdir /tmp/hd
mount notebook-backup.img /tmp/hd

would it spawn:

/tmp/hd/hda1 (ntfs)
/tmp/hd/hda2 (ext3)
/tmp/hd/hda3 (swap)
/tmp/hd/hda5 (ntfs)
/tmp/hd/hda6 (ntfs)

I don't know, but I kinda doubt it. 

I have no clue how to do that.  But there's likely a way.  www.linuxquestions.org might be a good place to ask this one.