Menu

Need help with mount cifs options

Help
2017-03-30
2017-03-30
  • Kren castro

    Kren castro - 2017-03-30

    So while performing a mount cifs -t -o user=testuser,PASSWD (so that I get prompted for a password). I get the prompt and when I enter the password I get an invalid argument error.

    I have verified using this reference: https://www.samba.org/samba/docs/man/manpages-3/mount.cifs.8.html for the mount cifs parameters. According to this passwords typed at the prompts should work regardless of delimeters or special characters.

    Any help is greatly appreciated.

    append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=enUS.UTF8 keyboard-layouts=NONE ocsprerun="dhclient -v eth0" ocsprerun1="mount -t cifs -o user=testuser,PASSWD //192.168.1.6/backups /home/partimag" ocsliverun="/usr/sbin/ocs-sr -q2 -j2 -z1p -i 4096 -sfsck -senc -p reboot savedisk askuser sda" ocsliveextraparam="" ocslivebatch="no" vga=788 ip= net.ifnames=0 nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enablefbdev=1

     
  • amtech

    amtech - 2017-03-30

    try this
    ocs_prerun="dhclient -v eth0" ocs_prerun1="sleep 2" ocs_prerun2="sudo mount -t cifs //192.168.1.7/home/partimag /home/partimag -o username=fred,password=somepassword"

     
  • Kren castro

    Kren castro - 2017-03-31

    amtech,

    thanks for the reply. That works, but it displays the credentials on the screen and using quiet does not do much to remedy this. Would you happen to know where I can store my credentials file within the bootable USB where it can have enought permissions to be read?

     
  • amtech

    amtech - 2017-03-31

    sorry, I don't have that info handy.

     

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.