I am able to boot from several OS's using Grub and able to run CloneZilla successfully from the Grub menu that is installed on the harddrive. But what I'm trying to do is automate a cloning procedure through GRUB by adding extra parameters to the kernel script. I want the user to select "XP image to Partition" in a GRUB menu, and CloneZilla will automate the procedure by just selecting that.
title Xp32 image to Partition
root (hd0,2)
kernel /live-hd/vmlinux1 boot=live union=aufs live-media-path=/live-hd vga=791 toram bootfrom=/dev/hda ip=frommedia ocs_live_run="ocs-live-general" ocs_live_extra_param="-g auto -el auto -c -j3 -k -p reboot -p reboot restoreparts 2009-03-02-19-XPimg sda2" ocs_live_keymap="NONE" ocs_live_batch"yes" ocs_lang="en_US.UTF-8"
initrd /live-hd/initrd1.img
boot
What happens here when this is ran you can see the kernel being built, but what i run into is that the drives are not scanned and the proper one is not mounted and i end with the options to reboot, start over, shutdown. I basically want is the XP image on sda5 restored back to sda2 automated. Very similar to how you would edit your linuxsys.cfg file if you do this from a USB stick.
I hope you see what I'm trying to do and I know it can be done its just what am i missing here? Why doesn't it scan the drives? your parameters should daisy chain right into the kernel script right for a full automation?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Troy,
Which version of Clonezilla live are you using ? Is your hardware is somewhat new so that the kernel does not detect your hard drive ?
Maybe you can give experimental Clonezilla live a try ? It comes with newer kernel so maybe it improves.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am able to boot from several OS's using Grub and able to run CloneZilla successfully from the Grub menu that is installed on the harddrive. But what I'm trying to do is automate a cloning procedure through GRUB by adding extra parameters to the kernel script. I want the user to select "XP image to Partition" in a GRUB menu, and CloneZilla will automate the procedure by just selecting that.
I have 4 partitions "sda1,sda2,sd3,sda5".
sda1 = Ubuntu, sda2 = WinXP, sda3 = CloneZilla, sda5 = Logical drive with Images
GRUB meun.lst
title Xp32 image to Partition
root (hd0,2)
kernel /live-hd/vmlinux1 boot=live union=aufs live-media-path=/live-hd vga=791 toram bootfrom=/dev/hda ip=frommedia ocs_live_run="ocs-live-general" ocs_live_extra_param="-g auto -el auto -c -j3 -k -p reboot -p reboot restoreparts 2009-03-02-19-XPimg sda2" ocs_live_keymap="NONE" ocs_live_batch"yes" ocs_lang="en_US.UTF-8"
initrd /live-hd/initrd1.img
boot
What happens here when this is ran you can see the kernel being built, but what i run into is that the drives are not scanned and the proper one is not mounted and i end with the options to reboot, start over, shutdown. I basically want is the XP image on sda5 restored back to sda2 automated. Very similar to how you would edit your linuxsys.cfg file if you do this from a USB stick.
I hope you see what I'm trying to do and I know it can be done its just what am i missing here? Why doesn't it scan the drives? your parameters should daisy chain right into the kernel script right for a full automation?
Not sure it's a typo when you posted or it's the problem:
kernel /live-hd/vmlinux1 ...
The origianl one should be like this:
kernel /live-hd/vmlinuz1 ...
It's vmlinuz1, not vmlinux1.
Its a typo.. I do have it in my script as
/live-hd/vmlinuz1 not vmlinux1..
Troy,
Which version of Clonezilla live are you using ? Is your hardware is somewhat new so that the kernel does not detect your hard drive ?
Maybe you can give experimental Clonezilla live a try ? It comes with newer kernel so maybe it improves.
Steven.
If you're trying to run CZ by passing commands from GRUB make sure other process isn't starting up when Live boots up and conflict with it.