DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th September 2019
rdikarlus rdikarlus is offline
Real Name: Carlosn
Fdisk Soldier
 
Join Date: Nov 2018
Location: IBZ ISLAND
Posts: 63
Default Mounting SMB / CIFS sharesin OpenBSD

Hi all,

I am trying to configure my /etc/fstab so that a CIFS / smb share is mounted. This is the line I added to my fstab:

//SMB_SERVER_IP/SMB_SHARED_DIR /mnt/MOUNT_POINT cifs rw,user=user_here,pass=pass_here,uid=mapped_user_h ere 0 0

When mounting, this is the output I get:

# mount /mnt/MOUNT_POINT
mount: no mount helper program found for cifs: No such file or directory


Googling I found out sysutils/usmb should be installed. I did it, nothing changes.

What am I doing wrong? thanks for your answers
Reply With Quote
  #2   (View Single Post)  
Old 16th September 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

The fstab(5) file can only be used with filesystems mounted via mount(8), which requires statically build mounting applications in /sbin/mount_XXXX.

The usmb package's mounting program is /usr/local/bin/usmb, not mount(), so fstab() cannot be used. Instead, create an /etc/rc.local shell script to run usmb at boot. Per rc(8):
Code:
     rc.local is executed towards the end of rc (it is not the very last as
     there are a few services that must be started at the very end).
     Normally, rc.local contains commands and daemons that are not part of the
     stock installation.
A skeleton shell script you can adapt may be found in /etc/examples/rc.local.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount Samba/CIFS Share in OpenBSD jayblingham OpenBSD Packages and Ports 3 31st March 2019 02:32 AM
Mounting Samba from OpenBSD joancatala OpenBSD General 2 3rd September 2018 11:44 AM
Writable CIFS share inside jail Eend FreeBSD General 4 3rd April 2013 06:20 PM
Mounting a NetBSD partition from OpenBSD daemonfowl OpenBSD General 4 19th July 2012 12:03 PM
Mounting six CentOS iso images on OpenBSD J65nko Guides 6 25th November 2009 10:58 PM


All times are GMT. The time now is 11:06 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick