Is it possible to use Clonezilla Live in concert with an SSH Server to boot a PC from say USB stick and then to pull the image file across a network from an SSH server? I have played with Clonezilla live, and I have seen the SSH server option. Is there a way to automate this connectivity? If so, how? Is there a walkthough that I am missing?
Thanks,
Traxxus
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have read that, but what was not clear is what I need to do to make clonezilla goto an SSH server and grab the image, vs carrying it around on the USB stick or CD/DVD.
Is there anywhere that this question is answered?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
/opt/drbl/samples/custom-ocs-1 is a similar example, the only difference is it's for samba server, not ssh server. It will be very easy for you to modify that and make your own customized clonezilla live.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you again Steven, you have been extremely helpful and I really appreciate that.
So I took a disk image of a laptop and placed it under /home/partimag/ on my SSH server. I also modified the custom-ocs-l script to use SSH instead of Samba.
Everything works brilliantly.
I want to polish this a bit more before I bring it to my boss as a solution. What can I do to automate when it asked me for the IP address of the SSH server, the path for the image, and the password when connecting the SSHFS? What script would that be that I would need to modify. When I read the advanced scripting area, I'm rather lost on being able to script this.
Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am wondering if I can steal some more of your wisdom. I unsquashed the filesystem.squashfs file and then modified the prep-ocsroot file to custom script the SSH server login ( accept for entering the password.)
I then successfully made a new filesystem.squashfs and copied it onto the USB stick, replacing the filesystem squash that was already there. Whenever I tried to reboot with the stick, it was unable to explode the filesystem file. I am not sure why.
Is there a better way to do this? Are there any special flags for making the squash file. Sorry, Im kinda a linux newbie. I have been learning it for the last 6 months and feel as though I have barely scratched the surface. LOL.
Thanks,
Traxxus.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Traxxus.
Actually Clonezilla live is created from Debian live (live-helper), so I am not so sure about the details about mksquashfs when live helper using it. In live helper, I feed mksquash options "-b 65536 -e boot".
How did you run your mksquashfs ? What are the results if you run:
file filesystem.squashfs
Are they the same before and after you create it ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to use Clonezilla Live in concert with an SSH Server to boot a PC from say USB stick and then to pull the image file across a network from an SSH server? I have played with Clonezilla live, and I have seen the SSH server option. Is there a way to automate this connectivity? If so, how? Is there a walkthough that I am missing?
Thanks,
Traxxus
I meant RESTORE from remote image, but the forum will not let me change the title.
You have to write a script to do that.
Please refer to the advanced mode:
http://clonezilla.org/clonezilla-live/#make_custom_clonezilla_live
Steven Thank you,
I have read that, but what was not clear is what I need to do to make clonezilla goto an SSH server and grab the image, vs carrying it around on the USB stick or CD/DVD.
Is there anywhere that this question is answered?
/opt/drbl/samples/custom-ocs-1 is a similar example, the only difference is it's for samba server, not ssh server. It will be very easy for you to modify that and make your own customized clonezilla live.
Steven.
Thank you again Steven, you have been extremely helpful and I really appreciate that.
So I took a disk image of a laptop and placed it under /home/partimag/ on my SSH server. I also modified the custom-ocs-l script to use SSH instead of Samba.
Everything works brilliantly.
I want to polish this a bit more before I bring it to my boss as a solution. What can I do to automate when it asked me for the IP address of the SSH server, the path for the image, and the password when connecting the SSHFS? What script would that be that I would need to modify. When I read the advanced scripting area, I'm rather lost on being able to script this.
Thank you!
Traxxus,
It's /opt/drbl/sbin/prep-ocsroot
Especially the function "do_mount_ssh_server".
Good luck!
Steven.
Steven,
I am wondering if I can steal some more of your wisdom. I unsquashed the filesystem.squashfs file and then modified the prep-ocsroot file to custom script the SSH server login ( accept for entering the password.)
I then successfully made a new filesystem.squashfs and copied it onto the USB stick, replacing the filesystem squash that was already there. Whenever I tried to reboot with the stick, it was unable to explode the filesystem file. I am not sure why.
Is there a better way to do this? Are there any special flags for making the squash file. Sorry, Im kinda a linux newbie. I have been learning it for the last 6 months and feel as though I have barely scratched the surface. LOL.
Thanks,
Traxxus.
Hi Traxxus.
Actually Clonezilla live is created from Debian live (live-helper), so I am not so sure about the details about mksquashfs when live helper using it. In live helper, I feed mksquash options "-b 65536 -e boot".
How did you run your mksquashfs ? What are the results if you run:
file filesystem.squashfs
Are they the same before and after you create it ?