Unmounting / at reboot in 2.1.120+: Why

Petr Vandrovec Ing. VTEI (VANDROVE@vc.cvut.cz)
Tue, 8 Sep 1998 12:21:14 MET-1


Hello,
nicholas@binary9.net wrote:
> 4. unmounting / at shutdown/reboot doesn't work

It is caused by dynamic linked init: It opens /etc/ld.so.conf and
has it open for all the time. But ldconfig (run at startup) unlinks
that file, but space is not reclaimed until file is closed - and file
is never closed.
In old kernel, you'll get "fixed DTIME" after next fsck, new kernel
does not allow you to remount / R/O or to unmount it, unfortunately.
There are two possible solutions:
1) reworked ld.so loader to close that file (but then there are still
issues after upgrading libc)
2) relink /sbin/init static
I think that (2) is the best solution, it has only one disadvantage - my
old init were 22KB long, my new, static, is 220KB long :-( But it works.
You can check this by
ls -l /proc/1/fd/*
If you see
lrwx--------- <something> 5 -> /etc/ld.so.conf (deleted)
you are in problems.
Best regards,
Petr Vandrovec
vandrove@vc.cvut.cz

P.S.: Glibc2.0.6c && sysvinit-2.74

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html