Find the answer to your Linux question:
Results 1 to 7 of 7
I've finally had it with Windows as my primary desktop client. I've loaded up Suse 10.1 and am ready to learn. I have a file server running Windows 2003, which ...
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    4

    Newbie needs help mapping to windows share

    I've finally had it with Windows as my primary desktop client. I've loaded up Suse 10.1 and am ready to learn. I have a file server running Windows 2003, which is only a member server. How do I map to a share on it? For instance, I'd like to connect to my C$ on the windows server, but am having no luck on doing it in SUSE. I'm still learning my way around but if I'm going to run this as my primary desktop then I need immediate access to my file shares, I don't have time to stumble my way through that one. Can anyone help me out? appreciate it.

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105

  3. #3
    Just Joined!
    Join Date
    Aug 2006
    Posts
    94
    Firstly, from desktop go to Network Browsing > SMB Shares > [workgroup name] > [computer name] and make sure you can access the share. You might have to tweak or disabe the firewall if it is active.

    If that works, try making a folder somewhere (suggest /mnt/server or something) and then opening a console and typing:

    Code:
    su
    [enter root password]
    mount -t smbfs //[server name]/[path] /mnt/server -o username=[username],password=[password];
    If that works, you should be able to browse the local /mnt/server folder just like your server. I think you can add "-rw" either instead of or after the "-o" to give yourself write permissions.

    After that point I can't help, because I gave in - re-installed my server with SuSE and used NFS instead of SAMBA.

  4. #4
    Just Joined!
    Join Date
    May 2006
    Posts
    19
    Khinch, that information about how to map a network location using mount is exactly what am I looking for, it works perfectly with Suse Linux. But, when I try the same thing in Ubuntu Linux (Breezy Badger) I get what appears to be a generic error (I replaced the server name and path with periods.):

    Code:
    mount: wrong fs type, bad option, bad superblock on //.../...       
           missing codepage or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    I can make a network connection to my Windows system from my Ubuntu system using other methods though... Any idea?

  5. #5
    Just Joined!
    Join Date
    Aug 2006
    Posts
    94
    I have never used Ubuntu, but I just found what looks like an excellent wiki (www.ubuntuguide.org/wiki) which has a section on mounting samba shares.

    So, it looks like the command is very similar, but you can drop the "-t smbfs". If that doesn't work you might have to use the server's IP address instead of its NetBIOS name, as per the example.

    It also explains how to auto-mount the share during boot, which I have never successfully achieved in SuSE, but Ubuntu could be different.

  6. #6
    Just Joined!
    Join Date
    May 2006
    Posts
    19
    I figured it out. After trying the command "dmesg | tail" as suggested in the error message, I got a list of messages. It occurred to me that some were error messages generated by the failed mount commands. After searching for the message ("smbfs: mount_data version 1919251317 is not supported", I found out that I needed to install smbfs ("apt-get install smbfs")

    What I don't get is how it's possible that I have been accessing samba shares with Ubuntu without smbfs before...

  7. #7
    Just Joined!
    Join Date
    Aug 2006
    Posts
    94
    Quote Originally Posted by Peter Swinkels
    What I don't get is how it's possible that I have been accessing samba shares with Ubuntu without smbfs before...
    I have absolutely no idea. But it's working now, congratulations

Posting Permissions

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