Menu

Mount -t not reconized as a valid command with clonezilla-live-2.2.4-12

Help
Joe Coyle
2014-10-20
2014-10-22
  • Joe Coyle

    Joe Coyle - 2014-10-20

    If I use /efi/boot/grub.cfg with the following setup I get an error that -t is not a valid command when grub gets to ocs_prerun3. However, if I run the same ocs_prerun3 command on the cmd line using sudo su I am able to mount with no problem. In the example below, replaced $user and $password with the correct data. I did notice that when mounting from the cmd line, the quotes are not needed but they are needed in grub.cfg. I am booting using a USB thumb drive.

    menuentry "!!!RESTORE!!! Clonezilla live (Default settings, VGA 1024x768)"{
    search --set -f /live/vmlinuz
    linux /live/vmlinuz boot=live username=user live-config noswap edd=on nomodeset noeject locales=en_US.UTF-8 keyboard-layouts=us ocs_prerun1="dhclient -v eth0" ocs_prerun2="sleep 2" ocs_prerun3="mount -t cifs -o user=$user,password=$password //192.168.3.210/Clonezilla /" ocs_live_run="ocs-sr -g auto restordisk ask_user ask_user" ocs_live_extra_param="" ocs_live_batch=no vga=791 ip=frommedia nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
    initrd /live/initrd.img

    Any help would be greatly appreciated. I have spend many days searching the web for a solution.

    Regards.

    Joe

     
  • Fuchs

    Fuchs - 2014-10-21

    -The mount point for the image is '/home/partimag/' not '/' (root directory)
    ocs_prerun3="mount -t cifs -o user=$user,password=$password //192.168.3.210/Clonezilla /home/partimag/"

    -All kernel parameter will be separated with a space ' '. That's why the quotes are needed with 'ocs_prerun3="..." '.
    (Later in this case it will be used as a single command line in chronological order)

    -ocs_live_run="ocs-sr -g auto restordisk ask_user"
    Look for http://clonezilla.org/advanced/researved-word-ocs-sr.php

    (-Normally I have written 'initrd /live/initrd.img' as a kernel parameter without newline.)

     

    Last edit: Fuchs 2014-10-22
    • Joe Coyle

      Joe Coyle - 2014-10-21

      Fuchs,

      Thank you for you reply.

      I want my mount point as the root of my share. I am able to run the following
      command at the command prompt and I am able to mount this share with no problem.

      sudo su mount -t cifs -o user=myusername,password=mypassword //192.168.3.210/Clonezilla /

      It is only when I try and run the ocs_prerun3 from Grub.cfg that I get the error message that -t is not a valid command.

      if I use /home/partimg as the mount point I get......file or folder does not exsist. I could resolve this by adding this folder structure but I do not want to move my clonezilla images. I want my clonezilla images located in the root of my share.

      I have included a copy of grub.cfg for review.

       
  • Fuchs

    Fuchs - 2014-10-22

    (I can not open your bin file grub.cfg -with the new ubuntu version ) With the old version I could read the file. I am using always '/home/partimag/' as mount point.

     

    Last edit: Fuchs 2014-10-22

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.