Force fsck on ext4 non root partition at reboot

moxmox

Well-Known Member
Aug 14, 2019
63
8
48
44
This is a non-root filesystem but I cannot umount it once the system is up and running. (even using init 1 I could still not unmount it, lsof didn't appear to tell me what was using it)

so I have tried to force a fsck on boot, but using tune2fs -c 1 /dev/sdXY on the relevant partition does not seem to do anything.

Is it ignored because of some proxmox specific code?

root partion is a zfs mirror
 
Normaly you should use this in grub line /etc/default/grub
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash fsck.repair=preen"
With that, check starts automaticliy. If you would force a check type this:
Code:
touch /forcefsck
After reboot every filesystem would be checked.
https://wiki.ubuntuusers.de/Dateisystemcheck/
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!