mkfs refuses to make filesystem with message "is apparently in use by the system; will not make a filesystem here!"

I have a disk from another server installed on a new server. However, when I try to make a filesystem on it, mkfs reports

# mkfs -t ext4 /dev/sdd1
mke2fs 1.42.8 (20-Jun-2013)
/dev/sdd1 is apparently in use by the system; will not make a filesystem here!

This is a new disk to the new server. It is not mounted.

I deleted the partition sdd1 and recreated it using cfdisk. It did not help. The same error message.

What's wrong here? How to fix it?

asked May 3, 2015 by Lucy (990 points)

1 Answer

This is possibly caused by a RAID signature on the disk showing that the disk belongs to a RAID.

If you are sure that the disk will never be used in a RAID system anymore, you may follow this tutorials to clean the RAID signature:

How to Clean RAID Signatures on Linux

answered Aug 15, 2015 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...