vgdisplay; mount -a and lsof did not show any evidence of use by the system (I had already tried all except for vgdisplay)
Main Topics
Browse All TopicsI am running Fedroa 10 (Cambridge) on /sdev/sb, and attempting to create a file system on /dev/sda.
"fdisk" worked properly:
[root@sv1 ~]# fdisk -l /dev/sda
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6988f336
Device Boot Start End Blocks Id System
/dev/sda1 1 30401 244196001 83 Linux
[root@sv1 ~]#
When I attempt to make a file system, I get this error:
[root@sv1 ~]# mkfs /dev/sda1
mke2fs 1.41.4 (27-Jan-2009)
/dev/sda1 is apparently in use by the system; will not make a filesystem here!
I have tried re-zeroing the first MB of the drive (via dd if /dev/zero ...); deleting and recreating the partition and rebooting - no luck. Any ideas?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
[root@sv1 ~]# lsof /dev/sda1
[root@sv1 ~]# pvcreate /dev/sda1
Can't open /dev/sda1 exclusively. Mounted filesystem?
[root@sv1 ~]#
I agree this is indeed strange. I found one reference googling that indicates this may be a bug in the code to automount a hot plugged USB drive, but I can't find a way to turn that feature off.
Business Accounts
Answer for Membership
by: cjl7Posted on 2009-06-22 at 06:18:07ID: 24682070
Hi,
Is it used by a logical volume?
vgdisplay -v
Is it used by the system?
mount -a
or
lsof /dev/sda1
//jonas