Commit f5c834a4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix fix_disk.sh: it's works now

parent ffccbff3
#!/bin/sh
# fix_disk fix unreadavke sectors by overwrite it
# fix_dist get list of unreadable sectors from system log
# TODO: use ddrescue log
# ddrescue -n in /dev/null logfile
if [ -z "$1" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
echo "Usage:"
echo "fix_disk [--fix]
echo "fix_disk [--fix]"
exit
fi
......@@ -51,9 +54,9 @@ fix_block()
}
# by dmesg
# by dmesg
# FIXME: which device??
#BLOCKLIST=$(
#BLOCKLIST=
#Buffer I/O error on device sda, logical block 32607659
#dmesg | grep "logical block " | sed -e "s|.*Buffer I/O error on device \(sd[a-z]\), logical block \([0-9]*\)|\1 \2|g" | sort -u | \
echo |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment