mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
#975 fix temp mount for ext4
This commit is contained in:
parent
f8945f3d41
commit
882d571b56
1 changed files with 7 additions and 1 deletions
|
@ -118,8 +118,14 @@ if [ "$1" = "status" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# temp mount data drive
|
# temp mount data drive
|
||||||
|
mountError=""
|
||||||
sudo mkdir -p /mnt/hdd
|
sudo mkdir -p /mnt/hdd
|
||||||
mountError=$(sudo mount -o degraded /dev/${hdd}1 /mnt/hdd 2>&1)
|
if [ "${hddFormat}" = "ext4" ]; then
|
||||||
|
mountError=$(sudo mount /dev/${hdd}1 /mnt/hdd 2>&1)
|
||||||
|
fi
|
||||||
|
if [ "${hddFormat}" = "btrfs" ]; then
|
||||||
|
mountError=$(sudo mount -o degraded /dev/${hdd}1 /mnt/hdd 2>&1)
|
||||||
|
fi
|
||||||
isTempMounted=$(df | grep /mnt/hdd | grep -c ${hdd})
|
isTempMounted=$(df | grep /mnt/hdd | grep -c ${hdd})
|
||||||
|
|
||||||
# check for mount error
|
# check for mount error
|
||||||
|
|
Loading…
Add table
Reference in a new issue