On Tuesday, 7 October 2025 15:04:27 British Summer Time Dale wrote: > Howdy, > > As most everyone knows, I have some large file systems here. Mostly > videos. These are encrypted until I open/unlock them. So, when I am on > those rare occasions booting up, there's no way to run fsck on them > automatically. I basically have two questions on this. 1: How often > should I open but not mount the file system and run fsck on it? Once a > month, two months, six months, a year or what.
This is just an opinion, nothing more: It depends on the number of mount/ unmount operations and the hours of usage. Run 'tune2fs -l' to check what it does by default. Then take a look at /etc/conf.d/fsck in case you want to run fsck at shutdown as opposed to startup and add fsck service to your desired runlevel. Personally, I keep an eye on dmesg and run fsck manually if needed and depending on the fs format. > 2: Also, what is a > command that you use that will fix most things without asking a lot of > questions but not do anything that will damage or potentially damage a > file? Basically, what command would you use for a situation like this? > The man page shows a option for all 'yes' but there may be times when > 'yes' isn't a good idea. I'm wondering if someone has came up with a > way to handle this with some option I'm not aware of. I don't run fsck without looking at its output. Asking it to fix things when errors are reported is something I will run *after* I have taken a backup - just in case. > Right now I use the command e2fsck -pf /dev/mapper/<mount point here> to > check it but it ignores some things that it would usually fix if I were > being asked first. Something about things could be smaller. It's > usually a LOT of them. I'd like those to be corrected as well. Maybe > running the check twice with different options will fix it all???? > > Current info. > > > FILESYSTEM (=) USED > FREE (-) %USED USED AVAILABLE TOTAL MOUNTED ON > /dev/mapper/crypt > [==========================================--------] 83.8% 39.5T > 7.6T 47.1T /home/dale/Desktop/Crypt > /dev/mapper/data > [==============================================----] 91.7% 43.2T > 3.9T 47.1T /home/dale/Desktop/Data > > > I'm thinking about adding a 18 or 20TB drive to data. I got a empty one > in my safe as a spare. May need to buy a couple more drives soon. > > Thanks. > > Dale > > :-) :-)
signature.asc
Description: This is a digitally signed message part.

