RED HAT 6   mkswap  "Device or resource busy"

Posted on 2011-10-14
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
    LVL 4

    Accepted Solution

    Is it mounted or otherwise in use?  Does the -f option allow it to work?
    LVL 13

    Expert Comment

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

    # mount

    You might try rebooting.
    LVL 13

    Expert Comment

    by:Hugh McCurdy
    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).
    LVL 2

    Author Closing Comment

    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

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now