LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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, 09: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, 10:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

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

\\\\server\\share

//server/share
 
Old 12-07-2006, 10: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: 30
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, 04: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, 04: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, 05: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, 05:46 PM   #7
New2Linux2
Member
 
Registered: Jan 2004
Location: Arizona
Distribution: Debian
Posts: 147

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, 06: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, 05:01 PM   #9
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 443

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:11 PM
Trouble mounting a Windows share lowpro2k3 Slackware 2 10-17-2005 05:38 AM
mounting a windows (samba) share? alsjordan Linux - Newbie 3 08-06-2005 09:22 AM
mounting a windows share w/ rw permissions GaijinPunch Linux - Networking 8 01-06-2004 08:04 PM
mounting a windows network share? graystarr Linux - Networking 2 11-09-2002 06:57 PM


All times are GMT -5. The time now is 12:34 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration