Article
By Dan Wang
ENVIRONMENT: Compaq EN
OpenSuSE 10.3
PXE ZENworks preboot HP3 (have not tested with HP6 or later)
ZENworks 7.0.2
Editor's Note: This is a specialist usage, using ZENworks imaging for openSUSE (which we don't support), but this looks like a nice idea.
PROBLEM: OpenSuSE 10.2/10.3 grub hang restoring ZENworks image.
On our old Compaq EN machines, when we finish restoring the image on another machine that is the same machine model and same hard drive size (or even onto the same machine), it will boot to a hanging GRUB _ prompt and boot no further.
SOLUTION: We use a menu system with our PXE ZENworks imaging, so we've added the following commands to our menu to overcome this issue.
/bin/img restorep $PROXYADDR //$PROXYADDR/ZENworks/image.zmg cd / mount /dev/hda2 /mnt/harddisk mount --bind /dev /mnt/harddisk/dev mount --bind /proc /mnt/harddisk/proc chroot /mnt/harddisk grub-install /dev/hda --recheck reboot -f ;;
In summary, the script puts down the OpenSuSE image, then it mounts the newly imaged hard drive. Then it mounts the /dev and /proc directories from the ZENworks preboot into the newly imaged directory structure and then chroots into it. This allows you to use the newly imaged OS without having to boot into it (good thing since it wouldn't boot).
This method then allows you re-run the grub-install utility that comes with the image to fix the hanging issue on itself.
If you have any questions you may contact Dan at wangd@verona.k12.wi.us
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 4088 reads


0