How to Store a ZENworks Image to a Local USB Hard Drive
Novell Cool Solutions: Feature
By Aiden Gillanders
Digg This -
Posted: 21 Feb 2007
I came up with this solution to the age old problem of not having ZENworks Imaging NIC drivers for new PCs and laptops. Instead of trying to compile new NIC drivers in the kernel and adding them to the Boot CD, I thought I'd come up with a more generic solution to image to a USB hardrive and wait for the official release of imaging drivers from Novell. This gives me a workaround which should last and not need constant updating.
I have used open source and Novell ZENworks software to achieve this. Things may be made easier if you use Partition Magic, but since not everybody has access to it, I didn't use this in my solution.
Hope this helps some people get around their imaging woes.
Step 1: Prepare the USB Hard drive for use with ZENworks Imaging
- The first step in this is to create an ext2fs partition on the external hard drive. This is to get over the 2GB file-size limitation Linux has on Fat 32 partitions. To do this I used the GParted utility in the System Rescue CD. An ISO and further instructions for use can be found here.
- Boot to the CD.
- Type startx to bring up the graphical interface.
- Double-click on the highlighted icon on the right side of the screen to open the gparted partitioning tool.
- You should create and format a partition at least as big as the image you want to create. I would suggest a minimum of 30Gb to give you plenty of space, the rest of the disk can be partitioned and formatted as NTFS/Fat32 and used with your Windows PC without affecting the ZENworks images.
Step 2: Mount the USB Hard Drive Within the ZENworks Boot CD environment
- Attach your USB Hard Drive to the PC you want to image.
- Insert ZENworks 7 Boot CD and restart the PC.
- When prompted, select Manual Mode and boot as normal.
- Start Imaging application (img).
- Press F8 to Modify partitions. You will now see a list of devices attached to your PC.
- Find the one that has partition type of "Linux EXT2". Take note of this as this is the device you need to mount.
- Exit Imaging application.
- Now you need to create a mount point for the USB hard drive. Do this by typing:
- To mount the drive type the following command:
mount /dev/sdb1 /mnt/usbhd
(change /dev/sdb1 to the device you noted earlier)
- The drive is now mounted to /mnt/usbhd.
Step 3: Start Imaging to USB Hard Drive
- Type img at bash prompt to load imaging application.
- Select Make Image.
- Select Local as destination.
- Type path as /mnt/usbhd/<filename>.zmg
- Start Image creation.
Step 4: Copy Image from USB Hard Drive (optional)
- Attach the USB Hard Drive to a PC running Windows.
- Install the ext2fsd driver (which can be downloaded from here). This will allow you to access the ext2fs (linux) file system from Windows and copy to another drive.
- Once loaded you can view the ext2fs file system as normal and copy, delete, etc., from Windows Explorer.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com