Subject: Re: Unmount tmpfs before removing swap?
To: Michael van Elst <firstname.lastname@example.org>
From: Steven M. Bellovin <email@example.com>
Date: 11/29/2005 07:45:38
In message <firstname.lastname@example.org>, Michael van Elst writes:
>email@example.com (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