Home » Debian, Linux, Newbie

Used harddrive after paritioning

4 February 2009 One Comment

I just want to dissemble a raid0 and use one of this harddrives for other purposes, so I just stoped the mdadm with

/etc/init.d/mdadm stop

and I started to partition the disk /dev/sdc. After changeing the type of partition from Linux Raid Audtodetect to Linux I tried to format it with ext3 filesystem, but I got this error:

$ mkfs.ext3 /dev/sdc1
/dev/sdc1 is apparently in use by the system; will not make a filesystem here!

After some research I just the solution:

mdadm –stop /dev/md0

The linux raid utility is just marking this disk as used if you don’t really stop md0. It seems stoping the mdadm process doesn’t have nothing with mdam –stop command.


One Comment »

  • oleg said:

    thanks a lot!

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.