Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2007 05:02:26 +0100
From:      Alain Wolf <wolf@k18.ch>
To:        freebsd-questions@freebsd.org
Subject:   jails and mount
Message-ID:  <erdrsi$js$1@sea.gmane.org>

Next in thread | Raw E-Mail | Index | Archive | Help
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_<jname>_fstab and
jail_<jname>_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




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?erdrsi$js$1>