RED HAT 6   mkswap  "Device or resource busy"

Posted on 2011-10-14
Medium Priority
Last Modified: 2012-05-12
I created a new 2gb partition sdd1.  I then run mkswap to make a second swap partition (the first is on sda).  I get "Device or resource busy".
Question by:drj003
  • 2

Accepted Solution

paulc earned 2000 total points
ID: 36972107
Is it mounted or otherwise in use?  Does the -f option allow it to work?
LVL 13

Expert Comment

by:Hugh McCurdy
ID: 36972141
To test if it's mounted, type

# mount

You might try rebooting.
LVL 13

Expert Comment

by:Hugh McCurdy
ID: 36972144
Are you sure you tried to "format" the correct partition?  Is it tagged as 82?

I wonder if something automounted it as a Windows partition (if it was already setup for Windows).

Author Closing Comment

ID: 36973478
It wasn't mounted or otherwise in use that I could tell.  The -f option did work though.  Any idea why it didn't work without the force option?

Thanks for your replies.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question