• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

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!
  • 2
1 Solution
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".
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.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now