mount inside jails

Alain Wolf wolf at k18.ch
Sat Oct 28 21:36:44 UTC 2006


-----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-----



More information about the freebsd-questions mailing list