Re: nullfs-autopsy after crash
From: Dmitry Morozovsky (marck_at_rinet.ru)
Date: 05/10/04
- Previous message: Marian Hettwer: "O2micro 6912 / PCCARD not working"
- In reply to: Tim Robbins: "Re: nullfs-autopsy after crash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 10 May 2004 18:42:17 +0400 (MSD) To: Tim Robbins <tjr@freebsd.org>
On Mon, 10 May 2004, Tim Robbins wrote:
TR> > /bin on /usr/tmp/jail/bin (null, local, read-only)
TR> > /sbin on /usr/tmp/jail/sbin (null, local, read-only)
TR> > /etc on /usr/tmp/jail/etc (null, local, read-only)
TR> > /dev on /usr/tmp/jail/dev (null, local, read-only)
TR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TR>
TR> Accessing special (non-directory, non-regular) files through nullfs
TR> is known to cause panics. You'll need to create a dev directory
TR> for each jail and populate it with makedev.
... and it seems appropriate for me to do this via mfs like
JDIR=/ar/J/j224
mount_mfs -s 256 -i 768 -o nosuid swap ${JDIR}/dev > /dev/null 2>&1
# XXX mfs use 1777 mode so clean this up
chmod 755 ${JDIR}/dev
rm -rf ${JDIR}/dev/ >/dev/null 2>&1
cd ${JDIR}/dev
sh /dev/MAKEDEV std pty0
rm mem kmem pci io klog console
ln -sf null mem
ln -sf null kmem
ln -sf null console
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
- Previous message: Marian Hettwer: "O2micro 6912 / PCCARD not working"
- In reply to: Tim Robbins: "Re: nullfs-autopsy after crash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]