Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #167240 > unrolled thread
| Started by | Haines Brown <haines@histomat.net> |
|---|---|
| First post | 2016-04-30 16:10 +0200 |
| Last post | 2016-04-30 18:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.user
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
| From | Haines Brown <haines@histomat.net> |
|---|---|
| Date | 2016-04-30 16:10 +0200 |
| Subject | empty /proc |
| Message-ID | <rtDKN-Fh-1@gated-at.bofh.it> |
I did a cross install of Jessie from Wheezy. 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? b) why does my Jessie system not mount proc and thus populate /proc unless the line is present? Haines Brown
[toc] | [next] | [standalone]
| From | Sven Joachim <svenjoac@gmx.de> |
|---|---|
| Date | 2016-04-30 18:30 +0200 |
| Message-ID | <rtFWi-2dj-19@gated-at.bofh.it> |
| In reply to | #167240 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web