Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-21-2012, 12:30 AM   #1
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30

I have just plug a new HDD to the server , can advise who can I mount it to my Redhat 4 server ?

Old 08-21-2012, 03:51 AM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288

to mount it if you need to know the device name and it needs to have a filesystem.
You should be able to see the device the list option with fdisk. Ie, as root
fdisk -l
If this is a "new" disk you'll have to decide how you want to partition it and what filesystem you want to put on it.

You can make partitions with fdisk or cfdisk (or many others), and you can format the parition(s) with commands like mkfs.ext3, mkfs.ext2 etc.

Once you have done that you can mount it with the mount command, and you can also setup your system to automatically mount it by putting an entry in your /etc/fstab. For example if your new disk is sdc and you and it contains one ext3 partition, you could automatically mount it at /data with the following line in your /etc/fstab
/dev/sdc1      /data          ext3    defaults        0       2
If you have not done so already googling for something like "linux new disk howto" should provide useful information.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add new HDD rashid68 Linux - Newbie 4 01-25-2008 11:22 AM
How to add new HDD to LVM fw12 Linux - General 12 08-18-2007 06:31 PM
Trying to add a third hard drive (hdd) and get Unable to open /dev/hdd MikeyCarter Linux - Hardware 4 12-26-2005 11:27 PM
I want to add 1 more HDD to Linux 7.2 maverick9900 Linux - Hardware 1 05-05-2005 09:08 AM
add an hdd?? HmmLinux Linux - Hardware 2 02-19-2004 12:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration