Date: Sat, 28 Oct 2006 23:36:19 +0200 From: Alain Wolf <wolf@k18.ch> To: freebsd-questions@freebsd.org Subject: mount inside jails Message-ID: <ei0igk$cm1$1@sea.gmane.org>
next in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ei0igk$cm1$1>