LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Mounting a windows share. Please help, totally lost. (https://www.linuxquestions.org/questions/slackware-14/mounting-a-windows-share-please-help-totally-lost-508198/)

sickboylives 12-07-2006 08:59 AM

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.

acid_kewpie 12-07-2006 09:14 AM

double up your slashes or use forward slashes instead:

\\\\server\\share

//server/share

raska 12-07-2006 09:32 AM

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

sickboylives 12-07-2006 03:13 PM

Hey, it worked like a charm! Thanks guys!

sickboylives 12-07-2006 03:20 PM

Next stop, look up how to automount this in fstab. Any hints before I start digging?

sickboylives 12-07-2006 04:08 PM

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.

New2Linux2 12-07-2006 04:46 PM

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.

sickboylives 12-07-2006 05:05 PM

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.

djgerbavore 12-11-2006 04:01 PM

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


All times are GMT -5. The time now is 12:24 AM.