Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When is it safe to use fsck?

fsck safe
0
Posted

When is it safe to use fsck?

0

Only use fsck on an unmounted or read-only filesystem. Running fsck on a r/w filesystem is dangerous and could corrupt the filesystem. If you bring the system up into single-user mode, the system will be mounted read-only. From there you can do an fsck -p to check all filesystems before bringing the system up into multi-user mode. If the filesystem has previously been marked “clean,” and you still want to check it, you can use the -f flag to fsck. If you do make any changes to the filesystem using fsck, it is probably best to type: reboot -n to reboot the machine immediately without syncing the disks.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123