force recheck on reboot – fsck
If you want to force a fsck re-check on reboot, then just
touch /forcefsck
Related articles
Continue reading
If you want to force a fsck re-check on reboot, then just
touch /forcefsck
Continue reading

In my previous post on check filesystem regurlarly, I mentioned tune2fs. That tool give quite a lot of information. But just in case, you did not find what you are looking for in the output, then you can get much more information on these partitions with the dumpe2fs command.
Continue readingIf you are looking for the source of a mount and the various options used in the mount, then the quickest way to get that is ::
findmnt
By default, with no parameters, it lists all the mounts in a tree like view and all the options used to mount the path. It also lists the source of the mount.
By default again, it uses some capabilities of the terminal to show the tree which you can disable with the option “-a”.
Continue readingCouple of days back, I was getting the following error:
Directory inode 2362521 has an unallocated block #245823. Allocate?
And this continued for hours together and I was in a hurry. Did not really care about the error and all I wanted was to get rid of the error but for that I needed to get to the file/directory with inode number mentioned in the error and finally “find” command came to rescue:
Continue readingIt is always “Better safe than sorry” so, here are some things you
should do..
First check fstab, if you have partitions other than root then use UUID instead of device:
UUID=a8f13a0d-3f1f-42e4-b076-f44b4163306c /mnt/Backup ext4 defaults,relatime 1 2
Then entries for all your mounts should be like above.
Points to note here :
Disk is mounted using the UUID and not with /dev/sdXX. This ensures
that even if your disk ids change, you will be able to mount them. To
get the partition UUID, you can execute :
I think, like me, you would have faced a lot of situations, where you wanted to delete all the files or directories in a location, leaving only the required files/directories. So, I have a directory containing lots of files/directories and I want to delete most of them except some 5/10 of them, how to I do it.
I finally wrote a small script to do that. First save list of files that you do not want to delete in file called “listnames” and then execute the below script. This will give you the rm commands that you need to execute. If you want you can execute the rm command from the script, but to be able to review, I just have the commands echoed.
Continue readingIf you have a excel sheet with lot of formula’s and you are trying to audit them, then a simple solution is to press “ctrl+`” (i.e. control key with back tick). This will put the excel sheet in Formula auditing mode and hence all the cells will show the formula rather than the values which will make it easier to audit them. Hope that helps.