LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-20-2012, 11:30 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
Add HDD


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

thx
 
Old 08-21-2012, 02:51 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

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
Code:
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
Code:
/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.

Evo2.
 
  


Reply



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 10:22 AM
How to add new HDD to LVM fw12 Linux - General 12 08-18-2007 05:31 PM
Trying to add a third hard drive (hdd) and get Unable to open /dev/hdd MikeyCarter Linux - Hardware 4 12-26-2005 10:27 PM
I want to add 1 more HDD to Linux 7.2 maverick9900 Linux - Hardware 1 05-05-2005 08:08 AM
add an hdd?? HmmLinux Linux - Hardware 2 02-19-2004 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:38 PM.

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