How Ubuntu/Linux defines value to force check disks/partitions on boot?

Inglebard

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.

  • I would like to know where the value to check errors is defined (here seems to be 30) ? And how many times the volume was mounted after the last check ?
  • I also would like to know why it's only on this server and not the others I have (there are configured almost identically except this one has logical volume) ?
Arronical

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] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How to check for a value in an array

분류에서Dev

how to display 2 fields value in same column : visual force

분류에서Dev

How to check for the presence of no value in a "params[:attribute]"

분류에서Dev

How to check only numbers in value - Lua

분류에서Dev

How to check radio button with radio button value

분류에서Dev

How to check if user input is not an int value

분류에서Dev

How to check if a value/property exist in JSON data

분류에서Dev

how to check for a null value in t-sql

분류에서Dev

How do I check the current boot parameter list in Linux?

분류에서Dev

How to I check whether a given variable value is of type string

분류에서Dev

How to check if a ResultSet of an AJAX call using JQuery has value

분류에서Dev

How can I check for the existance of an enum value in an array of Enums?

분류에서Dev

How to check file integrity of download if checksum value is not posted

분류에서Dev

How to check a Radio button from the value of a table of mySQL

분류에서Dev

How to check Key Value Observing in ObjectiveC for dictionary of arrays?

분류에서Dev

How to check a class for a certain value and then return a result through Tag Manager

분류에서Dev

How to check if a value exists within a C++ Map

분류에서Dev

Check whether /boot is a separate particion

분류에서Dev

Force value type when Angular form binding

분류에서Dev

Python - Force nan values to get a certain value

분류에서Dev

How to force PC to release IP?

분류에서Dev

How to force PC to release IP?

분류에서Dev

How to force any program to close?

분류에서Dev

Spring Boot API how to validate NONCE value sent in request header to avoid replay attacks

분류에서Dev

How to check for null widget value in dart ternary operator to display default image if null?

분류에서Dev

How to Check value id from Tag Input and remove count row is 0?

분류에서Dev

How to tick check-boxes on page load according to the value of radio button in jquery?

분류에서Dev

How do I loop through certain records, check a query, and conditionally assign field value using VBA?

분류에서Dev

jQuery to take value from input and check if it's right. If so, it should post how many are correct

Related 관련 기사

  1. 1

    How to check for a value in an array

  2. 2

    how to display 2 fields value in same column : visual force

  3. 3

    How to check for the presence of no value in a "params[:attribute]"

  4. 4

    How to check only numbers in value - Lua

  5. 5

    How to check radio button with radio button value

  6. 6

    How to check if user input is not an int value

  7. 7

    How to check if a value/property exist in JSON data

  8. 8

    how to check for a null value in t-sql

  9. 9

    How do I check the current boot parameter list in Linux?

  10. 10

    How to I check whether a given variable value is of type string

  11. 11

    How to check if a ResultSet of an AJAX call using JQuery has value

  12. 12

    How can I check for the existance of an enum value in an array of Enums?

  13. 13

    How to check file integrity of download if checksum value is not posted

  14. 14

    How to check a Radio button from the value of a table of mySQL

  15. 15

    How to check Key Value Observing in ObjectiveC for dictionary of arrays?

  16. 16

    How to check a class for a certain value and then return a result through Tag Manager

  17. 17

    How to check if a value exists within a C++ Map

  18. 18

    Check whether /boot is a separate particion

  19. 19

    Force value type when Angular form binding

  20. 20

    Python - Force nan values to get a certain value

  21. 21

    How to force PC to release IP?

  22. 22

    How to force PC to release IP?

  23. 23

    How to force any program to close?

  24. 24

    Spring Boot API how to validate NONCE value sent in request header to avoid replay attacks

  25. 25

    How to check for null widget value in dart ternary operator to display default image if null?

  26. 26

    How to Check value id from Tag Input and remove count row is 0?

  27. 27

    How to tick check-boxes on page load according to the value of radio button in jquery?

  28. 28

    How do I loop through certain records, check a query, and conditionally assign field value using VBA?

  29. 29

    jQuery to take value from input and check if it's right. If so, it should post how many are correct

뜨겁다태그

보관