LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-07-2006, 08:59 AM   #1
sickboylives
Member
 
Registered: Mar 2003
Location: Cambridge, Ohio, USA
Distribution: Slackware 11.0, FreeBSD 6.2
Posts: 98

Rep: Reputation: 15
Mounting a windows share. Please help, totally lost.


I dunno, it's as if Slack 11 doesn't have smbfs or something. Every time I try to mount the share it gives me :

Code:
root@diabolical:/mnt# mount -t smbfs -o \\192.168.1.65\D /mnt/verdelet
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .
I know Fedora went to CIFS, but I cannot remember the command syntax for CIFS mounting, don't know if Slack did the same, and cannot remember the syntax to add a CIFS share to fstab. If it helps, when I installed Slack 11 I installed every single package on the CDs.

Please show me how to mount a Windows share by both command line and by fstab on Slack 11.
 
Old 12-07-2006, 09:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
double up your slashes or use forward slashes instead:

\\\\server\\share

//server/share
 
Old 12-07-2006, 09:32 AM   #3
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally Posted by sickboylives
I dunno, it's as if Slack 11 doesn't have smbfs or something. Every time I try to mount the share it gives me :

Code:
root@diabolical:/mnt# mount -t smbfs -o \\192.168.1.65\D /mnt/verdelet
....
Try it this way, pretty much like acid_kewpie said:
Code:
mount -t smbfs -o username=<user>,password=<passwd>,rw //<IP_address>/<share> /mnt/<mount_point>
Notice that username and password are options with the -o modifier and maybe not required, but not the target share and the mount point, those are parameters for the mount command and are separated with blank spaces from the options. You may not supply the password and the shell will ask for it , just in case you don't want to type it directly in the CLI. You can also add some other options listed in man smbmount
 
Old 12-07-2006, 03:13 PM   #4
sickboylives
Member
 
Registered: Mar 2003
Location: Cambridge, Ohio, USA
Distribution: Slackware 11.0, FreeBSD 6.2
Posts: 98

Original Poster
Rep: Reputation: 15
Hey, it worked like a charm! Thanks guys!
 
Old 12-07-2006, 03:20 PM   #5
sickboylives
Member
 
Registered: Mar 2003
Location: Cambridge, Ohio, USA
Distribution: Slackware 11.0, FreeBSD 6.2
Posts: 98

Original Poster
Rep: Reputation: 15
Next stop, look up how to automount this in fstab. Any hints before I start digging?
 
Old 12-07-2006, 04:08 PM   #6
sickboylives
Member
 
Registered: Mar 2003
Location: Cambridge, Ohio, USA
Distribution: Slackware 11.0, FreeBSD 6.2
Posts: 98

Original Poster
Rep: Reputation: 15
Already got it, thanks anyways. For some reason I need to input the root password on boot to get it to connect, but I'm fine with that.
 
Old 12-07-2006, 04:46 PM   #7
New2Linux2
Member
 
Registered: Jan 2004
Location: Arizona
Distribution: Debian
Posts: 153

Rep: Reputation: 43
Just a suggestion, but you may want to look into using a credentials file and just have a pointer to it in your fstab. That way you don't have to have your root password in a world readable file like fstab.
 
Old 12-07-2006, 05:05 PM   #8
sickboylives
Member
 
Registered: Mar 2003
Location: Cambridge, Ohio, USA
Distribution: Slackware 11.0, FreeBSD 6.2
Posts: 98

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by New2Linux2
Just a suggestion, but you may want to look into using a credentials file and just have a pointer to it in your fstab. That way you don't have to have your root password in a world readable file like fstab.
I didn't put any username or password in the fstab entry. It's an open read-write share that doesn't require anything to login, so I left all that out.
 
Old 12-11-2006, 04:01 PM   #9
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
From Andrew Morton:
Quote:
smbfs is unmaintained and we'd like to kill it off. Please use cifs.
If you ever upgrade your kernel then smbfs will stop working, it might be beneficial and make your life alot easier if you consider using CIFS now, plus the security is alot better

for info:
http://linux-cifs.samba.org/

Those are just my 2 cents,

Thanks,

djgerbavor3
 
  


Reply

Tags
mount, share, slackware, smbfs



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting hidden windows share ashjam10 Linux - Networking 1 11-12-2005 10:11 PM
Trouble mounting a Windows share lowpro2k3 Slackware 2 10-17-2005 04:38 AM
mounting a windows (samba) share? alsjordan Linux - Newbie 3 08-06-2005 08:22 AM
mounting a windows share w/ rw permissions GaijinPunch Linux - Networking 8 01-06-2004 07:04 PM
mounting a windows network share? graystarr Linux - Networking 2 11-09-2002 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:48 AM.

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