LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   New Hard Drive. (https://www.linuxquestions.org/questions/linux-software-2/new-hard-drive-62333/)

liguorir 05-28-2003 01:52 PM

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.


jpbarto 05-28-2003 02:09 PM

(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)


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