You are not logged in.

#1 2016-05-22 14:17:11

jimjamz
Member
From: Nagasaki, Japan
Registered: 2016-04-04
Posts: 189

[SOLVED]Mounting a Samba share

Hello all,

I'm having some difficulty finding a standard way of taking a Samba share, which is an external drive connected to a Raspberry PI, and mounting it to a mount point in BL (e.g. /mnt/pi_drive).

I have read some generic stackoverflow articles on how to do this for Debian Linux but most articles are very old and point to mounting using

-t smbfs

, which has been recommended against as it is apparently, deprecated.

I followed this article, which informs to install samba-client and cifs-utils and use

mount.cifs

.  However, I feel I am veering away from using more standard practices that can be accomplished with

mount -t cifs

or some other variant of mount.

Instead, I thought I should appeal directly to the BL community as the platform I am using this for is indeed, BL.

Can anyone help?

Thanks.

Last edited by jimjamz (2016-05-22 14:18:36)

Offline

#2 2016-05-22 14:35:15

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: [SOLVED]Mounting a Samba share

mount.cifs = mount -t cifs. It's just a helper program mount would otherwise call by itself. It is also correct that cifs superseeds smbfs. You can also use fstab for mounting smb shares (see).

Offline

#3 2016-05-22 14:44:31

Kino
Member
From: Stockport, UK
Registered: 2016-04-30
Posts: 109

Re: [SOLVED]Mounting a Samba share

I've just spent a day and a half getting BL to share my external hard drives. I can't give specific instructions as some of the things I did probably had no effect.
But, for starters I assume you have samba, cifs-utils and smbclient installed.
Then, edit the /etc/samba/smb.conf file to include a reference to your external drive.
Mine, for example, has:

[Elements]
	path = /media/kino/Elements
	writeable = yes
	browseable = yes
	valid users = kino

Having done that you will need to set yourself up as a user with a password in samba.

Offline

#4 2016-05-23 21:08:18

jimjamz
Member
From: Nagasaki, Japan
Registered: 2016-04-04
Posts: 189

Re: [SOLVED]Mounting a Samba share

My samba configuration and smb.conf is already setup and has been for quite some time.  I've been using it to access my Samba shares via Windows and Mac OS X.  It's only now that I'm wanting to access it through BL.  It's easy to do via the File Manager, but when wanting to mount the drive, I was a little stuck as to what to use.  I'll give mount.cifs another go.

Offline

#5 2016-06-02 21:10:21

jimjamz
Member
From: Nagasaki, Japan
Registered: 2016-04-04
Posts: 189

Re: [SOLVED]Mounting a Samba share

So I had a go with mount.cifs using the following:

sudo mount.cifs -o username=sambaUser,password=sambaPassword //hostname/store /mnt/store

but I receive the following:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

I checked the samba share username and password by using the same credentials to connect to the remote server in OS X and it worked.  So, what am I doing wrong in BL?

Offline

#6 2016-06-04 09:08:01

jimjamz
Member
From: Nagasaki, Japan
Registered: 2016-04-04
Posts: 189

Re: [SOLVED]Mounting a Samba share

I got it working.  My password contained special characters.  To resolve this, I had to contain the password value in single-quotes ('):

sudo mount.cifs -o username=sambaUser,password='$4mb4P455w0rd!' //hostname/store /mnt/store

Equally, I can also remove the password parameter from the command line and enter it when requested:

sudo mount.cifs -o username=sambaUser //hostname/store /mnt/store

Password:

Last edited by jimjamz (2016-06-04 09:09:13)

Offline

#7 2016-06-04 12:10:06

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED]Mounting a Samba share

Marking this as [SOLVED]

(You can do this yourself, by editing the title of your first post wink )


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#8 2016-06-11 15:59:12

jimjamz
Member
From: Nagasaki, Japan
Registered: 2016-04-04
Posts: 189

Re: [SOLVED]Mounting a Samba share

I also just want to add to this that if you are attempting to use the mount -t cifs on a fresh BL install, then you are most likely to see the following response:

wrong fs type, bad option, bad superblock on //hostname/share

To resolve this issue, do the following:

apt-get install cifs-utils

From here, you will also be able to use the mount.cifs helper that @nobody refers to.

Offline

Board footer

Powered by FluxBB