FreeBSD and linux emulator problem

Okay... after having followed SIFE's very excellent instructions above I am pretty sure that I have now managed to get linux_dist-gentoo-stage3 correctly installed on my now-freshly-updated-to-8-STABLE installation.

I'm a bit confused about how to use linprocfs and linsysfs though. The man pages say that these should be mounted at /compat/linux. Attempting to mount either filesystem there though results in the following:
Code:
mount: /usr/compat/linux: No such file or directory

Upon closer inspection the port appears to have created the following:
> /compat -symbolic link-> /usr/compat which is empty
> /usr/local/gentoo-stage3 which appears to contain most of a root filesystem including a /sys but not a /proc

With respect to the information in the "Linux file/directory tricks" section of http://www.leidinger.net/blog/category/freebsd/linuxolator/ -- do I need to figure out how to mount linproc and linsys at /compat/linux as all documentation suggests? Or should I mount linproc and linsys at /usr/local/gentoo-stage3?
 
I decided to utilize linux_dist-gentoo-stage3 after I read the "Constraints regarding chroot into /compat/linux" section of http://www.leidinger.net/blog/2010/09/28/the-freebsd-linuxulator-explained-for-users/ and determined that I actually need to chroot into the linux environment for what I need to do with it.

Yes I read linprocfs() and linsysfs() which are what lead me to try to mount in /compat/linux... I described the result in the previous post. The way that linux_dist-gentoo-stage3 installed its files in /usr/local/gentoo-stage3 as I described in previous post causes me to wonder if the man pages have fallen behind the design of the port.
 
I'm not quite sure what a minimal install is wblock but I installed this system from 8.2 RELEASE. A couple of days ago I updated sources to 8-STABLE and installed a new world with the sequence described in http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html (still shocked that actually worked on the first attempt).

I have made no changes to /usr/compat which (as I described in the previous post) is empty.

The key question that I have here is where linproc and linsys need to be mounted in order for linux_dist-gentoo-stage3 to work as designed.
 
Okay the author of the http://www.leidinger.net/blog/2010/09/28/the-freebsd-linuxulator-explained-for-users/ article was nice enough to respond to my question.
I don't have a login there, so here's the info via mail. Please add it to the thread in the forum.

The linux-dist ports are not designed to be a replacement for the linux_base ports. So if the intend is to use it like this: the user experience will be not as expected (linking from /compat/linux to /usr/local/gentoo-stage3 is not enough, the linux_base ports make some modifications to the linux-bits to have a better "integrated into FreeBSD"-experience).

If the intend is to have some kind of full-linux-system on FreeBSD (chrooting into it and then working in this linux environment), you can link the linsysfs and linprocfs into /usr/local/gentoo-stage3 (create the corresponding directories if they are not there). Again (as it is important): chrooting into this env and working in it is OK, using it as a replacement of the linux_base ports will give unexpected results.

Bye,
Alexander.
Thanks Alexander!
 
Hey, nice thread. I think /proc is becoming obsolete, though; or maybe it is considered obsolete already. Now, in Linux, everything happens in /sys, AFAIK from experience in ArchLinux (it uses fairly new kernels).
 
Back
Top