Delete and Re-create a Partition in Linux

Posted on 2007-10-01
Last Modified: 2013-12-16
Greetings -

I have a VMWare ESX server that has a "temporary files" partition that has become corrupted.  This partition is not part of the ESX default installation, it is simply on the same server used for temporary image storage.  I've attempted to fix this with fsck, efsck, and a variety of other utilities to no avail.  I get superblock error messages and a bunch of other ugly error messages regardless of what I do.

What I want to do is delete this partition (named /dev/sda7) and recreate it.  It's been years since I've done this in UNIX so any help is appreciated.

A list of commands to run with short explanations of what they are would be appreciated.

Question by:amendala
    1 Comment
    LVL 9

    Accepted Solution

    If you are going to delete and recreate it anyway, why don't you format it?

    mkfs.ext2 or mkfs.ext3 /dev/hda7

    If you really really want to delete, take a look at this

    or you can use gparted while running your linux system

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
    This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
    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…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    760 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

    13 Experts available now in Live!

    Get 1:1 Help Now