Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #167245

Re: empty /proc

From Sven Joachim <svenjoac@gmx.de>
Newsgroups linux.debian.user
Subject Re: empty /proc
Date 2016-04-30 18:30 +0200
Message-ID <rtFWi-2dj-19@gated-at.bofh.it> (permalink)
References <rtDKN-Fh-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2016-04-30 10:06 -0400, Haines Brown wrote:

> I did a cross install of Jessie from Wheezy.

What does "cross install" mean?

> When the system is booted,
> there is a symlink from /etc/mtab to /proc/mounts, but /proc is empty or
> not mounted. This has some consequences.
>
> I mount proc:
>
>   # mount /proc
>
> Now mount displays what is mounted, and proc is mounted.
>
> mount: /proc: mount failed: Unknown error -1
>
> In my host Wheezy system, # mount shows proc as mounted, although there
> is no line to do it in fstab. But in the target Jessie disk, /proc is
> empty and not mounted unless this line is present in its fstab:
>
>    none /proc proc defaults 0 0
>
> My question is: a) how can my Wheezy system mount proc when there is no
> command fstab to do it?

It is the job of the init system to do this, there is no need for an
fstab entry.  With sysvinit, the script /etc/init.d/mountkernfs.sh
mounts /proc.  Systemd has a hardcoded list of mount points that it
always mounts, including /proc, /dev/pts, etc.

> b) why does my Jessie system not mount proc and
> thus populate /proc unless the line is present?

Hard to say, since this should certainly work.  Do you have the
/etc/init.d/mountkernfs.sh script and a symlink to it in /etc/rcS.d ?

Cheers,
       Sven

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

empty /proc Haines Brown <haines@histomat.net> - 2016-04-30 16:10 +0200
  Re: empty /proc Sven Joachim <svenjoac@gmx.de> - 2016-04-30 18:30 +0200

csiph-web