LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-11-2007, 01:23 PM   #1
Thermos
Member
 
Registered: Feb 2003
Posts: 38

Rep: Reputation: 15
bind mount at end of boot


I'm running opensuse 10.2 as my ftp server. On boot Suse mounts shares from other pcs with samba (smbfstab). After these samba shares are mounted i would like to mount some of these folders to a home directory setup for my ftp users. I created a little script file that i can run to mount these (mount --bind /mnt/blah /home/ftp/blah) but i dont know how to get this file to execute as root on boot after the original shares have been mounted through smbfstab.

can someone tell me how to run this at the very end of the boot process or how to make sure it is done after the samba mounts?

thanks in adv.
 
Old 06-11-2007, 05:24 PM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 33
well, have a look at a /etc/init.d script!

Code:
#! /bin/sh
# Copyright (c) 1999-2003 SuSE Linux AG, Nuernberg, Germany.
# All rights reserved.
#
# Author: Thomas Fehr, 1999-2001
#         Lars Mueller <lmuelle@suse.de>, 2002-2004
#         Bjoern Jacke <bjacke@SerNet.de> 2004
#
# /etc/init.d/smbfs
#   and its symbolic link
# /usr/sbin/rcsmbfs
#
### BEGIN INIT INFO
# Provides:       smbfs
# Required-Start: $network $syslog
# X-UnitedLinux-Should-Start: nmb smb
# Required-Stop:
# Default-Start:  3 5
# Default-Stop:   0 1 2 6
# Description:    Import remote SMB/ CIFS (MS Windows) file systems
### END INIT INFO
so put your code below this block. modify "# Provides: smbfs" with e.g. "Provides: some_suitable_name" and set "# Required-Start: $smbfs"

then you can have your script added to the runlevels with yast automatically in the right order, that is after samba stuff has been mounted.
 
Old 06-12-2007, 10:37 AM   #3
Thermos
Member
 
Registered: Feb 2003
Posts: 38

Original Poster
Rep: Reputation: 15
thank you, ill will try that tonight.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount bind read-only kramer2718 Linux - General 9 08-31-2008 10:14 AM
apache and mount bind sciguy125 Linux - Software 0 05-20-2006 12:51 AM
persistent mount --bind linuxnube Linux - Software 0 05-12-2004 08:24 PM
mount --bind on boot tp6400 Linux - Newbie 1 01-25-2004 09:41 PM
Mount hd with start & end jsalvoeiro Linux - Newbie 1 09-16-2003 02:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration