raspiblitz: Error while formatting HDD

Problem

While configuring a new node from scratch (SD and HDD clean) an error occurred during the HDD formatting phase

Steps to reproduce

  1. Burn raspiblitz 1.6.0 on your SD
  2. Format your HDD (did it on my macOS)
  3. Start the raspiblitz configuration process
  4. Select bitcoin + lightning
  5. Setup passwords A and B
  6. Wait to see the problem

Hardware

Raspberry Pi 3b+ 1tb Samsung USB 3 HDD

Logs

# --> Formatting HDD/SSD ...
# DATA DRIVE - FORMATTING to new EXT4 layout (old)
# Unmounting all partitions of this device
# Cleaning /etc/fstab from `-sda1
# Wiping all partitions (sfdisk/wipefs)
Error: Input/output error during write on /dev/sda
# Creating the one big partition
# waiting until the partion gets available
# waiting until the partion gets available
# waiting until the partion gets available
# waiting until the partion gets available
# waiting until the partion gets available
# waiting until the partion gets available
# waiting until the partion gets available
# waiting until the partion gets available
# waiting until the partion gets available
# waiting until the partion gets available
# waiting until the partion gets available
/dev/fd/63: line 2: The: command not found
/dev/fd/63: line 3: syntax error near unexpected token `('
/dev/fd/63: line 3: `Calling ioctl() to re-read partition table.'
# OK

# *** 40addHDD.sh ***
# FAIL given device not found
FAIL blitz.datadrive.sh tempmount --> device not found
Please report issue to the raspiblitz github.

I hope it helps, let me know if I can provide more info

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16

Commits related to this issue

Most upvoted comments

Hello, I found a source of the formatting errors in the original post. The ‘label’ is not generating for lsblk on the partition when running the blitz.datadrive.sh script.

line 645 loopdone=$(lsblk -o NAME,LABEL | grep -c BLITZDATA) line 685 loopdone=$(lsblk -o NAME,LABEL | grep -c BLITZSTORAGE) and line 724 loopdone=$(lsblk -o NAME,LABEL | grep -c BLITZTEMP)

The loop times out because the label doesn’t show with lsblk. For some reason, calling parted will refresh it and the label will show correctly with lsblk. I added a line above each of these to call parted again and the errors cleared.

sudo parted -l

@STEMr42 i added sudo parted -l below each line and it also solved the error. kudos!

@STEMr42 thanks added the sudo parted -l lines. Will be part of v1.7.1 RC1 release.

thank you. tried efs4 format on raspi before, that seems to be the problem. fat32 format on Mac solves the problem and setup can proper format and use my ssd now.

Hi guys, i am not sure if I am at the right place with my issue, but the logfile on 1.6.2 told me so:

ERROR: formatting ext4 failed /dev/fd/63: line 2: The: command not found /dev/fd/63: line 3: syntax error near unexpected token (' /dev/fd/63: line 3: Calling ioctl() to re-read partition table.’ OK

*** 40addHDD.sh ***

–> Linking drives/directories hddCandidate=‘sda’ hddPartitionCandidate=‘sda1’ FAIL blitz.datadrive.sh link --> no data drive mounted Please report issue to the raspiblitz github.

Is there a workaround to format my ssd for use it with the one big partition for the blockchain?

@jayrmotta thanks for the report. Adding this to the v1.6.1 update to take alook:

The ${uuid} seems to have the wrong value … seeing this from this log line:

cleaning /etc/fstab from `-sda1
  • check why the uuid gets discovered wrongly