From owner-freebsd-questions@FreeBSD.ORG Tue Feb 20 04:02:43 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 26A5F1723EC for ; Tue, 20 Feb 2007 04:02:43 +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 D8CAA13C47E for ; Tue, 20 Feb 2007 04:02:42 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HJMD3-0004hr-3k for freebsd-questions@freebsd.org; Tue, 20 Feb 2007 05:02:33 +0100 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 ; Tue, 20 Feb 2007 05:02:33 +0100 Received: from wolf by 62-2-105-50.static.cablecom.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Feb 2007 05:02:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Alain Wolf Date: Tue, 20 Feb 2007 05:02:26 +0100 Lines: 34 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 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.9 (Windows/20061207) X-Enigmail-Version: 0.94.2.0 OpenPGP: id=6CB1BC68; url=http://restkultur.ch/personal/wolf/wolf@restkultur.ch.asc Sender: news Subject: jails and mount 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: Tue, 20 Feb 2007 04:02:43 -0000 Hello I would like to mount and unmount storage devices for backups from inside a jail. I asked this already in October but got no answer. Since I use 6.2 now I even have more questions. Q1)If I unhide a device (i.e external drive) by rule for a jail and I can see it from inside the jail, why can't I mount it from inside the jail? What I tried from inside the jail ... # ls /dev/da0* /dev/da0 /dev/da0s1 /dev/da0s1c /dev/da0s1d # mount -t ufs /dev/da0s1d /media/usbdisk /dev/da0s1d: Operation not permitted Q2) By reading man rc.conf(5) ... There are new options like jail__fstab and jail__mount_enable, I tried to use them for a one of my jails, but I don't see any effect. What I tried from outside the jail # cat /etc/fstab.backup /dev/da0s1d /mnt/usbdisk ufs rw,noauto 2 2 # cat /etc/rc.conf | grep jail.backup jail_backup_rootdir="/jails/backup" jail_backup_hostname="backup.example.com" jail_backup_ip="192.168.0.2" jail_backup_mount_enable="YES" Anybody on this list knows more about jails then what manpage and handbook tells? Thanks for any information Alain Wolf