1

How can I check and mark bad blocks on Linux startup? There are a number of options available and most of them require accessing hardware and running live CD's. But I would like to avoid and perform everything using command line without going to the server room and talking to admins who have the keys.

I have ArchLinux with / on ext4fs.

1 Answer 1

1

If your init scripts support it, you can add -c -c to /fsckoptions (then create /forcefsck and reboot). Unfortunately, this feature isn't available everywhere. You probably have to reboot to a LiveCD/LiveUSB instead.

Perform Bad Blocks Scan on Root Partition in Linux

3
  • On Arch you still can force fsck check with kernel parameters fsck.mode=force. May be related: unix.stackexchange.com/questions/106892/… Commented Sep 1, 2014 at 15:46
  • yes, i've forced fsck using manual from ArchLinux. Next challenge is to run badblocks, but seems that i have to go to server room and use LiveCD. Thanks for your help! Commented Sep 2, 2014 at 13:21
  • Not sure if that works, but you could go into single user mode, remount / readonly, and then run badblocks. Commented Sep 2, 2014 at 17:08

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.