Skip to content

Instantly share code, notes, and snippets.

@booherbg
Created April 3, 2015 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save booherbg/d2082d7e54f2807654e8 to your computer and use it in GitHub Desktop.
Save booherbg/d2082d7e54f2807654e8 to your computer and use it in GitHub Desktop.
During install, my /dev/sda was not recognized (even though fdisk -l shows it). I did, however, get prompted about enabling RAID devices.
blkid /dev/sda
/dev/sda: UUID="DELL ^P(" TYPE="ddf_raid_member"
dmraid -E -r /dev/sda
Do you really want to erase "ddf1" ondisk metadata on /dev/sda? y/n :y
ERROR: ddf1: seeking device "/dev/sda" to 12803086946048
ERROR: writing metadata to /dev/sda, offset 250059349504 sectors, size 0 bytes returned 0
ERROR: erasing ondisk metadata on /dev/sda
mdadm --zero-superblock /dev/sda
mdadm: Couldn't open /dev/sda for write - not zeroing
One or more drives containing MDADM containers (Intel/DDF RAID) have been found. Do you wish to activate these RAID devices?
Activate MDADM containers (Intel/DDF RAID)?
One or more drives containing Serial ATA RAID configurations have been found. Do you wish to activate these RAID devices?
Activate Serial ATA RAID devices?
----- Solution -------
Nuke it!
dd if=/dev/zero of=/dev/sda bs=512 seek=$(( $(blockdev --getsz /dev/sda) - 1024 )) count=1024
now, blkid returns no meta data:
# blkid /dev/sda
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment