How to Tweak ZENworks Imaging with hdparm
Novell Cool Solutions: Trench
By Raffael Trotta
|
Digg This -
Slashdot This
Posted: 16 Jul 2003 |
You might be having a problem adding the "hdparm -d1 -w1 /dev/hda" to the linux.2 from ZfD 4.0. It's only possible to add it to the "settings.txt" -- which only works with ZEN Imaging CDs or Diskettes, but not with the PXE one.
Here's a solution.
- Get a Linux Box. If you haven't got one, get Knoppix from www.knoppix.org, this Linux is bootable from CD without changing a Bit on your Windows-Machine. Also, make sure you have the linux.2 file from SYS:TFTP on a CD-ROM for example.
- Start the Linux and copy the "linux.2" from SYS:TFTP to the Linux Box ("/tmp" Directory for example): cp /cdrom/linux.2 /tmp/linux.2
- Rename it to "initrd.gz"...command: mv /tmp/linux.2 /tmp/initrd.gz
- Unzip it: gunzip /tmp/initrd.gz
- Create a Mount Point...for example: mkdir /tmp/linux
- Mount the initrd into the Mount-Point: mount -o loop /tmp/initrd /tmp/linux
- Edit the /bin/hdparm.s : vi /tmp/linux/bin/hdparm.s
- Add the switches "-d1 -w1" to the appropriate line in the script.
- Save the changes in the script with wq! if you're using vi
- Unmount the linux: umount /tmp/linux
- Pack and Compress it again: gzip -v9c /tmp/initrd > /tmp/linux.2
- Copy the new linux.2 to your SYS:TFTP Directory and test it!
If you have any questions you may contact Raffael at raffael.trotta@lwb.ch
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

