Imaging with Linux

How do I image with a Linux based solution? Is there one that will image / read windows machines?
LVL 32
Who is Participating?
Basiclly, restoring a single file from a disk image is not reccomended, even ghost explorer has problems with that option, I would reccomend backing up the files with a backup\restore command, or, if you have linux, you can mount a dd based image file using the loop device like this:
mount -o loop,ro -t <FS type> /image.file /mountpoint
and copy the file like you would copy any other file...
BTW, I'd reccomend compressing the image as well.
I gave you an example that mounts the image in read-only mode to avoid damage to your backup.
.jpg, .bmp, .gif, etcetera are format used to save image files. A .jpg image you opened in Windows may be opened in Linux without any trouble using any of the imaging programs linux have.
Dushan De SilvaTechnology ArchitectCommented:
If you want to read files in Windows machines in the network. You can setup samba server on your machine. Or if your machine is a doual boot hard drive with windows, you can use "captian nemo" ( kind of a software.

BR Dushan
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.


What do you mean by "image Windows" ?

1 - If you are speaking about view/edit images like .jpeg, .gif, ..., in Linux, use the GIMP (GNU Image Manipulation Program), can be downloaded from:

2 - If you want to access files from a Windows machine in the some machine, you can mount the partition where it is.

More or less like:

mkdir /hd
mount -t type /dev/hdXY /hd

Where X is the flat that the HD is connected and the Y is the partition number. Examples /dev/hda1, /dev/hda2, /dev/hda3, /dev/hda4, /dev/hdb1, /dev/hdb2, ...

Type you should try fat32, fat and ntfs.

3 - If you want to access a image shared in a Windows machine, use the Samba client package. Like smbclient command.

4 - If you want to "image a Windows/HD" installation, like Symantec Ghost make, use the dd command.

Example, suppose you want to create a image of Windows that is in /dev/hda1 and you want to save this image in your linux in the /root directory with the name of, so you make:

dd if=/dev/hda1 of=/root/

Hope this help,

A good solution would be partimage, or g4u. Both of these pieces of software will let you do what you are asking, and have very good tutorial on their web pages.

g4u - 
partimage -
DrDamnitAuthor Commented:
g4u is pretty close to what I was thinking, but is there a browser for the imagefiles? Suppose I want to extract just one file from the image, can it handle that?
I dont know of many programs that do this, I know ghost explorer does, but this is commercial. I think with g4u that it is possible to mount the image using the lofiadm command. I have posted a link to the man page on this command.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.