LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-28-2008, 09:36 PM   #1
SBN
Member
 
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
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
 
Old 02-28-2008, 11:45 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting windows shared directory on to a linux box srinivasarajui Linux - Networking 2 09-28-2005 05:56 AM
cant get linux to go into windows shared folders kamowa Linux - Networking 4 09-22-2005 12:02 PM
Accessing windows shared folders in linux srivatsava Linux - Networking 1 09-29-2004 03:01 PM
Mounting Windows NT shared folders for individual users Jake_da_Snake Linux - Networking 6 02-28-2004 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration