Hi! On Sun, Apr 27, 2008 at 04:47:53PM +0200, Torsten wrote: >>>OK, thank you, that got me onto the right track, now I think I know what >>>the problem is: mount_mfs. >>>/sbin/mount_mfs -s 90000 swap /mnt >>>Is there a way to have devices under that mountpoint? >>Of course, just mknod(8) them (each time after creating the mfs),
>Thanks everybody for your help. For whatever reason it did not work (for >me) to just copy (pax) the /dev/* files from / to my ramdisk-mountpoint >(/mnt). The files were there but always caused a "failed to open" error >when used from within the chrooted environment. It also did not work to >first chroot and then (within the chroot environment) create the files >with mknod. The latter is clear: mknod is blocked even for root while chrooted. See the kernel sources, /usr/src/sys/kern/vfs_syscalls.c, function sys_mknod(): if ((error = suser(p, 0)) != 0) return (error); If you aren't root, forget it if (p->p_fd->fd_rdir) return (EINVAL); If you're inside a chroot, fail with error code EINVAL. >What worked was first creating the files with mknod and then chroot. *nods* You can also use /dev/MAKEDEV for creating the devices. Kind regards, Hannah.