Find the answer to your Linux question:
Results 1 to 7 of 7
I have Redhat Linux 9.0 and a Window XP/98 machine. I want to mount windows "share" on my linux machine so that I can read/write from linux as a normal ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2004
    Location
    India
    Posts
    14

    mount window


    I have Redhat Linux 9.0 and a Window XP/98 machine.

    I want to mount windows "share" on my linux machine so that I can read/write from linux as a normal linux mount system.
    I tried this command but it failed.
    # mkdir /mnt/win
    # mount -t smbfs -o lfs //192.168.1.13/sa /mnt/win
    mount: wrong fs type, bad option, bad superblock on //192.168.1.13/sa,
    or too many mounted file systems
    Any clue..

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    try:
    mount -t smbfs -o username=<username>,password=<password> //<computer name>/<share name> /mnt/win/

    where <username> and <password> are a valid user on the windows machine. This woked ok for me here.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  3. #3
    Just Joined!
    Join Date
    Apr 2004
    Location
    India
    Posts
    14
    I tried this but it still fails.

    # mount -t smbfs -o username=esr1,password=esr1 //192.168.1.13/sa /mnt/win
    mount: wrong fs type, bad option, bad superblock on //192.168.1.13/sa,
    or too many mounted file systems

    I checked the kernel module support for smbfs, and it is there.

    # lsmod | grep smb
    smbfs 43680 0 (autoclean)

    Anythis else I can try !!..

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    May 2004
    Location
    Chennai, India
    Posts
    116
    Try This. I've tested.... it's working....

    Code:
    /sbin/mount.smb <hostname>/<sharename> <mount-point> -o username=<username>
    eg.
    Code:
    /sbin/mount.smb //10.2.1.100/myShare /mnt/winbox/myShare -o username=winuser
    You need to supply the winuser's password when prompted.

    You have your windows share mounted. whooooooooo

  6. #5
    Just Joined!
    Join Date
    Apr 2004
    Location
    India
    Posts
    14
    I don't have mount.smb under /sbin or /bin.Is it something I need to install ?

  7. #6
    Linux Newbie
    Join Date
    Feb 2004
    Location
    India
    Posts
    132
    Here's a clue
    [root@mypc /]# rpm -q --whatprovides /sbin/mount.smb
    samba-client-3.0.0-15

    You have to install
    "samba-client" rpm from your redhat 9 cd.
    You are the one Linux!

  8. #7
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    I find that using linneighborhood works great for me. You'll have problems mounting windows as user, unless you change a bunch of permissions and stuff. It's not as simple as simply changing the fstab file like it should be, you actually have to set sticky bits and the such with mount.smb.

    Anyway... Linneighborhood is a great program that'll do everything for you.

    Good Luck!
    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

Posting Permissions

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