Delete and Re-create a Partition in Linux
Posted on 2007-10-01
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.