[NBLUG/talk] Mounting a new HD

Mark Greeott mark at greeott.com
Sat Nov 29 10:03:00 PST 2003


On Fri, 2003-11-28 at 16:35, Todd Cary wrote:
> I have Fedora running on my system and there is a primary HD on the 
> secondary channel (hdd), however I do not know how to have Linux mount it.
> 
> In the GUI Hardware Manager, it is listed "hdd", however in the GUI disk 
> manager only the CD and Floppy drives are listed.
> 
> I am not too swift with Linux editors, but I did a "cat /dev/fstab" and 
> the "hdd" device is not listed.
> 
> Also, my Red hat 4.1 book speaks of "fstool", but that is not part of 
> Fedora nor is it listed on my Ret Hat system and I do not see a GUI 
> selection for mounting a new HD or qnything that would allow me to 
> format the new drive.
> 
> Any help is greatly appreciated....
> 
> Todd

For partitioning i use a program called "parted". If you're running
fedora it should be installed. Here's a link to the manual:

http://www.gnu.org/software/parted/manual/html_node/parted_toc.html#TOC29

Invoke parted as root and the drive as the argument i.e. parted
/dev/hdd. From there you can type help to see parted's commands. You'd
probably be interested in the "mkpart" command :-)

Parted can also format the partition for you but I like to use mke2fs
for that. So assuming you made one big partition on the drive and you
wanted to format with an ext3 file system you would do #mke2fs -j
/dev/hdd1. man mke2fs for more info.

After all that you can mount the drive and add an entry to /etc/fstab to
have it happen at boot.

-Mark




More information about the talk mailing list