LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mounting Windows Shared Folders on LINUX (https://www.linuxquestions.org/questions/linux-general-1/mounting-windows-shared-folders-on-linux-624635/)

SBN 02-28-2008 09:36 PM

Mounting Windows Shared Folders on LINUX
 
Hey guys ive been using these to mount my shared folders in our win03 server to my ubuntu box.



Quote:

# mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver

Quote:

# mount -t smbfs -o username=vivek,password=D1W4x9sw //ntserver/download /mnt/ntserver
But both them has the same problem:

Quote:

mount: wrong fs type, bad option, bad superblock on //ntserver/download,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

jschiwal 02-28-2008 11:45 PM

Have a second terminal open monitoring the kernel messages when trying to mount the share. "sudo tail -f /var/log/messages".

Something tells me that it's the "missing codepage or other" part of the error message that needs attending to. Look into the "iocharset" option.

I alway's create a $HOME/.credentials file and use that in any /etc/fstab entry or mount command.
-o rw,defaults,credentials=/home/<homedirectory>/.credentials.

You may also need a "file_mode=" and "dir_mode=" as well as "gid=" and "uid=" if the share is from a windows machine. It may depend on the filesystem that is being shared. If it is vfat, then yes. If it is ntfs then maybe not. However don't be surprised if when the mount command works, you end up with a partition owned by root.

Make sure that you have the "nls_utf8" kernel module loaded.


All times are GMT -5. The time now is 05:13 AM.