mounting windows file system

KevinO plug-discuss@lists.plug.phoenix.az.us
Wed, 27 Mar 2002 18:37:31 -0700


Bruner, Andrew wrote:
> How can I mount the windows C$ share from linux?
> Thanks
> -Andrew

1) Make sure your kernel is ready to support smb connections:

# cat /proc/filesystems
         ext2
nodev   proc
         iso9660
nodev   devpts
nodev   supermount
         vfat
         reiserfs
nodev   smbfs

If you don't see smbfs listed, try doing a :

# insmod smbfs

and look again.

2) Try mounting to it :

# mkdir /mnt/tmp
# mount -t smbfs  //<machine_name>/C$ /mnt/tmp

You may have to add some options to the mount command for username, password 
etc. like this :

# mount -t smbfs -o username=tridge,password=foobar //<machine_name>/C$ /mnt/tmp

(all on one line of course)

see : man smbmount (for more options)
       man mount

-- 
Kevin O'Connor

  "People will be free to devote themselves to activities that are fun ...

The GNU Manifesto - Copyright (C) 1985, 1993 Free Software Foundation, Inc.