Daniels Lab Wiki

It is worth noting that.

Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux:console:mounting-drives

Mounting Drives

List available drives

sudo fdisk -l

fdisk manpage

sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
sudo lsblk -f

lsblk manpage

Do a filesystem check

Unmount partition first.

fsck /dev/sdb5

fsck manpage

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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki