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:
Kostenlos!

Statistik des Forums

Themen
248,917
Beiträge
2,305,040
Mitglieder
378,638
Neuestes Mitglied
Patrick89