external usb on red hat

Hi there
I have a 500 GB drive connected via USB to my Red Hat EL system. the drive is formatted with fat32 by default and I need to format it as ext3 and then mount it as a local folder like /root/eggster. How would I first partition and then format the drive? thanks!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

First, find out which device the drive is.  Probably /dev/sdb or something similar.  When you plug it in type dmesg to show your system log - it will be right near the bottom.

Then run fdisk to edit the partitions on the drive with "fdisk /dev/<device>" where <device> is the sdb or sdc or similar from above.

Type "p" to show your current partitions.  Delete all of your current partitions by hitting "d".  When they are all gone make one new one with "n", make it a "p" for primary.  Then "w" to save and "q" to quit.

Now that you have the partition you need to format it with "mkfs -t ext3 /dev/<device>.

Then  you just need to mount it.  First make the mount location with "mkdir /root/eggster" then mount it with "mount /dev/<device> /root/eggster".

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Depending on the version of redhat that you have you may just be able to install gparted or qtparted "yum install gparted" or "yum install qtparted" and then run either gparted or qtparted to run a graphical partition editor that might be easier for you to use.  It depends on how comfortable you are with command line programs.  fdisk and mkfs are guaranteed to be on just about any system.

If your version doesn't have either of those partition editors you could also just download qtparted from here:

The graphical editors will do everything except create the mount point and mount the drive.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.