Subject: Re: Unmount tmpfs before removing swap?
To: None <>
From: Michael van Elst <>
List: current-users
Date: 11/29/2005 06:42:56 (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