Menu

Trouble Mounting Network Share

Help
Kyle
2013-06-12
2013-06-25
  • Kyle

    Kyle - 2013-06-12

    I am using Clonezilla to re-image PC's that we are using and it works great. I since have been trying to make it easier to use for other members of our team by editing the syslinux.cfg file to help automate a lot of the processes. I am running into some errors however. Every time I run Clonezilla, it runs fine until it tries to find the images that I have stored. For some reason it doesn't find them when I automate the menu.

    I tried going into the cmd prompt to manually mount, and it works just fine. Here is my code, maybe I'm goofing something up.

    Manual mount that works: mount -t cifs -o user="administrator" "//10.10.10.10/Path to Images" /home/partimag

    Automated Mount that doesn't work: ocs_prerun3="mount -t cifs -o user=xxx,password=xxx,domain=xxx //10.10.10.10/Path to Images /home/partimag"

    Any suggestions?

     

    Last edit: Kyle 2013-06-12
  • Fuchs

    Fuchs - 2013-06-13

    Hallo Kyle,
    I have used similar data with 'sleep 2' and without [,'domain']:
    ocs_prerun="dhclient -v eth0"
    ocs_prerun1="sleep 2"
    ocs_prerun2="mount -t cifs -o user=xx,password=xx[,domain=xx] //192.x.x.x/Path_to_Images /home/partimag"
    ocs_prerun3="sleep 2"

     
  • Kyle

    Kyle - 2013-06-13

    So you didn't include the domain? I tried without the domain as well with no luck. Kind of stumped but I will certainly try what you have here and update. Thanks for the suggestions!

     
  • Fuchs

    Fuchs - 2013-06-14

    I think it's a simple typing error with carriage return <cr> or line feed <ln>.
    'append ...' should be one line only, not more.
    I have had a similar one nearby prerun commands and have found this error with prerun9="read" at different positions in the append line.</ln></cr>

     
  • Kyle

    Kyle - 2013-06-24

    It's still not working. Here is exactly what I have:

    append initrd=/live/initrd.img boot=live config noswap nolocales edd=on nomodeset noprompt ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="mount -t cifs -o user=xx,password=xx //192.64.x.x/MIS/Clonezilla Images /home/partimag" ocs_prerun4="sleep 2" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -c -r -j2 -p true restoredisk ask_user sda1" ocs_live_extra_param="" keyboard-layouts=NONE ocs_live_batch="no" locales="en_US.UTF-8" vga=788 ip=frommedia nosplash

    It runs through everything but just does not want to go to the screen where it asks you to choose which image you want to use from the server. I still get the mounting error. Any other suggestions?

     
  • Kyle

    Kyle - 2013-06-24

    I tried what you got with the same error of 'no volumes found make sure you have saved images' (which I do). The path takes you right to the folder where the images are located.

     
  • Fuchs

    Fuchs - 2013-06-24

    And now the next simple typing error.
    I had written '..//192.x.x.x/Path_to_Images..'
    with underscore between the words.
    not '../Path to Images..'.

    In your case the program find 'Images'
    but not '/home/partimage'. It's irrecoverably lost.

    BTW
    restoredisk only if you have used savedisk before
    and
    restoreparts only if you have used saveparts before

    Good luck!

     
  • Kyle

    Kyle - 2013-06-24

    OK So I need the underscores where the spaces are? I'll give it a shot.

    I used savedisk before which is why I'm using restoredisk but thank you for the heads up!

     
  • Kyle

    Kyle - 2013-06-24

    Still no dice. Do I need to point it directly at one of the images? I would like to give the user a choice.

     
  • Fuchs

    Fuchs - 2013-06-25

    That's why I am often using 'saveparts' of all partitions not savedisk to have an option to choice of the partitions.
    Your recommendation is currently being prepared. Steven has reported this one anywhere in the forum.

     
  • Kyle

    Kyle - 2013-06-25

    Thanks for all the help. I'm relatively new at this and I know I'm close.

     
  • Kyle

    Kyle - 2013-06-25

    I should probably mention that the location of the images is on a Buffalo Network Attached storage. I'm not sure if that would affect this at all however, since I can save my images there using the samba option with no issues.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.