Avatar of ed987
ed987 asked on

fsck bad or duplicate block(s)

at boot disk gets scanned,  bad or duplicate block(s) are reported.
it says i have to run fsck manually.

what fsck arguments should i use ?
i used "fsck /dev/sda1" "fsck -f /dev/sda1" "fsck -c /dev/sda1" but it just displayed some short data, filesystem modified and exited.
after reboot it scans again, with same errors :(

i tried tried removing problematic files manually, umount /dev/sda1 .... mount -o rw,remount /dev/sda1 , but it displays "read only filesystem".

Linux

Avatar of undefined
Last Comment
ed987

8/22/2022 - Mon
ozo

sudo fsck -p
ozo

or set the fsckorder field in fstab to 0 to prevent fsck from scanning
ASKER
ed987

it said "RUN fsck MANUALLY ( without -a or -p options) "
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ozo

> fsck -p
the options may be different on your fsck, check your man pages
ASKER
ed987

is "fsck -p" different than fsck run automatically at boot ?
i am running "fsck -p" currently, this is already my 5-th fsck today, and each one takes ~ 30 minutes.
Duncan Roe

If it says not to use -p or -a, then don't use them. Just fsck /dev/sda1. In your Q, you say you tried that and errors persist - can you post the fsck output? (you might have to write it down - do what you can)
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
ozo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Duncan Roe

Answer Y if fsck prompts to fix any errors
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
ed987

fsck on /dev/sda1 didn't work because it's a LVM disk.
but i'll give half points each.

anyway i just bought new disk.
my latest question on moving data from lvm disk to new disk
https://www.experts-exchange.com/OS/Linux/Administration/Q_22919696.html