Hi Richard,

Thought that this may be useful for people using G4U and have a need to
access files from a ghost image without having to restore the entire image to a disk.

It is recommend that you have a recent Linux distro I used the latest Ubuntu as this has the latest fdisk and GNU file tools that support large files. Knoppix or
other new distros should work just as well.

Mount the file share where you have stored your images.
I used NFS as SMB seems to have a max file-size limit of 2Gb on file- share I was
using.

# mount -t nfs 192.168.51.13 /mnt/nfs

Uncompress the image but as a sparse file i.e. don't create the empty space on the file-share server.

# gunzip -dc test_t43p.gz | cp --sparse=always /dev/stdin test_t43_outo

Next you need to find the partition offset's that are inside your image as you cannot mount the image file directly as the first blocks contain the boot records and
other data.

# fdisk -l -u -C 592 <image_name>

Disk testo_t43_outo: 0 MB, 0 bytes
240 heads, 63 sectors/track, 592 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot      Start         End      Blocks   Id  System
testo_t43_outo1   *          63   108939599    54469768+   7  HPFS/NTFS

Partition 1 has different physical/logical endings:
    phys=(1023, 239, 63) logical=(7204, 239, 63)
testo_t43_outo2 108939600 117210239 4135320 12 Compaq diagnostics

Partition 2 has different physical/logical beginnings (non-Linux?):
    phys=(1023, 0, 1) logical=(7205, 0, 1)

Partition 2 has different physical/logical endings:
    phys=(1023, 239, 63) logical=(7751, 239, 63)

Multiply the start cylinder by 512 to get the offset in this case 32256

# mount -t ntfs -o loop,offset=32256,ro <image_name> /mnt/loop

Change the filesystem type if the disk is not NTFS i.e. EXT3 for Linux.

[EMAIL PROTECTED]:/nfs/ghost# ls /loop
AUTOEXEC.BAT            DRIVERS       IPC.LOG        RECYCLER
BOOT.INI                drivez.log    LOGFILE.txt    RRUbackups
BOOTLOG.PRV             engine.log    MSDOS.SYS      SUPPORT
BOOTLOG.TXT             hiberfil.sys  MSOCache       SYSLEVEL.IBM
BOOTSECT.DOS I386 NTDETECT.COM System Volume Information
ccrrec.ver              IBMSHARE      ntldr          TCPACHIP.LOG
Config.Msi              IBMTOOLS      pagefile.sys   VALUEADD
CONFIG.SYS              icons         Program Files  WINDOWS
Documents and Settings  IO.SYS        Recycled
[EMAIL PROTECTED]:/nfs/ghost#

You now have access to all the files in the image.


--
Iain Allan

On 16 Feb 2006, at 02:24, Richard Bessey wrote:

1st Off, I love this program.
2nd, I am just about to wipe a server, but I want to insure I can pull the contents of the drive image in case I may need them in the future (I don't plan to, but just in case)

Anyway, I have created an image of the server on one of my FTP servers, I then gunzip'd the file and get the image of the drive (its huge)

Now, I am trying to mout the image on a centos box so if needed, I could pull files off of the image. Right now I am stuck at mounting the image, here is a little bit of what I have tried

# mount -o loop /home/richard/image/r1-ww-db_image /root/temp/
mount: you must specify the filesystem type

Fine, I do:
# file r1-ww-db_image
r1-ww-db_image: x86 boot sector

Cool ... now what do I put for the filesystem type?

What I am imaging is a OpenBSD router we no longer need to use, and we have plans for the hardware. But just in case I need some config file, I want to make sure I can get it before wiping the drives.

Thoughts?

Sorry for the stupid questions, I am a bit of a newby but catching on fast.

--
Regards,
Richard Bessey
Programmer
[EMAIL PROTECTED]
Office: 509-522-0222 Ext 1012
Cell: 509-956-6302



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel? cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
g4u-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/g4u-help



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
g4u-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/g4u-help

Reply via email to