Yesterday I was a little bit scared when I saw this error message on a production server when connecting to ssh :
*** /dev/sda1 will be checked for errors at next reboot ***
I thought there were errors on the system, but here is the result :
/dev/mapper/name--name1--vg-root : propre, 1460579/60497920 fichiers, 57725191/241971200 blocs
/dev/sda1 a été monté 30 fois sans avoir été vérifié, vérification forcée.
Everything seems fine.
The dumpe2fs
command is the one to get this information for you, so long as you're using an ext*
filesystem. Ubuntu tends to use ext4 as default. I tend to use it with the -h
option, to only output the summary. This contains the most useful information. To get the info you require, type:
dumpe2fs -h /dev/sda1
'Mount count', and 'Maximum mount count' are the fields you're looking for, but 'Check interval' also influences disk checks based on time. I've found that if you cancel a disk check 'Maximum mount count' changes to -1, so no disk checking will take place based on number of mounts.
To change the maximum mount count or interval, use the tune2fs
command the -c
option controls max mount count, an -i
controls interval. man tune2fs
contains more info about this command.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다