DragonFly users List (threaded) for 2010-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: missing file in Linux /proc
Pierre Abbat <phma@phma.optus.nu> wrote:
> On Thursday 04 February 2010 09:07:24 Oliver Fromme wrote:
> > Pierre Abbat <phma@phma.optus.nu> wrote:
> > > I was poking around in /compat/linux and saw a file /etc/mtab. I
> > > catted it and got a "no such file" error. It's a symbolic link to
> > > /proc/mounts, which does not exist.
> >
> > Do you have linprocfs mounted?
>
> Yes. Here's what's in it:
> 0 2442 366 700 766 770 778 916 cpuinfo stat
> 1 2444 664 739 767 771 779 918 loadavg uptime
> 212 2445 678 746 768 772 790 919 meminfo version
> 226 2770 682 765 769 773 792 9533 self
Ok ... FreeBSD got "mtab" and "mounts" (which have the same
content) in linprocfs in 2001, so I thought that DFly BSD
had it, too. Anyway, shouldn't be difficult to port over.
If you need that file to make a linux application happy,
it is sufficient to put some static content in compat/linux/
etc/mtab. It looks like this:
/dev/ad0s1a / ufs rw 0 0
devfs /dev devfs rw 0 0
/dev/ad0s1d /var ufs rw,nosuid 0 0
/dev/ad0s1e /usr ufs rw 0 0
/dev/ad0s1f /usr/tmp ufs rw 0 0
/dev/md0 /tmp ufs rw,nosuid 0 0
venus:/home /home nfs rw,nosuid 0 0
venus:/trash /trash nfs rw,nosuid 0 0
proc /proc proc rw 0 0
Should be trivial to generate with a short awk script.
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]