Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux Newbie- Adding Hardrive 1

Status
Not open for further replies.

SpecSys

IS-IT--Management
Apr 3, 2002
136
US
I am a network admin who has been working with some outside help to install Linux on 2 of our 4 servers. The main file server which switched to RedHat 7.2 this spring now needs more HD room. I need to physically add a new HD which I have already (IDE). The HD has info on it from the machine it was pulled (also linux). I would like to recover that info once the drive is installed and move it to a different server, then reformat just the new drive to be used for storage space on this new server box. What are the steps? Will linux recognize the drive like windows does? What will the address of the drive be? I know linux uses hd0 or something like that, not D:\ drive.

Thanks for any help.
 
IDE drives are named as follows...

primary master - /dev/hda
primary slave - /dev/hdb
secondary master - /dev/hdc
secondary slave - /dev/hdd

Linux should see the new drive during bootup and assign it one of the above names. Run "dmesg | grep hd*", or something similar, to see if it found it. If the drive already has data on it, you need to mount it somewhere in the filesystem. Create the folder where you want to mount the drive, I'll call it /mnt/newdrive, but I wouldn't actually call it that. Mount the drive as follows --> mount /dev/hd? /mn/newdrive. If you want the drive to be automatically mounted at bootup, then you need to edit the /etc/fstab file.


ChrisP
 
Thanks for the tip. I'll give that a try, it sounds like it's easy enough.

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top