Run fsck on /mnt/hdd for several possible disk types (#454)
This commit is contained in:
parent
b90a3bcb85
commit
3445572de6
|
@ -2,6 +2,7 @@
|
|||
|
||||
set -e
|
||||
set -x
|
||||
shopt -s nullglob
|
||||
|
||||
source /usr/share/mynode/mynode_config.sh
|
||||
source /usr/share/mynode/mynode_app_versions.sh
|
||||
|
@ -79,7 +80,7 @@ umount /mnt/hdd || true
|
|||
set +e
|
||||
if [ $IS_X86 = 0 ]; then
|
||||
touch /tmp/repairing_drive
|
||||
for d in /dev/sd*1; do
|
||||
for d in /dev/sd*1 /dev/hd*1 /dev/vd*1 /dev/nvme*p1; do
|
||||
echo "Repairing drive $d ...";
|
||||
fsck -y $d > /tmp/fsck_results 2>&1
|
||||
RC=$?
|
||||
|
|
Loading…
Reference in New Issue
Block a user