platforms/zed/formatSD.sh "unrecognised disk label" bug

Description

The following error occured:
[user@hostname zed]$ sudo ./formatSD.sh /dev/sdb
Error: /dev/sdb: unrecognised disk label

This was due to the following command from formatSD.sh failing:
[user@hostname zed]$ sudo parted -s /dev/sdb unit B print
Error: /dev/sdb:

Executing the following command prior to running formatSD.sh remedied the problem:
[user@hostname zed]$ sudo parted /dev/sdb --script – mklabel msdos

Environment

https://github.com/opencpi/opencpi.git commit ID 5088044851876bcb59c03be8cfa0d43f01ff8a67 on RHEL6

Status

Assignee

Unassigned

Reporter

Davis Hoover

Labels

None

Components

Priority

Minor
Configure