readthefuckingmanual.net

[SOLVED] is apparently in use by the system; will not make a filesystem here!

Error added: 2011-05-22T22:49:18Z

1 people waiting for the answer...

2 answers found.

Answer 1762 (83.33333% helpful)

dmsetup ls
dmsetup remove xxxx
Permalink

Answer 1761 (0.0% helpful)

cloudmaster@uec-frontend:~$ sudo mkfs.ext4 /dev/cciss/c0d2p1
/dev/cciss/c0d2p1 is apparently in use by the system; will not make a filesystem here!

I tried with -FF (“Do as I say, you stupid!”), but it would still refuse to obtemperate. Confirmed with mount and fuser that the partition was not in use, and indeed it was not. Check dmesg, but there was nothing in there.

Turned out there was a logical volume on that drive, and it did not get wiped out in the disk swap. If the same happen to you, you can check that the partition is indeed an LVM physical volume with the command “pvdisplay”. You will then be able to proceed to wipe the LVM data from the drive (lvdisplay, lvremove, vgdisplay, vgremove, pvdisplay, pvremove, etc). Zeroing out the drive with dd would probably also work. Then you can mkfs. There you stupid, I told you to do so as I said! :)

http://oilq.org/fr/node/6033
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: