Normally I'd boot live media & run fsck (file-system checks) from there, but on a raspberry pi (I don't know what media you're booting from, it maybe easier on the pi) I'd likely remove the media & perform the fsck or file-system checks on another box.
– guivercOct 14 '22 at 10:11
Hey, thank you for your reply, but the SD card is not even getting formatted on a windows pc, fsck command gives me another error
– Lohit PatilOct 14 '22 at 10:27
1
The SD card maybe needs replacing... They are a consumable media, ie. built to cost and not durability (especially if contents are changed frequently) so write your backup image to a new SD & use that instead.
– guivercOct 14 '22 at 10:29
fsck
(file-system checks) from there, but on a raspberry pi (I don't know what media you're booting from, it maybe easier on the pi) I'd likely remove the media & perform thefsck
or file-system checks on another box. – guiverc Oct 14 '22 at 10:11