From owner-freebsd-questions@FreeBSD.ORG Sat Oct 28 21:36:44 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E5D616A407 for ; Sat, 28 Oct 2006 21:36:44 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 946C943D55 for ; Sat, 28 Oct 2006 21:36:42 +0000 (GMT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gdvqz-0008Lp-12 for freebsd-questions@freebsd.org; Sat, 28 Oct 2006 23:36:33 +0200 Received: from 62-2-105-50.static.cablecom.ch ([62.2.105.50]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Oct 2006 23:36:33 +0200 Received: from wolf by 62-2-105-50.static.cablecom.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Oct 2006 23:36:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Alain Wolf Date: Sat, 28 Oct 2006 23:36:19 +0200 Lines: 65 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 62-2-105-50.static.cablecom.ch User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) X-Enigmail-Version: 0.94.1.0 OpenPGP: id=6CB1BC68; url=http://subkeys.pgp.net:11371/pks/lookup?op=get&search=0x579319666CB1BC68 Sender: news Subject: mount inside jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Oct 2006 21:36:44 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello dear list, My FreeBSD 6.0 has several Jails, all running fine. One of the Jails has installed Bacula Backup Software. And for its File Deamon (the backup storage server) I would like to mount and unmount the backup device (an external USB disk) inside the jails /mnt/ directory. But somehow ... # mount /dev/da0s1d /mnt .. keeps telling me "mount: /dev/da0s1d: Operation not permitted" There is no problem mounting and using the disk from outside the jail. If understood things right this has to do with /etc/devfs.rules so my settings ther are: ... # # Devices usually found in a jail. # [devfsrules_jail=4] add include $devfsrules_hide_all add include $devfsrules_unhide_basic add include $devfsrules_unhide_login # # Devices for backup storage jail. # [devfsrules_backup_jail=5] add include $devfsrules_jail add path 'da*s*' unhide and my jail deifintion in /etc/rc.conf looks like this: ... # Backup Storage Server jail_backup_rootdir="/jails/backup" jail_backup_hostname="backup.k18.ch" jail_backup_ip="192.168.30.46" jail_backup_exec="/bin/sh /etc/rc" jail_backup_devfs_enable="YES" jail_backup_devfs_ruleset="devfsrules_backup_jail" ... Any suggestions? Or is *mount* not possible at all in Jails? Or I am completly lost? Greetings. Alain -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFQ81TV5MZZmyxvGgRAiybAJ4zItY64Kq+7CUpfAFhbTEQBHY0GACg1P25 twNSOImWFfhSCUC7+0PHCMA= =nT0j -----END PGP SIGNATURE-----