Quick File Recovery after Windows Crashes
Novell Cool Solutions: Tip
By James Hammond
Digg This -
Posted: 15 Jun 2006
ENVIRONMENT: Windows OS (others could work as well)
ZENworks 7 and NetWare 6.5
- Desktop Windows OS has crashed.
- Need to get lots of files off the computer and onto the server.
- Have network access but no available USB drive.
- Do have ZENworks for Desktops (have done this with version 7).
- Do have NFS services running on NetWare server (in this scenario the server IP address is 10.1.1.08).
- Make sure ZfD is up and running on server and sufficient hard drive space exists.
- Setup an NFS export - these are from my configuration.
- Add this line to the PATHTAB file (sys:/etc)
- Add this line to the EXPORTS file (sys:/etc)
/images -firstname.lastname@example.org/16 -email@example.com/16
(I am allowing an entire subnet to gain access to this mount - obvious security issue but I am only using it as a temporary location)
- Restart NFS services at the server.
- Call the bash shell at the console and issue df command and verify successful mount.
- XNFS.LOG file (sys:/etc/nfs) will help isolate any configuration or connection errors
- Boot work station utilizing PXE boot service and choose "... maintenance mode".
- At the Linux prompt issue the df command:
should be returned.
- Create two directories. I use /local and /remote.
- If your computer uses an IDE drive your hard disk is probably /dev/hda. If unsure, the ZENworks Imaging Partition tool can be used to discover the current device.
- Mount the two locations:
mount /dev/hda1 /local
mount 10.1.1.108:/images /remote
- The remote mount may take a while and the NFS server must be able to resolve a hostname for the computer. I have a dynamic range of IP addresses I use for transient machines so at this point I look at the XNFS.LOG file (sys:/etc/nfs) to verify the IP address of the workstation and to verify the workstation is actually making the request. I then edit the hosts file on the server to reflect the name of the device.
e.g. 10.1.248.133 temp.lcps.internal temp
- Then issue the second (remote) mount command again.
- Use the df command to verify the mount points.
- Create a directory for your recover:
- If all is well, change to the directory level of the /local mount point from which the file recovery is to take place.
This example is attempting to recover the "Documents and Settings" folder.
cd "/local/Documents and Settings"
The quotes handle the spaces in the folder name.
- Then issue a simple copy command such as
cp -rpf . /remote/recover
- Other tools can be employed if so desired (find, cpio, tar, etc.).
- Since files are copying to a NetWare server, grant access rights to the user, map the recovery location for the user and let the user sort what is needed from what is not.
- Remember to close up your open NFS mount when finished.
Just "rem" the EXPORTS file so everything is there when needed.
If you have any questions you may contact James at firstname.lastname@example.org
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com