linux:console:mounting-drives
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| linux:console:mounting-drives [2015/09/07 01:04] – daniel | linux:console:mounting-drives [2016/04/26 01:09] (aktuell) – [Set filesystem check intervals] daniel | ||
|---|---|---|---|
| Zeile 9: | Zeile 9: | ||
| <code bash> | <code bash> | ||
| [[http:// | [[http:// | ||
| + | |||
| + | ===== Do a filesystem check ===== | ||
| + | |||
| + | Unmount partition first. | ||
| + | <code bash> | ||
| + | [[http:// | ||
| + | |||
| + | ===== force a filesystem check on next boot ===== | ||
| + | |||
| + | Create a file called forcefsck in the / directory | ||
| + | <code bash> | ||
| + | [[http:// | ||
| + | |||
| + | ===== Show filesystem check intervals ===== | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | ===== Set filesystem check intervals ===== | ||
| + | |||
| + | <code bash> | ||
| + | sudo vi /etc/fstab | ||
| + | # / is on /dev/sda1 | ||
| + | UUID=123abcd1-a123-1a12-1234-a1a1234ab123 / | ||
| + | |||
| + | # Setting maximal mount count to 60 | ||
| + | sudo tune2fs -c 60 /dev/sda1 | ||
| + | |||
| + | #Setting interval between checks to 2592000 seconds | ||
| + | sudo tune2fs -i 30d /dev/sda1 | ||
| + | </ | ||
| + | [[https:// | ||
linux/console/mounting-drives.1441580665.txt.gz · Zuletzt geändert: 2015/09/07 01:04 von daniel