× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

How to properly force fsck of root partition

dsm1212
Apprentice

How to properly force fsck of root partition

I have a bad file in my root partition filesystem. I've renamed the folder containing it aside but it's a nuisance because it causes commands like du to error. By bad file I mean it shows ? for all permissions bits etc and it cannot be deleted. It's not an odd filename or anything as simple as that. I've tried all the tricks I know to remove a bad file inode, but I think I need to fsck the root partition. I could touch /forcefsck, but I wanted to know if that is the recommended way. Or tune2fs?

Model: RNDP6000v2|ReadyNAS Pro 6 Chassis only
Message 1 of 2
dsm1212
Apprentice

Re: How to properly force fsck of root partition

btw mdadm check passes so it is not a bad disk. Up until recent versions I was getting periodic system hangs after btrfs stack traces. They cleared up with a release early this year and my system can run for months now, which is great. But this bad file has been lingering around from that os rev that gave my system fits.

Message 2 of 2
Top Contributors
Discussion stats
  • 1 reply
  • 605 views
  • 0 kudos
  • 1 in conversation
Announcements