🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #20101

Re: /dev/hda1: Inode 2 ref count is 20, should be 21. FIXED.

#20101
From: Sven Kirmess
Date: Wed, 03 Nov 1999 00:00
64 lines
3651 bytes
Matthias Scherrer wrote:

> Nun, inode 2 ist das / Verzeichnis (-> ls -lai und du siehst es).

Stimmt... :-)

Was ist den 1?

> Jedes Dir, welches du im / Anlegst bekommt ein .. Verzeichnis,
> welches auf inode 2 zeigt. Mit jedem mkdir wo du (im /) machst,
> steigt der ref.counter. (beim ls -li ist die 1. Zahl die inode und die
> 2. der ref counter). Steht z.B. der ref counter auf 23, dann hast du
> 23 directories (ohne . und ..) im / .

----------------------------------------------------------------------
Odo:~ # l -li /
total 623
      2 drwxr-xr-x  20 root     root         1024 Nov  2 23:25 ./
      2 drwxr-xr-x  20 root     root         1024 Nov  2 23:25 ../
    162 -rw-r--r--   1 root     root       153331 Oct 22 18:38 System.map
   6208 drwxr-xr-x   2 root     root         1024 Sep 16 21:45 bin/
   6209 drwxr-xr-x   2 root     root         1024 Oct 23 02:56 boot/
 272598 drwxr-xr-x   2 root     root         1024 Sep 16 21:30 cdrom/
   4162 drwxr-xr-x   6 root     root        26624 Nov  2 19:11 dev/
 782439 drwxr-xr-x   2 root     root         1024 Oct 20 15:31 dvdram/
   6170 drwxr-xr-x  37 root     root         4096 Nov  2 19:11 etc/
 180279 drwxr-xr-x   2 root     root         1024 Sep 16 21:30 floppy/
 272601 drwxr-xr-x   6 root     root         1024 Oct 23 15:00 home/
 272473 drwxr-xr-x   5 root     root         2048 Sep 16 21:46 lib/
     11 drwxr-xr-x   2 root     root         1024 Sep 18 07:04 lost+found/
 272602 drwxr-xr-x   2 root     root         1024 Sep 16 21:30 mnt/
   6166 drwxr-xr-x   6 root     root         1024 Sep 21 02:24 old/
 180281 drwxr-xr-x   9 root     root         1024 Sep 16 22:13 opt/
      1 dr-xr-xr-x  84 root     root            0 Nov  2 20:10 proc/
 272478 drwx--x--x   6 root     root         1024 Oct 24 02:46 root/
   6216 drwxr-xr-x   5 root     root         3072 Oct  4 01:34 sbin/
   6167 drwxrwxrwt   2 root     root         4096 Nov  2 23:25 tmp/
 272567 drwxr-xr-x  26 root     root         1024 Sep 16 23:31 usr/
   6168 drwxr-xr-x  24 root     root         1024 Sep 26 19:25 var/
    161 -rw-r--r--   1 root     root       423015 Oct 22 18:38 vmlinuz
Odo:~ #

----------------------------------------------------------------------


Wenn ich das richtig interpretiere ist der ref count f�r / wieder auf 20, obwohl
er doch 21 sein sollte...? :-)

> Ich kenne ext2 zu wenig, aber nehmen wir an, du hast ein paar devices
> gemountet und das ext2 merkt sich, dass insgesamt 21 inodes auf inode 2
> zeigen.

Ich habe nur:
hda1: /
hda2: swap

und dann wird noch proc gemountet, und ein Floppy und ein DVD-RAM bei bedarf...

> Nun wird beim Absturz z.B. /opt nicht ge"unmount"ed, ext2 merkt sich
> die Zahl 21. Beim hochfahren jedoch fehlt /opt (noch, es wird z.B. erst
> in runlevel 2 gemounted). Deshalb ist der ref counter auf 20, ext2
> "denkt" jedoch, er sollte auf 21 sein.

Sven
Technical Details
Message-ID: <381F7983.94142F88@gmx.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <381B8D08.F29DA658@gmx.net> <7vkusm$k0s$1@nnrp1.deja.com> <381E3116.E7F6D285@gmx.net> <p6rlv7.qc.ln@amiga.pulsar>

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII
X-Google-Thread: f4b73,6afaa8d0a7f5c71
X-Google-Attributes: gidf4b73,public
From: Sven Kirmess <Sven.Kirmess@gmx.net>
Subject: Re: /dev/hda1: Inode 2 ref count is 20, should be 21. FIXED.
Date: 1999/11/03
Message-ID: <381F7983.94142F88@gmx.net>
X-Deja-AN: 543747068
Content-Transfer-Encoding: 8bit
References: <381B8D08.F29DA658@gmx.net> <7vkusm$k0s$1@nnrp1.deja.com> <381E3116.E7F6D285@gmx.net> <p6rlv7.qc.ln@amiga.pulsar>
X-Accept-Language: de-CH,de,de-AT,en
Content-Type: text/plain; charset=iso-8859-1
Y-Complaints-To: sven.kirmess@gmx.net
X-Trace: fu-berlin.de 941590100 296598 194.209.30.6 (16 [2381])
Organization: Kirmess
Mime-Version: 1.0
Newsgroups: ch.comp.os.linux