linux:console:mounting-drives
Inhaltsverzeichnis
Mounting Drives
List available drives
sudo fdisk -l
sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
sudo lsblk -f
Do a filesystem check
force a filesystem check on next boot
Create a file called forcefsck in the / directory
touch /forcefsck
http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/
Show filesystem check intervals
tune2fs -l <device>
Set filesystem check intervals
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
https://www.thomas-krenn.com/de/wiki/FSCK_Best_Practices#Periodischen_FSCK_aktivieren
linux/console/mounting-drives.txt · Zuletzt geändert: 2016/04/26 01:09 von daniel