mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 15:10:38 +01:00
added debug
This commit is contained in:
parent
6f7577541f
commit
cd23d59c5b
1 changed files with 15 additions and 8 deletions
|
@ -202,11 +202,18 @@ if [ "$1" = "status" ]; then
|
||||||
echo "hddError='data mount failed'"
|
echo "hddError='data mount failed'"
|
||||||
else
|
else
|
||||||
|
|
||||||
# check for recoverable RaspiBlitz data (if config file exists) and raid
|
#####################################
|
||||||
hddRaspiData=$(sudo ls -l /mnt/hdd${subVolumeDir} 2>/dev/null | grep -c raspiblitz.conf)
|
# Pre-Setup Invetigation of DATA-PART
|
||||||
isRaid=$(btrfs filesystem df /mnt/hdd 2>/dev/null | grep -c "Data, RAID1")
|
|
||||||
echo "hddRaspiData=${hddRaspiData}"
|
# DEBUG remove later
|
||||||
sudo umount /mnt/hdd
|
df
|
||||||
|
|
||||||
|
# check for recoverable RaspiBlitz data (if config file exists) and raid
|
||||||
|
hddRaspiData=$(sudo ls -l /mnt/hdd${subVolumeDir} 2>/dev/null | grep -c raspiblitz.conf)
|
||||||
|
isRaid=$(btrfs filesystem df /mnt/hdd 2>/dev/null | grep -c "Data, RAID1")
|
||||||
|
echo "hddRaspiData=${hddRaspiData}"
|
||||||
|
|
||||||
|
# sudo umount /mnt/hdd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# temp storage data drive
|
# temp storage data drive
|
||||||
|
@ -224,8 +231,8 @@ if [ "$1" = "status" ]; then
|
||||||
echo "hddError='storage mount failed'"
|
echo "hddError='storage mount failed'"
|
||||||
else
|
else
|
||||||
|
|
||||||
###############################
|
########################################
|
||||||
# Pre-Setup Invetigation of HDD
|
# Pre-Setup Invetigation of STORAGE-PART
|
||||||
|
|
||||||
# DEBUG remove later
|
# DEBUG remove later
|
||||||
df
|
df
|
||||||
|
@ -279,7 +286,7 @@ if [ "$1" = "status" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# unmount
|
# unmount
|
||||||
sudo umount /mnt/storage
|
# sudo umount /mnt/storage
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# if not ext4 or btrfs - there is no usable data
|
# if not ext4 or btrfs - there is no usable data
|
||||||
|
|
Loading…
Add table
Reference in a new issue