• # L'ordre du noyau

    Posté par (site web personnel) . En réponse au message Commande df. Évalué à 6.

    Je dirais suivant l'ordre des montages niveau noyau ( /proc/mounts étant une vision de l'état du noyau), d'après un test sur une machine et un coup d’œil au code de df.c (paquet Debian coreutils) appelant une fonction read_file_system_list :

    $ cat /proc/mounts 
    (...)
    udev /dev devtmpfs rw,nosuid,noexec,relatime,size=4055896k,nr_inodes=1013974,mode=755 0 0
    (...)
    tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,size=814876k,mode=755 0 0
    /dev/mapper/anthra-root / ext4 rw,noatime,errors=remount-ro 0 0
    securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
    tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
    tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
    tmpfs /sys/fs/cgroup tmpfs rw,mode=755 0 0
    (...)
    /dev/sdb2 /shared ext4 rw,noatime,stripe=32 0 0
    /dev/sda2 /boot ext2 rw,relatime 0 0
    /dev/mapper/anthra-home /home ext4 rw,relatime,stripe=32752 0 0
    (...)
    tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=814872k,mode=700,uid=1000,gid=1000 0 0
    (...)
    $ df 
    Sys. de fichiers blocs de 1K Utilisé Disponible Uti% Monté sur
    udev 4055896 0 4055896 0% /dev
    tmpfs 814876 2012 812864 1% /run
    /dev/mapper/anthra-root 48850208 43265404 3483108 93% /
    tmpfs 4074368 51568 4022800 2% /dev/shm
    tmpfs 5120 4 5116 1% /run/lock
    tmpfs 4074368 0 4074368 0% /sys/fs/cgroup
    /dev/sdb2 187708760 61468 178042472 1% /shared
    /dev/sda2 234153 91966 129695 42% /boot
    /dev/mapper/anthra-home 2825135664 1711085096 970518872 64% /home
    tmpfs 814872 132 814740 1% /run/user/1000