Page 131 of 137 FirstFirst ... 3181121129130131132133 ... LastLast
Results 1,301 to 1,310 of 1362

Thread: Mount samba shares with utf8 encoding using cifs

  1. #1301
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by housseinireza View Post
    Thanks! Sorry but I didn't want to stress.

    I'm using the NetworkSpace 2 from LaCie: Here is a description. There exists a windows program to change password and settings, but I don't have an Windows OS anymore. In the link above is an instruction to hack the NAS, but I'm a little afraid that I gone loose my data's if I do it.
    Actually, I suggest that you post this question to the LaCie community forums here: http://www.nas-central.org/community-portal I think they will be better equipped to handle your problem.

  2. #1302
    Join Date
    Feb 2005
    Beans
    509
    Distro
    Lubuntu 11.10 Oneiric Ocelot

    Re: Mount samba shares with utf8 encoding using cifs

    FYI:

    Hi,

    I've noticed that you need to give the full path on a credential file under Ubuntu 10.10 (updated). I previously had the below line in a script, previously on 8.04:

    sudo mount -t cifs //192.168.1.74/c$ ~/windowsmachine/ -o credentials=.pass,iocharset=utf8,noexec,ro

    Under 10.10 this now needs to be changed to:

    sudo mount -t cifs //192.168.1.74/c$ ~/windowsmachine/ -o credentials=~/.pass,iocharset=utf8,noexec,ro

    as my .pass file is in my /home/username/ directory.

    If you don't it will give an evil message like:

    error -1 (Unknown error 4294967295) opening credential file .pass

    hope this helps someone.

  3. #1303
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by john_spiral View Post
    sudo mount -t cifs //192.168.1.74/c$ ~/windowsmachine/ -o credentials=.pass,iocharset=utf8,noexec,ro
    Frankly, I'm surprised this worked for you at all. You should always use the full path to the credentials file, and ~/.pass is not a full path.

    Since mount works with the root account (sudo) and not the user account, my howto instructs you to put the credentials file in a root home instead of the user home.

    So for example, if you switched to a root prompt with sudo -i and then ran your new command it would also not find your credentials file because from a root prompt ~/.pass is /root/.pass

    I highly recommend that you either place the credentials file in the root home (as explained in this tutorial) so it's more secure, or that you revise your mount command to include the real full path of /home/user/.pass instead of using a tilde.
    Last edited by dmizer; March 9th, 2011 at 03:38 AM.

  4. #1304
    Join Date
    Feb 2005
    Beans
    509
    Distro
    Lubuntu 11.10 Oneiric Ocelot

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by dmizer View Post
    ...I highly recommend that you either place the credentials file in the root home (as explained in this tutorial) so it's more secure..
    Thanks for the heads up on more robust security.

    On a slightly different subject. Is it still necessary (Ubuntu 10.10) to specify the IP address of the primary WINS server in the /etc/samba/smb.conf file for an Ubuntu WINS client in a subnetted network?

    Also with the below name resolve order in smb.conf:

    name resolve order = wins bcast host lmhosts

    I previously did this under 8.04 to resolve Windows host names on different subnets, by their short names. Without the above config it didn't work.
    Last edited by john_spiral; March 9th, 2011 at 11:56 PM.

  5. #1305
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by john_spiral View Post
    Thanks for the heads up on more robust security.

    On a slightly different subject. Is it still necessary (Ubuntu 10.10) to specify the IP address of the primary WINS server in the /etc/samba/smb.conf file for an Ubuntu WINS client in a subnetted network?

    Also with the below name resolve order in smb.conf:

    name resolve order = wins bcast host lmhosts

    I previously did this under 8.04 to resolve Windows host names on different subnets, by their short names. Without the above config it didn't work.
    No problem.

    As to WINS, if you don't have a good local DNS server for name resolution, you'll have to rely on WINS for your name resolution. If that's the case, then you may have to place the IP address of the WINS server in the client's smb.conf. It's not always necessary, but it's certainly good practice.

  6. #1306
    Join Date
    Mar 2011
    Beans
    6
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Mount samba shares with utf8 encoding using cifs

    Great guide but I'm having a bit of an issue with getting the mount to be permanent.

    Using: Windows 7 64bit, Ubuntu 10.10 64-bit, NAS is a Dns-323

    After following the guide I don't get any error messages ever but nothing appears in /media/share

    If I use the code posted by narky in one of the first few posts:

    sudo mount -t smbfs -o username=*****,password=***** //192.168.0.2/music /mnt/music
    Except with my ip //192.168.1.104/Vol1 /media/share

    It works when I try it that way but it goes away after a reboot.

    If I try with cifs manually it doesn't seem to work.

    The only thing I thought to try was changing cifs to smbfs in /etc/fstab but I have no idea if that even makes sense to try. It doesn't seem to work though.

    How can I get it to be permanent?

  7. #1307
    Join Date
    Aug 2007
    Location
    Scotland
    Beans
    168
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Mount samba shares with utf8 encoding using cifs

    Dmizer,
    Thanks for all your effort on this.

    I have a share which mounts perfectly well on bootup, but have the shutdown delay problem with "CIFS VFS: no response" errors and a full minute of waiting followed by a forced disk check on reboot.

    I have tried a lot of the "fixes", scripts, moving umountnfs to K10, etc, but with no joy.

    Please help. Running Mint 9 (ubuntu based).

    Thanks in advance
    http://tipiglen.co.uk/loveandpeace3.gif
    ed
    Asus 1005HA CPU:N280 HDD:160G RAM:2G Ubuntu 10.04 and/or Mint 9

    Also have decrepit Fujitsu-Siemens Amilo D 1845 [now half-bricked by upgrade ]
    知 者 不 言。言 者 不 知。

  8. #1308
    Join Date
    Aug 2007
    Location
    Scotland
    Beans
    168
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Mount samba shares with utf8 encoding using cifs

    Dmizer,

    And empathetic thoughts for all folk in Japan and those who know and care for them.

    http://tipiglen.co.uk/loveandpeace3.gif
    Asus 1005HA CPU:N280 HDD:160G RAM:2G Ubuntu 10.04 and/or Mint 9

    Also have decrepit Fujitsu-Siemens Amilo D 1845 [now half-bricked by upgrade ]
    知 者 不 言。言 者 不 知。

  9. #1309
    Join Date
    Aug 2007
    Location
    Scotland
    Beans
    168
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Mount samba shares with utf8 encoding using cifs

    This fix works for me!
    http://ubuntuforums.org/showthread.php?t=1347340&page=3

    What a community of interest!

    xxxxxxx
    ed
    Asus 1005HA CPU:N280 HDD:160G RAM:2G Ubuntu 10.04 and/or Mint 9

    Also have decrepit Fujitsu-Siemens Amilo D 1845 [now half-bricked by upgrade ]
    知 者 不 言。言 者 不 知。

  10. #1310
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by iliekpie View Post
    Great guide but I'm having a bit of an issue with getting the mount to be permanent.

    Using: Windows 7 64bit, Ubuntu 10.10 64-bit, NAS is a Dns-323

    After following the guide I don't get any error messages ever but nothing appears in /media/share

    If I use the code posted by narky in one of the first few posts:

    sudo mount -t smbfs -o username=*****,password=***** //192.168.0.2/music /mnt/music
    Except with my ip //192.168.1.104/Vol1 /media/share

    It works when I try it that way but it goes away after a reboot.

    If I try with cifs manually it doesn't seem to work.

    The only thing I thought to try was changing cifs to smbfs in /etc/fstab but I have no idea if that even makes sense to try. It doesn't seem to work though.

    How can I get it to be permanent?
    SMBFS is not included in Ubuntu unless you compile it from source. There is literally no reason why smbfs should work where cifs wouldn't unless there has been a change in syntax.

    Please post your actual /etc/fstab line.

    Quote Originally Posted by tipiglen View Post
    This fix works for me!
    http://ubuntuforums.org/showthread.php?t=1347340&page=3

    What a community of interest!

    xxxxxxx
    ed
    Thanks for finding that. I've included that link in the troubleshooting section.

Page 131 of 137 FirstFirst ... 3181121129130131132133 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •