Mounting a windows share. Please help, totally lost.
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.