# mount CIFS share at boot

**URL:** https://forums.suse.com/t/mount-cifs-share-at-boot/21608
**Category:** SLES Install-Boot
**Created:** [September 3, 2011, 6:16pm UTC](https://forums.suse.com/t/mount-cifs-share-at-boot/21608 "2011-09-03T18:16:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)
#### Post date: [September 3, 2011, 6:16pm UTC](https://forums.suse.com/t/mount-cifs-share-at-boot/21608/1 "2011-09-03T18:16:01Z")

</div>

Hello everybody,

is there a possibility to mount a cifs share automagicaly at boot  
time?  
Redhat has a netfs scripts which handles cifs mounts (and other network  
filesystems).  
In SLES11SP1 I didn’t find a similar script. Do I have to write my own  
script, or is there a feature which I don’t know?

Sincerely  
Bernhard

## – fpitinfra

fpitinfra’s Profile: [http://forums.novell.com/member.php?userid=96880](http://forums.novell.com/member.php?userid=96880)  
View this thread: [http://forums.novell.com/showthread.php?t=444165](http://forums.novell.com/showthread.php?t=444165)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [September 5, 2011, 10:56am UTC](https://forums.suse.com/t/mount-cifs-share-at-boot/21608/2 "2011-09-05T10:56:02Z")

</div>

Hi

You can put a line with the correct mount.cifs-syntax in /etc/fstab.  
Regards,  
Tom

## – amo\_vzug

amo\_vzug’s Profile: [http://forums.novell.com/member.php?userid=25342](http://forums.novell.com/member.php?userid=25342)  
View this thread: [http://forums.novell.com/showthread.php?t=444165](http://forums.novell.com/showthread.php?t=444165)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [September 7, 2011, 11:36pm UTC](https://forums.suse.com/t/mount-cifs-share-at-boot/21608/3 "2011-09-07T23:36:02Z")

</div>

That’s exactly what I did, but when I reboot the machine the CIFS share  
is not mounted.  
Which rc-script does the actual mount?

Sincerely  
Bernhard

## – fpitinfra

fpitinfra’s Profile: [http://forums.novell.com/member.php?userid=96880](http://forums.novell.com/member.php?userid=96880)  
View this thread: [http://forums.novell.com/showthread.php?t=444165](http://forums.novell.com/showthread.php?t=444165)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [September 8, 2011, 8:16am UTC](https://forums.suse.com/t/mount-cifs-share-at-boot/21608/4 "2011-09-08T08:16:02Z")

</div>

You need also to install the samba-client-package.

## Code:

## $ zypper install samba-client

This package installs a new init-script (/etc/init.d/smbfs), which  
mounts all cifs-shares registered in /etc/fstab (after  
network-startup…of course) ;-).  
Regards,  
Tom

## – amo\_vzug

amo\_vzug’s Profile: [http://forums.novell.com/member.php?userid=25342](http://forums.novell.com/member.php?userid=25342)  
View this thread: [http://forums.novell.com/showthread.php?t=444165](http://forums.novell.com/showthread.php?t=444165)
