LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-28-2003, 01:52 PM   #1
liguorir
Member
 
Registered: May 2003
Posts: 256

Rep: Reputation: 30
New Hard Drive.


I just installed a new hard drive. Exactly what do I need to but into fstab, and any other files. I have redhat 7.3. I bought a maxtor 30 gig drive.


Last edited by liguorir; 07-19-2004 at 10:43 AM.
 
Old 05-28-2003, 02:09 PM   #2
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
(I'm assuming this is a second hard drive on the primary bus setup as a slave to the first hard drive)

first you need to create partitions on the hard drive... start this with the command:
cfdisk /dev/hdb
## one large primary partition should be fine... depending on what you're using it for ##

then you need to format the newly created partition... take a look at the man page for mkfs to learn more about how to do this.
the basic command is:
mkfs -t <filesystem-type> /dev/hdb[partition number]

thirdly for every partition you created you must add an entry to /etc/fstab (assuming one large partition)

/dev/hdb1 /mnt/newhd [ext2, ext3, etc] defaults 0 0

(check those last two numbers as I'm not sure if their right)
 
  


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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:01 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