zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Increase number of disk mounts

June 14, 2011 by Igor Drobot Leave a Comment

Many home users power off their home computers and servers when they are not being used. Each of you had already this problem, you need very quickly your PC or server and you press the power-ON button and now you can wait.
File system Check!
The check seems to take forever, you can go and make coffee, and the system boot won’t resume until the check is over.

This will show you your actual mount count and the maximal value

1
2
3
tune2fs -l /dev/sda2 | grep count
Mount count: 17
Maximum mount count: 37

tune2fs -l /dev/sda2 | grep count Mount count: 17 Maximum mount count: 37

If your disk reached maximal mount count, it will be check forced.

This trick will help you to postpone the next check:

1
2
3
tune2fs -c 42 /dev/sda2
tune2fs 1.41.12 (17-May-2010)
Setting maximal mount count to 42

tune2fs -c 42 /dev/sda2 tune2fs 1.41.12 (17-May-2010) Setting maximal mount count to 42

Now you can be free to restart your system some more times:)

1
2
3
tune2fs -l /dev/sda2 | grep count
Mount count: 17
Maximum mount count: 42

tune2fs -l /dev/sda2 | grep count Mount count: 17 Maximum mount count: 42

Filed Under: Debian, Linux Tagged With: Debian, disk mount, filesystem check, fsck, mount

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *