mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-18 20:44:20 +01:00
format create-ext4-raspiblitz-disk.md
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
|
```
|
||||||
parted -s /dev/${hdd} mkpart primary ext4 1024KiB 100%
|
parted -s /dev/${hdd} mkpart primary ext4 1024KiB 100%
|
||||||
mkfs.ext4 -F -L BLOCKCHAIN /dev/${hdd}
|
mkfs.ext4 -F -L BLOCKCHAIN /dev/${hdd}
|
||||||
tune2fs -c 1 /dev/${hdd}
|
tune2fs -c 1 /dev/${hdd}
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
hddDataPartitionExt4=$hdd
|
hddDataPartitionExt4=$hdd
|
||||||
# loop until the uuids are available
|
# loop until the uuids are available
|
||||||
uuid1=""
|
uuid1=""
|
||||||
@@ -32,8 +33,6 @@ tune2fs -c 1 /dev/${hdd}
|
|||||||
mount -a 1>/dev/null
|
mount -a 1>/dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# make sure common base directory exits
|
# make sure common base directory exits
|
||||||
mkdir -p /mnt/hdd/lnd
|
mkdir -p /mnt/hdd/lnd
|
||||||
mkdir -p /mnt/hdd/app-data
|
mkdir -p /mnt/hdd/app-data
|
||||||
@@ -74,4 +73,5 @@ tune2fs -c 1 /dev/${hdd}
|
|||||||
echo "The /mnt/hdd/app-storage directory should be used by additional/optional apps and services installed to the RaspiBlitz for their non-critical and reproducible data (indexes, public blockchain, etc.) that does not need to survive an an import/export/backup. Data is critical should be in app-data." > ./README.txt
|
echo "The /mnt/hdd/app-storage directory should be used by additional/optional apps and services installed to the RaspiBlitz for their non-critical and reproducible data (indexes, public blockchain, etc.) that does not need to survive an an import/export/backup. Data is critical should be in app-data." > ./README.txt
|
||||||
mv ./README.txt /mnt/hdd/app-storage/README.txt 2>/dev/null
|
mv ./README.txt /mnt/hdd/app-storage/README.txt 2>/dev/null
|
||||||
|
|
||||||
>&2 echo "# OK - all symbolic links are built"
|
>&2 echo "# OK - all symbolic links are built"
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user