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 :
Some time back, I was working on some script for logging and I wanted to change the class to function like this:
$logger->Debug("Test string"); loggerFunc("Debug", "Test String");
As you can see, this change could be quite frustrating if you have quite a few references. And thus vim comes to rescue.
Simple map like ::
:map ,mm :s/(.*)$logger->(.*)((.*)).*/1loggerFunc("2",3);/
and then I can do “/$logger->” and then “n” to go to next match. Just do “,mm” and the line is re-factored.
Continue readingpkgwat is a nice utility to search the fedora packages websearch.
Description : Pronounced "package WAT", pkgwat is a fast CLI tool for querying : the fedora packages webapp. : https://apps.fedoraproject.org/packages/ : : You can make its search even better by helping us tag packages. : https://apps.fedoraproject.org/tagger
And to search for a package, you can use ::
pkgwat search pkgwat -h # get help on package.
Continue reading