commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
..not guaranteed to always be accurate but fun to see how old you Linux installation is based on the root partitions file system creation date.
Find out the earliest installation time of a linux system by getting the / filesystem creation time. This example is only valid the os is installed on an ext2/3/4 filesystem.
This command changes the reserved space for privileged process on '/dev/sda' to 1 per cent.
the result of the command helped a check the Maximum file size and Maximum file system size.
Block size; MAX File size; Maximum file system size
1 KiB; 16 GiB ; 2 TiB
2 KiB ; 256 GiB ; 8 TiB
4 KiB ; 2 TiB ; 16 TiB
8 KiB[limits 1]; 2 TiB; 32 TiB
Does what summary says
According to tune2fs manual, reserved blocks are designed to keep your system from failing when you run out of space. Its reserves space for privileged processes such as daemons (like syslogd, for ex.) and other root level processes; also the reserved space can prevent the filesystem from fragmenting as it fills up. By default this is 5% regardless of the size of the partition.
Before doing this, back-up all data on any ext3 partitions that are to be converted to ext4.
After running previous command you MUST run fsck, is needed to return the filesystem to a consistent state.
fsck -pDf /dev/yourpartition
Edit /etc/fstab and change the 'type' from ext3 to ext4 for any partitions that are converted to ext4.
Very useful set of commands to know when your file system was created.