Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
f5c834a4
Commit
f5c834a4
authored
Feb 18, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix fix_disk.sh: it's works now
parent
ffccbff3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
fix_disk.sh
hdd/fix_disk.sh
+5
-2
No files found.
hdd/fix_disk.sh
100644 → 100755
View file @
f5c834a4
#!/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
...
...
@@ -53,7 +56,7 @@ fix_block()
# 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
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment