I have a windows network share
I can get to it from the linux ubuntu side of things
connects at smb://192.168.1.130/Images
I just dont understand how I make it show up when I try to pxe boot and use drbl
there dont seem to be any great examples showing what to do other than if you use a usb key and go step by step in the menus (the smb share does work if I do it from a USB key)
we need this to be network boot, use smb share drive for the /home/partimag/ directory
I'm honestly lost as to how to make it see this in the clonezilla environment that pulls down to the local pc to be imaged
I use drblpush -i to set up everything
Full DRBL Mode and Full Clonezilla Mode (should I be using clonezilla live mode instead?
when it asks about a directory to use for images, am I supposed to tell it to use /home/partimag/ ?
or do I somehow tell it to use the smb share folder?
do I need to mount/bind it to another directory first?
in the pxelinux.cfg/default file, I've tried adding...
ocs_preload="sudo mount -t cifs //192.168.1.130/Images/ /tmp/cifs -o user=Windows User Name Here,password=mypassword"
I've tried it using the ocs_repository="smb://Windows User Name Here:mypassword@192.168.1.130/Images/"
I cant tell if its mounted or not on the computer I am trying to image via PXE
every time it just tells me no disk image is found in /home/partimag
Heres a menu entry in the default file curently
please help me add what I need to make this work with an smb drive for my clonezilla images
label Choose an image
MENU DEFAULT
MENU LABEL All Images
kernel vmlinuz-pxe
append initrd=initrd-pxe.img devfs=nomount drblthincli=off selinux=0 quiet text 1 edd=on ocs_opt="-l en_US.UTF-8 -g auto -e1 auto -batch -e2 -u -r -k1 --clone-hidden-data -p reboot -scr restoredisk ask_user ask_user"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have figured out how to get clonezilla live via pxe to boot and load my smb share as home/partimag
where I am stuck now, is getting it to auto load settings like it did previously
I dont know what to do to get it to skip the screen choosing Beginner/Expert
and then I cant get it to automate the savedisk / restoredisk options
If I make the OCS Live run include "-em or -um expert", or if I add "restoredisk ask_user ask_user"... it gives me errors when trying to load
previously doing that would boot me straight into the directory with my images so I can select which one, and then it would allow me to choose a hard drive...(beneficial when pushing a an image made for one machine to a different version)
so steve....
in this example
ocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -j2 -k -p true restoreparts ask_user sda1"
the ocs live run allows the end user to pick a partition, with a forced placement of sda1
I want to force the entire Image(we'll call it Universal01" with a selectable placement (may be sda1 on some machines, may be nvme01n on other machines, etc
if I put restoredisk Universal01 ask_user
the booting terminal shows me an error...tells me my ocs string is incorrect
is there any way to force a specific image, but let the end user choose the disk to write to?
Last edit: Scott 2023-09-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
" the booting terminal shows me an error...tells me my ocs string is incorrect" -> Oh?
Could you please take a photo about the error messages on the screen then show us?
BTW, please also attach the PXE config file so that we can test here.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My one thing I am looking for a solution to
is how to get it to recognize the "retoredisk" command without having to name an image or a disk type as it does in regular clonezilla mode
I had to move to clonezilla live mode for the SMB share(or so it seemed from everything I was finding on this forum)
previosuly... as you can see in my origoinal pxelinux default file, I just told it "restoredisk ask_user ask_user"
which booted into the clonezilla menua system, and only showed me teh disk selection screen, and then the where to restore it to screen that typically follows it
now in clonezilla live mode, it gives me an error and halts
or conversely.... how to do the smb share connection for the home/partimag for the full clonezilla mode so I can go back to the other defaulty file and gain back that functionality
this functionality allowed me to be able to push an image for a different model of machine to the current computer because windows 10 plays nice..(levovoi X1 Yoga windows image pushed to a Lenovo E570 as an example)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a windows network share
I can get to it from the linux ubuntu side of things
connects at smb://192.168.1.130/Images
I just dont understand how I make it show up when I try to pxe boot and use drbl
there dont seem to be any great examples showing what to do other than if you use a usb key and go step by step in the menus (the smb share does work if I do it from a USB key)
we need this to be network boot, use smb share drive for the /home/partimag/ directory
I'm honestly lost as to how to make it see this in the clonezilla environment that pulls down to the local pc to be imaged
I use drblpush -i to set up everything
Full DRBL Mode and Full Clonezilla Mode (should I be using clonezilla live mode instead?
when it asks about a directory to use for images, am I supposed to tell it to use /home/partimag/ ?
or do I somehow tell it to use the smb share folder?
do I need to mount/bind it to another directory first?
in the pxelinux.cfg/default file, I've tried adding...
ocs_preload="sudo mount -t cifs //192.168.1.130/Images/ /tmp/cifs -o user=Windows User Name Here,password=mypassword"
I've tried it using the ocs_repository="smb://Windows User Name Here:mypassword@192.168.1.130/Images/"
I cant tell if its mounted or not on the computer I am trying to image via PXE
every time it just tells me no disk image is found in /home/partimag
Heres a menu entry in the default file curently
please help me add what I need to make this work with an smb drive for my clonezilla images
updates:
I have figured out how to get clonezilla live via pxe to boot and load my smb share as home/partimag
where I am stuck now, is getting it to auto load settings like it did previously
I dont know what to do to get it to skip the screen choosing Beginner/Expert
and then I cant get it to automate the savedisk / restoredisk options
If I make the OCS Live run include "-em or -um expert", or if I add "restoredisk ask_user ask_user"... it gives me errors when trying to load
previously doing that would boot me straight into the directory with my images so I can select which one, and then it would allow me to choose a hard drive...(beneficial when pushing a an image made for one machine to a different version)
current menus looks like this
Last edit: Scott 2023-09-16
Since you have use ocs_live_run in your boot parameters, you do not need to assign ocs_live_extra_param.
You can refer to this example:
https://clonezilla.org/fine-print-live-doc.php?path=clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting
Steven
so steve....
in this example
ocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -j2 -k -p true restoreparts ask_user sda1"
the ocs live run allows the end user to pick a partition, with a forced placement of sda1
I want to force the entire Image(we'll call it Universal01" with a selectable placement (may be sda1 on some machines, may be nvme01n on other machines, etc
if I put restoredisk Universal01 ask_user
the booting terminal shows me an error...tells me my ocs string is incorrect
is there any way to force a specific image, but let the end user choose the disk to write to?
Last edit: Scott 2023-09-19
" the booting terminal shows me an error...tells me my ocs string is incorrect" -> Oh?
Could you please take a photo about the error messages on the screen then show us?
BTW, please also attach the PXE config file so that we can test here.
Steven
Info Requested Below...
Here is my /nbi_img/pxelinux.cfg/default file
192.168.1.130 is where the images are located - separate machine, Windows SMB share
192.160.0.252 is my Linux Ubuntu drbl clonezilla server
Last edit: Scott 2023-09-20
"ocs-sr -l en_US.UTF-8 -g auto -e1 auto -batch -e2 -u -r -k1 --clone-hidden-data reboot -scr restoredisk scotts-x1 ask_user" -> Apparently you missed the option "-p" before reboot. I.e., it should be:
ocs-sr -l en_US.UTF-8 -g auto -e1 auto -batch -e2 -u -r -k1 --clone-hidden-data -p reboot -scr restoredisk scotts-x1 ask_user
Steven
My one thing I am looking for a solution to
is how to get it to recognize the "retoredisk" command without having to name an image or a disk type as it does in regular clonezilla mode
I had to move to clonezilla live mode for the SMB share(or so it seemed from everything I was finding on this forum)
previosuly... as you can see in my origoinal pxelinux default file, I just told it "restoredisk ask_user ask_user"
which booted into the clonezilla menua system, and only showed me teh disk selection screen, and then the where to restore it to screen that typically follows it
now in clonezilla live mode, it gives me an error and halts
or conversely.... how to do the smb share connection for the home/partimag for the full clonezilla mode so I can go back to the other defaulty file and gain back that functionality
this functionality allowed me to be able to push an image for a different model of machine to the current computer because windows 10 plays nice..(levovoi X1 Yoga windows image pushed to a Lenovo E570 as an example)