
Originally Posted by
ethana2
So wait, is 5% of the ext2 partition on my flash drive 'reserved for root'?
If you didn't specify different options than the default, then yes, 5% of that filesystem space is reserved for usage by UID 0 (root user).
To find out how much space is currently reserved on your filesystem, try this several steps:
The total number of blocks in your filesystem is:
Code:
# dumpe2fs /dev/$your_partition_device_file | grep 'Block count'
Each block is by default 4 Kilobytes (4096 bytes), to find out your block size:
Code:
# dumpe2fs /dev/$your_partition_device_file | grep 'Block size'
The number of currently reserved blocks is:
Code:
# dumpe2fs /dev/$your_partition_device_file | grep 'Reserved block count'
The UID (user ID) of the user who the space is reserved for is:
Code:
# dumpe2fs /dev/$your_partition_device_file | grep 'Reserved blocks uid'
The GID (group ID) of the group which the space is reserved for is:
Code:
# dumpe2fs /dev/$your_partition_device_file | grep 'Reserved blocks gid'
At anytime you can assign the reserved space to a different UID, or set 0 reserved blocks if you'd like none.
To change reserved space UID:
Code:
# tune2fs -u $new_uid /dev/$your_partition_device_file
To change reserved space GID:
Code:
# tune2fs -g $new_gid /dev/$your_partition_device_file
To change reserved space block number:
Code:
# tune2fs -r $new_reserved_block_number /dev/$your_partition_device_file