umount at reboot/halt

johnbock

Mitglied
Mitglied seit
2 Mrz 2008
Beiträge
310
Punkte für Reaktionen
0
Punkte
0
I can't find where partitions are being umounted at reboot or halt.

That's not critical for non-cached filesystems, but others like ext2/ext3 and ntfs that potentially deadly... AFAIK no partitions are mounted with 'sync' option.
 
Zuletzt bearbeitet:
Is this done in inittab or within the init-Process?

Greets Oliver
 
Is this done in inittab or within the init-Process?

Greets Oliver

I think this should be done in /var/post_install in the var.tar file. At least the dsl stuff is done there. It could be done with something like
Code:
$ diff -Naur var/post_install.orig var/post_install
--- var/post_install.orig	2008-05-11 18:47:34.000000000 +0200
+++ var/post_install	2008-05-11 18:48:32.000000000 +0200
@@ -1,4 +1,8 @@
 # ! /bin/sh
+if [ -x /etc/hotplug/storage ]; then
+	echo "stopping storage devices..."
+	/etc/hotplug/storage stop
+fi
 if [ -x /etc/init.d/rc.dsl.sh ] ; then
     echo "unload dsl and dependend driver .."
     /etc/init.d/rc.dsl.sh stop

This needs to be tested though...
 
Zuletzt bearbeitet:
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.