I'm trying to boot from USB disk and automate clonezilla up to the point where you select the image you want to restore.
I can get the USB bootable with the images I want but when I try to add the parameters I would like to include it fails. Unfortunately I cannot get the exact errors as they scroll up the screen. However I'm certain its complainant is about the parameters,
The key should be in the param after "-e".
For the time being, what you want to do is not available, since in the batch mode, ocs-sr will exit if image name and target device are not assigned. Will try to add that in the future.
On the other hand, a workaround for you:
ocs-live-dev -d /dev/sda1 -g en -t -k NONE -e "-x" Image1 Image2
BTW, you can use "shift-pageup" to scroll back the screen.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great! Thanks again. One more question. I know the -e parameter passes the parameters to another program; I guess in this case it's ocs-sr. Is that always the case? Does ocs-live-dev always pass anything after the -e to ocs-sr? What / when are the other programs like ocs=live-restore used?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Basically the answer is yes. Even if it's /opt/drbl/sbin/ocs-live-restore, it will pass the parameters to ocs-sr.
It's ocs-sr that does the real job about saving/restoring.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ha, sure. You can just use "ocs-live-dev -d /dev/sda1 -g en -t -k NONE Image1 Image2".
-g and -t are used for the clonezilla live environment (language and keymap). It's not for ocs-sr.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to boot from USB disk and automate clonezilla up to the point where you select the image you want to restore.
I can get the USB bootable with the images I want but when I try to add the parameters I would like to include it fails. Unfortunately I cannot get the exact errors as they scroll up the screen. However I'm certain its complainant is about the parameters,
This is what I am using to build the USB disk:
ocs-live-dev -d /dev/sda1 -g en -t -k NONE -e "-b -c restoredisk" Image1 Image2
What I hope to do is boot clonzilla and minimize user interaction until they have to select the image to restore. Looks like it should be possible.
FYI: I'm using the DRBL / Clonzilla server to build my USB disk.
Thanks!
The key should be in the param after "-e".
For the time being, what you want to do is not available, since in the batch mode, ocs-sr will exit if image name and target device are not assigned. Will try to add that in the future.
On the other hand, a workaround for you:
ocs-live-dev -d /dev/sda1 -g en -t -k NONE -e "-x" Image1 Image2
BTW, you can use "shift-pageup" to scroll back the screen.
Steven,
Thanks for your quick reply! I'll give it a try. What does the -X do in this instance?
Also Thanks for sharing this great software!
"-x" is one of the parameters of ocs-sr. It's interactive mode for ocs-sr.
For more info, please check
/opt/drbl/sbin/ocs-sr --help
Great! Thanks again. One more question. I know the -e parameter passes the parameters to another program; I guess in this case it's ocs-sr. Is that always the case? Does ocs-live-dev always pass anything after the -e to ocs-sr? What / when are the other programs like ocs=live-restore used?
Basically the answer is yes. Even if it's /opt/drbl/sbin/ocs-live-restore, it will pass the parameters to ocs-sr.
It's ocs-sr that does the real job about saving/restoring.
I thought of another question I had:
Why if I leave out the -e, does it also not work. Seems to me this should also work:
ocs-live-dev -d /dev/sda1 -g en -t -k NONE Image1 Image2
If I leave out all switches it works like this, it works..
ocs-live-dev -d /dev/sda1 Image1 Image2
Are the first switches, before the -e being passed to ocs-live-dev?
Ha, sure. You can just use "ocs-live-dev -d /dev/sda1 -g en -t -k NONE Image1 Image2".
-g and -t are used for the clonezilla live environment (language and keymap). It's not for ocs-sr.