MSFN Forum: [Help] Mount physical disk image as virtual HDD? - MSFN Forum

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

If you have questions about customizing Windows XP that are nLite-specific, please post them in the nLite forum, not here. If you have questions regarding the unattended installation of Windows XP, please post them in the Unattended Windows 2000/XP/2003 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Help] Mount physical disk image as virtual HDD? Need to restore data from bad imaging program! Rate Topic: -----

#1 User is offline   Falcon4 

  • teh Fighting Falcon™
  • Group: Members
  • Posts: 41
  • Joined: 15-May 05

  Posted 08 August 2006 - 03:41 AM

I decided to give Linux another try. 2 days, got sick of it already. XGL was nice but the bugs are just too much. Microsoft has NOTHING on Linux's bugs. Incredible.

Before installing Linux I used UBCD4Win to cd-boot my computer and used DiskTools ImageMaker (an ancient program, it seems) to create an image of my 20gb NTFS Windows drive onto a 40gb NTFS USB drive. It's one whole file and is actually extremely accurate, except the first 32kb, which seem to be corrupted by the ego-boosted program that put some DiskTools info in the header.

So when ImageMaker finally went to restore the drive, I was left with a partition-less disk with junk data. I've tried restoring the first 32kb from a working configuration (started installing Windows, let it partition the drive like I had it, saved those 32kb, restored the drive again, restored the 32kb) and it still didn't work. Let me tell you how pleased I am with this program.

In Linux I was able to mount that image as a logical partition if I skipped the first 32kb. But there is no such thing for Windows, to just "create" a virtual device out of thin air. I've decided I could do the "half installation" then just copy the data back as files from the image (using the CD, of course). But where do I get that software, that makes the virtual drive from an image?

Basically I need something that's like Alcohol or Daemon, except that it makes hard drives, not CD drives.

There should be such a thing... but what's it called? :(


#2 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,578
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 08 August 2006 - 11:06 AM

Of course it exists, it is called VDK:
http://chitchat.at.i...re/vdk.html#top

I wrote a pseudo GUI for it:
http://home.graffiti.net/jaclaz:graffiti.n...ts/VDM/vdm.html

Please note that the tool allows to mount a RAW image too.

If you need (for any reason) to specify a disk geometry, you need to make a .pln file and open it with VDK, not the actual file of the disk image.

Contents of the .pln file (a text file you can make with Notepad):

Quote

DRIVETYPE <ide or scsi>
CYLINDERS <cylinders>
HEADS <heads>
SECTORS <sectors>
ACCESS <your raw image file name in full path> <start> <number of LBA sectors>
example:

Quote

DRIVETYPE ide
CYLINDERS 204
HEADS 16
SECTORS 63
ACCESS "C:\image.dat" 0 205632


If you made multivolume sets, you can use multiple "ACCESS" lines:

Quote

DRIVETYPE ide
CYLINDERS 16254
HEADS 16
SECTORS 63
ACCESS "c:\...\image1.dat" 0 4096008
ACCESS "c:\...\image2.dat" 4096008 8192016


You might want to run testdisk:
http://www.cgsecurit...g/wiki/TestDisk

on a thus mounted partition if you have problem accessing data in the image because of a bad partition table (of course, use a copy of the data).

jaclaz

This post has been edited by jaclaz: 08 August 2006 - 11:09 AM


#3 User is offline   Falcon4 

  • teh Fighting Falcon™
  • Group: Members
  • Posts: 41
  • Joined: 15-May 05

Posted 08 August 2006 - 03:09 PM

Awesome!! I'm gonna try that now, and hope it'll cope with the broken header. Also primarily hoping it'll be able to cope with the fact that I'd be booted from a LiveCD on a read-only file system... which may be a bit of a stretch if it doesn't load the driver from the media. It'll be fun. :P

Thanks!!

ed: I'm booted from a Ubuntu LiveCD right now since only Linux has proper drivers for my WLAN card... stupid Intel can't make drivers for their own crap, what's up with that?

This post has been edited by Falcon4: 08 August 2006 - 03:10 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy