Menu

#178 Unable to mount share - Clonezilla live 2.1.2-7

closed-fixed
nobody
5
2015-04-11
2013-05-24
Jack
No

As explained on this thread: https://sourceforge.net/p/clonezilla/discussion/Help/thread/bfb074e4/ CZ is NOT mounting the share because it seems it loses Root privileges, this occurs on recent version of CZ.

Discussion

  • Steven Shiau

    Steven Shiau - 2013-05-24

    Could you please show us the complete command?
    It's easier to understand.
    Thanks.

    Steven.

     
  • Jack

    Jack - 2013-05-24

    Everything goes fine up until I get this message:

    Mounting samba server by:
    mount -t cifs -o user="administrator" "//192.168.1.250/Images/CloneZilla" /home/partimag
    Password for administrator@//192.168.1.250/Images/CloneZilla:

    I don't have a password, so I just hit ENTER, after doing that I get this:

    [ 274.402364] CIFS VFS: Send error in SessSetup = -13
    [ 274.409213] CIFS VFS: cifs_mount failed w/return code = -13
    mount error(13): Permission denied

    If I enter the mount command using the command line I get the error:

    mount: only root can do that

     
  • Jack

    Jack - 2013-05-24

    NOTE: I haven't modified CZ in any way, I'm running the default settings, in other words, I just downloaded it and installed it on a USB drive.

     
  • Steven Shiau

    Steven Shiau - 2013-06-01

    This is weird... I can not reproduce the problem here. I boot Clonezilla live 2.1.2-7 i686-pae version, and successfully mount the samba server (on Windows XP). The only difference is, I have to input password for my samba server.
    Could you try to mount a different samba server?

    Steven.

     
  • Jack

    Jack - 2013-06-03

    I have only 1 SAMBA server, however, this is what I found out, any version of CZ up to "clonezilla-live-2.1.1-25-i486" works like a charm, "clonezilla-live-2.1.2-2-i486" and newer have the issue I described, so, whatever changes you guys made to the authentication part on "clonezilla-live-2.1.2-2-i486" and up should be looked at.

    Thanks

     

    Last edit: Jack 2013-06-06
  • Steven Shiau

    Steven Shiau - 2013-06-12

    In that case, I believe the issue is the samba program has changed.
    I compared clonezilla-live-2.1.1-25-i486 and clonezilla-live-2.1.2-2-i486, the packages:
    1. cifs-utils both are the same, i.e. 2:5.5-1
    2. samba-common: 3.6.6-6 vs: 3.6.14-1
    The difference about samba-common on Debian:
    http://ftp-master.metadata.debian.org/changelogs//main/s/samba/samba_3.6.15-1_changelog

    Since I can not reproduce the issue here, maybe you can try:
    1. Try Clonezilla live 2.1.2-11
    2. If it has same issue, configure the network in Clonezilla live 2.1.2-11 by running "ocs-live-netcfg", then
    3. wget ftp://ftp.us.debian.org/debian/pool/main/s/samba/samba-common_3.6.6-6_all.deb
    4. sudo dpkg -i samba-common_3.6.6-6_all.deb
    5. Run "clonezilla" command again, try to mount your samba server again. To see if this issue is gone. If so, we know that samba-common regressed... Then we should report the issue to upstream, i.e. Debian project.

    Steven.

     
  • Dave Higton

    Dave Higton - 2013-07-16

    I've had a similar issue with CZ 2.1.2-20 and a home NAS. The only way I could mount the share was to drop to the command line and mount the share from there, the key being to add the argument "sec=ntlm" to the mount command.

    Having to do that certainly takes CZ out of the province of beginners.

    I'd like to see a way within CZ to specify NTLM security - I understand from the web searches that I did that CZ's default security is NTLM3, but ICBW - it's beyond my understanding. Alternatively an automatic fallback perhaps, i.e. if the default fails then try NTLM.

    One thing I can confirm is that just being root wasn't enough; "sec=ntlm" was the thing that made the difference for me.

     
  • Vincent M

    Vincent M - 2013-07-18

    Hi, today I downloaded 2.1.2-20 (Live) and tried to connect to my nas via the samba option in the GUI and got a -13 error permission denied. I then went back and tried an older version of the CD and it was fine. On both I entered everything straight up only servername,domain,user,password. Thanks.

     
  • Jack

    Jack - 2013-07-22

    Indeed, it seems something is broken, new versions cannot mount my shares.

     
  • Steven Shiau

    Steven Shiau - 2013-07-23

    As Dave mentioned, could you try to add the argument "sec=ntlm" manually when mounting your samba server?
    Please let us know the results.
    BTW, please also try Clonezilla live 2.1.2-24 or 20130723-raring. The former comes with updated Linux kernel 3.10, and it might give you different results.
    Thanks.

    Steven.

     
  • Jack

    Jack - 2013-07-23

    I tried using 2.1.2-24 (i486), dropped to CMD and typed the command as indicated above and I get the message "mount: only root can do that"

     
  • Steven Shiau

    Steven Shiau - 2013-07-27

    OK, from the discussions here:
    http://aptosid.com/index.php?name=PNphpBB2&file=viewtopic&t=2566
    I realized the from Linux kernel 3.8, the default security for CIFS has been changed to ntlmv2, which has been used widely many years. However, for some embedded system, like NAS sever, the samba is still old version (e.g. 2.x)), that's why. The testing I have done here is not connecting to a NAS server, it's a MS Windows XP samba server.
    We will have an option to let people choose "ntlm" or "ntlmv2" in the future release.

    Steven.

     
  • Steven Shiau

    Steven Shiau - 2013-07-27

    @Jack,
    "mount: only root can do that" -> You have to run that command as root, i.e.
    1. sudo -i
    2. mount -t cifs ...

    Steven.

     
  • Jack

    Jack - 2013-07-31

    Ok, it seems that login in using sudo -i and then typing the Mount command and adding sec=ntlm works.

     
  • Steven Shiau

    Steven Shiau - 2013-07-31

    Please give Clonezilla live 2.1.2-31 a try. It gives you an option to use "sec=ntlm" when mounting Samba server.
    Please let me know the results.
    Thanks.

    Steven.

     
  • Jack

    Jack - 2013-08-01

    Ok, if I select the NTLM option, it works.

     
  • Steven Shiau

    Steven Shiau - 2013-08-15
    • status: open --> closed-fixed
     
  • Steven Shiau

    Steven Shiau - 2013-08-15

    Thanks for confirming that. This issue has been fixed.

    Steven.

     

Log in to post a comment.