From owner-freebsd-fs Sun Jun 25 11:21:20 2000 Delivered-To: freebsd-fs@freebsd.org Received: from lafontaine.cybercable.fr (lafontaine.cybercable.fr [212.198.0.202]) by hub.freebsd.org (Postfix) with SMTP id A91F237BC28 for ; Sun, 25 Jun 2000 11:19:47 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 3060166 invoked from network); 25 Jun 2000 18:19:44 -0000 Received: from r224m65.cybercable.tm.fr (HELO gits.dyndns.org) ([195.132.224.65]) (envelope-sender ) by lafontaine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 25 Jun 2000 18:19:44 -0000 Received: (from root@localhost) by gits.dyndns.org (8.9.3/8.9.3) id UAA16003 for clefevre@citeweb.net; Sun, 25 Jun 2000 20:19:40 +0200 (CEST) (envelope-from root) Posted-Date: Sun, 25 Jun 2000 20:19:40 +0200 (CEST) To: "Mark W. Krentel" Cc: clefevre@citeweb.net, freebsd-emulation@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Reply-To: clefevre@citeweb.net, krentel@dreamscape.com, freebsd-emulation@FreeBSD.ORG Subject: Re: panic running linux binaries from ext2fs References: <200006250608.CAA15375@dreamscape.com> Reply-To: clefevre@citeweb.net X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C From: Cyrille Lefevre Date: 25 Jun 2000 20:19:35 +0200 In-Reply-To: "Mark W. Krentel"'s message of "Sun, 25 Jun 2000 02:08:58 -0400 (EDT)" Message-ID: Lines: 57 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "Canyonlands" Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Mark W. Krentel" writes: > > how is mounted your linux filesystem ? > > is it mounted to /linux or to /compat/linux ? > > if /linux, do you have a symlink like /compat/linux -> /linux ? > > I use the linux_base-6.1 port, which installs some 57 Meg on > /compat/linux. But all that's on /usr, a UFS partition. > > My machine dual boots between Linux and Freebsd, so the Linux > partitions are on a different slice. I mount Linux's / partition on > /mnt, usually read-only to reduce the number of fsck's after each > panic. > > # Device Mountpoint FStype Options Dump Pass# > /dev/da0s1 /mnt ext2fs ro,noauto 0 0 > > > how do you run your linux application ? > > /linux/bin/whatever or /compat/linux/bin/whatever ? > > I'm not running the binaries in /compat/linux. I cd to /mnt/bin > (Linux's /bin) and run ./ls. I guess the problem is here. if the Linux binaries aren't branded, and not run from /compat/linux, FreeBSD run them in the FreeBSD kernel space, not the Linux kernel space. since the syscalls are differents... > > /linux/bin/whatever may failed if not branded to Linux, > > while /compat/linux/bin/whatever should work. > > try "brandelf -t Linux /linux/bin/whatever" before to run /linux/bin/whatever > > and make the symlink /compat/linux to /linux if it doesn't exists. > > I haven't branded them because I wasn't sure how Linux would react to > the brand. Besides, it doesn't seem to have trouble identifying that > they are Linux binaries. But I'll try the experiment tomorrow and > report if there's any difference. what says "brandelf /mnt/bin/ls" ? is there the Linux keyword somewhere ? if no, you probably need to brand them or don't complain. > All good ideas that could cause emulation to fail, but I don't see > where they would cause a panic. why don't you mount your Linux partition on top of /compat/linux ? so, you don't need to have the linux-base port installed. and all should work fine. > P.S. I know I announced this to both -emulation and -fs, but let's > restrict the follow-ups to one or the other, probably -emulation. fu2 freebsd-emulation@FreeBSD.ORG Cyrille. -- home:mailto:clefevre@no-spam.citeweb.net Supprimer "no-spam." pour me repondre. work:mailto:Cyrille.Lefevre@no-spam.edf.fr Remove "no-spam." to answer me back. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message