Link to home
Start Free TrialLog in
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".

Avatar of ozo
ozo
Flag of United States of America image

sudo fsck -p
or set the fsckorder field in fstab to 0 to prevent fsck from scanning
Avatar of ed987
ed987

ASKER

it said "RUN fsck MANUALLY ( without -a or -p options) "
> fsck -p
the options may be different on your fsck, check your man pages
Avatar of ed987

ASKER

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.
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)
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Answer Y if fsck prompts to fix any errors
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ed987

ASKER

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/questions/22919696/fsck-bad-or-duplicate-block-s.html