mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-23 18:02:13 +02:00
#271 detect no partitions
This commit is contained in:
@@ -10,6 +10,17 @@ infoFile="/home/admin/raspiblitz.info"
|
|||||||
# check if HDD is connected
|
# check if HDD is connected
|
||||||
hddExists=$(lsblk | grep -c sda1)
|
hddExists=$(lsblk | grep -c sda1)
|
||||||
if [ ${hddExists} -eq 0 ]; then
|
if [ ${hddExists} -eq 0 ]; then
|
||||||
|
|
||||||
|
# check if there is maybe a HDD but woth no partitions
|
||||||
|
noPartition=$(lsblk | grep -c sda)
|
||||||
|
if [ ${hddExists} -eq 0 ]; then
|
||||||
|
echo "***********************************************************"
|
||||||
|
echo "WARNING: HDD HAS NO PARTITIONS -> see FAQ:"
|
||||||
|
echo "https://github.com/rootzoll/raspiblitz/blob/master/FAQ.md#what-to-do-if-my-hdd-has-no-partitions"
|
||||||
|
echo "***********************************************************"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
echo "***********************************************************"
|
echo "***********************************************************"
|
||||||
echo "WARNING: NO HDD FOUND -> Shutdown, connect HDD and restart."
|
echo "WARNING: NO HDD FOUND -> Shutdown, connect HDD and restart."
|
||||||
echo "***********************************************************"
|
echo "***********************************************************"
|
||||||
|
Reference in New Issue
Block a user