[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: empty /proc



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


Reply to: