How to change reserved blocks in Linux partition

user@box:~$ sudo tune2fs -l /dev/md99
[sudo] password for user:
tune2fs 1.42.9 (4-Feb-2014)
Filesystem volume name:
Last mounted on: /mnt/md50
Filesystem UUID: 976a8655-2619-4587-878c-dab07f7b7652
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 244187136
Block count: 1953473536
Reserved block count: 97673676
Free blocks: 665750586
Free inodes: 213815139
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 558
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 4096
Inode blocks per group: 256
RAID stride: 128
RAID stripe width: 1048320
Flex block group size: 16
Filesystem created: Wed Dec 28 16:17:14 2016
Last mount time: Fri Jun 23 12:48:18 2017
Last write time: Fri Jun 23 12:48:18 2017
Mount count: 22
Maximum mount count: -1
Last checked: Wed Dec 28 16:17:14 2016
Check interval: 0 ()
Lifetime writes: 1565 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: 2474f801-44c2-4fe1-8809-34759b56a2fb
Journal backup: inode blocks

user@box:~$ sudo tune2fs -l /dev/md99|grep -i reserved
Reserved block count: 97673676
Reserved GDT blocks: 558
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)

Solution change to 2% reserved blocks instead of 5%

The -m2 means 2% change that to the percentage you want.

sudo tune2fs -m2 /dev/md99
tune2fs 1.42.9 (4-Feb-2014)
Setting reserved blocks percentage to 2% (39069470 blocks)



Tags:

reserved, linux, partitionuser, sudo, fs, dev, md, password, user, feb, filesystem, volume, nuser, mounted, mnt, uuid, dab, xef, revision, dynamic, features, has_journal, ext_attr, resize_inode, dir_index, filetype, needs_recovery, extent, flex_bg, sparse_super, large_file, huge_file, uninit_bg, dir_nlink, extra_isize, flags, signed_directory_hash, default, mount, user_xattr, acl, errors, os, inode, inodes, fragment, gdt, fragments, raid, stride, stripe, width, flex, wed, dec, fri, jun, maximum, interval, writes, gb, uid, gid, isize, desired, directory, hash, half_md, fe, fb, grep, percentage,

Latest Articles

  • Cisco Unified Communications Manager / CUCM IP 8.6,10,12 Install Error Solution
  • Ubuntu Debian Mint Linux SSHD OpenSSH Server Not Starting After Reboot Solution
  • nmap how to scan for all ports and not just the 1000 most common ports
  • Windows 7,8,10 and Server 2008, 2012, 2016, 2019 Read Only Attribute Won't Go Away
  • bind / named how to make a wildcard record and retain defined A records
  • Cisco Unified Communications Manager 12 Install Errors on Proxmox/KVM
  • Local Vs Universally Administered MAC Address NIC Refuses to come up
  • Cisco Unified Communications Manager 12 CUCM 12 - How To Enable Video Calling
  • Windows 7, 8, 10, Windows Server 2008, 2012, 2016, 2019 How To AC97 Audio Drivers and Other Unsigned Drivers
  • Cisco Unified Communications Manager / CUCM IP Telephony Definitions
  • tftp Linux xinetd verbose logging
  • Linux delete unused tap devices automatically
  • Linux qemu-kvm How To Enable Soundcard in Guestl
  • QEMU-KVM Windows and Server Guest Installs Mouse Tracking Pointer Location Solution
  • SSH Keep Alive To stop Disconnections
  • Linux How To Disable SATA NCQ For Better Performance
  • the sign-in method you're trying to use isn't allowed. For more info, contact your network administrator - solution for active directory
  • gsmartcontrol for Windows to Check the SMART S.M.A.R.T status
  • WebRTC Vulnerability Shows Local IP Address Even When Using a Proxy or VPN Firefox Fix And Disable Solution
  • chroot in Linux Howto Simple and Easy Guide