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
cea8d9cf
Commit
cea8d9cf
authored
Jan 12, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hd: small fixes
parent
3054b647
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
fix_disk.sh
hdd/fix_disk.sh
+2
-2
fix_disk_cycle.sh
hdd/fix_disk_cycle.sh
+8
-0
No files found.
hdd/fix_disk.sh
View file @
cea8d9cf
...
...
@@ -18,8 +18,8 @@ FORCE=
LIST
=
[
"
$1
"
=
"--fix"
]
&&
{
TESTONLY
=
$1
;
shift
;
}
[
"
$1
"
=
"--force"
]
&&
FORCE
=
$1
[
"
$1
"
=
"--list"
]
&&
LIST
=
$1
[
"
$1
"
=
"--force"
]
&&
{
FORCE
=
$1
;
shift
;
}
[
"
$1
"
=
"--list"
]
&&
{
LIST
=
$1
;
shift
;
}
[
"
$1
"
=
"--dev"
]
&&
DEV
=
$2
&&
shift
2
[
"
$1
"
=
"--sector"
]
&&
SECTOR
=
$2
&&
shift
2
[
"
$1
"
=
"--block"
]
&&
BLOCK
=
$2
&&
shift
2
...
...
hdd/fix_disk_cycle.sh
0 → 100755
View file @
cea8d9cf
#!/bin/sh
#while true ; do badblocks -sv /dev/sda $@ ; sleep 1 ; ./fix_disk.sh --fix --force ; done
while
true
;
do
#badblocks -sv /dev/sda $@
sleep
300
./fix_disk.sh
--fix
done
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