Clonezilla Live on PXE Server .fr

In this example, we want to mount the image repository to /home/partimag/ (mounting point for clonezilla). 1. If the image is located in the 2nd partition on first ...
61KB taille 8 téléchargements 214 vues
Preseeding the mounting of image repository     By modifying the boot parameters in /tftpboot/pxelinux.cfg/default, you can preseed most of the options so that Clonezilla live can do the job for you with less interactive steps. In this example, we want to mount the image repository to /home/partimag/ (mounting point for clonezilla). 1. If the image is located in the 2nd partition on first disk (/dev/sda4), under the dir "/Backup", the boot parameters we want to preseed are : ocs_prerun1="mount /dev/sda4 /mnt" ocs_prerun2="mount --bind /mnt/Backup /home/partimag/ //NOTE// Here we have to mount that in 2 steps.                 If the image is on the top dir (/) on /dev/sda4, then the 2nd step (ocs_prerun2) is not required.   2. If the image is located on a network file server, e.g. samba file server, you can make it like : ocs_prerun1="dhclient" ocs_prerun2="sleep 2" ocs_prerun3="mount -t cifs -o user=$ACCOUNT,password=$PASSWD //$SAMBA_SERVER_IP/$PATH_TO_IMAGE /home/partimag" Replace $ACCOUNT, ... , $PATH_TO_IMAGE with appropriate values, like: "mount -t cifs -o user=administrator,password=apple //192.168.1.3/images /home/partimag"   3. For images on a ssh server, you can put ocs_prerun3 as: ocs_prerun3="sshfs $SSH_ACCOUNT@$SSH_SRV:"$SSHFS_DIR" /home/partimag/" Replace $SSH_ACCOUNT, $SSH_SRV, AND $SSHFS_DIR with appropriate values, like: "sshfs [email protected]:/home/chopin /home/partimag".