Subject: Re: Unmount tmpfs before removing swap?
To: Michael van Elst <mlelstv@serpens.de>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: current-users
Date: 11/29/2005 07:45:38
In message <dmgt9f$kqa$1@serpens.de>, Michael van Elst writes:
>mange@freemail.hu (Magnus Henoch) writes:
>
>>> AFAIK turning off swapping to "proper" block-devices is one of the
>>> last things done during shutdown, while turning off swapping to
>>> files happens much much earlier.
>
>>According to the messages during shutdown, swap is indeed removed
>>before file systems are unmounted.
>
>On startup we do:
>
>swap1                   swap on block devices
>mountcritlocal          critical local filesystems
>mountcritremote         critical remote filesystems
>mountall                mount everything else        /tmp gets mounted here
>swap2                   swap on files
>
>On shutdown however we do:
>
>swap1                   remove swap from block devices
>
>The filesystems are then unmounted by the kernel
>

One important note: MFS file systems are forcibly unmounted earlier, 
when the mount process is killed, even if you're just going to 
single-user mode in which case other umounts don't take place.

		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb