Daniels Lab Wiki

It is worth noting that.

Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux:console:mounting-drives

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
linux:console:mounting-drives [2015/09/07 00:57] – created daniellinux:console:mounting-drives [2016/04/26 01:09] (aktuell) – [Set filesystem check intervals] daniel
Zeile 4: Zeile 4:
  
 <code bash>sudo fdisk -l</code> <code bash>sudo fdisk -l</code>
 +[[http://man.cx/fdisk|fdisk manpage]]
 +
 <code bash>sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL</code> <code bash>sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL</code>
-or short 
 <code bash>sudo lsblk -f</code> <code bash>sudo lsblk -f</code>
 +[[http://manpages.ubuntu.com/manpages/trusty/en/man8/lsblk.8.html|lsblk manpage]]
 +
 +===== Do a filesystem check =====
 +
 +Unmount partition first.
 +<code bash>fsck /dev/sdb5</code>
 +[[http://linux.die.net/man/8/fsck|fsck manpage]]
 +
 +===== force a filesystem check on next boot =====
 +
 +Create a file called forcefsck in the / directory
 +<code bash>touch /forcefsck</code>
 +[[http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/]]
 +
 +===== Show filesystem check intervals =====
 +
 +<code bash>tune2fs -l <device></code>
 +
 +===== Set filesystem check intervals =====
 +
 +<code bash>
 +sudo vi /etc/fstab
 +# / is on /dev/sda1
 +UUID=123abcd1-a123-1a12-1234-a1a1234ab123 /               ext4    errors=remount-ro 0       1
 +
 +# 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
 +</code>
 +[[https://www.thomas-krenn.com/de/wiki/FSCK_Best_Practices#Periodischen_FSCK_aktivieren]]
linux/console/mounting-drives.1441580270.txt.gz · Zuletzt geändert: 2015/09/07 00:57 von daniel

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki