Partitioning a new Hardrive

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Partitioning a new Hardrive
# 1  
Old 06-15-2011
Error Partitioning a new Hardrive

What is the command to partition a completely new hard drive using red hat linux
# 2  
Old 06-15-2011
  1. Add new disk and reboot the machine
  2. Check to see if the disk is present using ls -l /dev/sd*. If you started with only one disk and added another you should see /dev/sdb
  3. fdisk /dev/sdb and partition the disk. I'd recommend adding primary partition 1 using the entire disk.
  4. reboot the system to let the system create the other necessary device files. In the above case /dev/sdb1.
  5. Check to see if /dev/sdb1 is present. If so, then you can create a filesystem on the disk.
  6. mkfs -t ext3 /dev/sdb1 to create the new filesystem.
  7. I'd do the following also: tune2fs -i 0 -c 0 -m 1 -e panic /dev/sdb1. This inhibits the inconvient full fscks at mounts after a number of days and/or number of mounts. The system will still fsck the filesystem if necessary. Only reserve 1% of the diskspace for the root user. Otherwise, the default is to basically reserve 10%. Panic the system once filesystem errors are detected, default is to continue operations with the filesystem R/O.
  8. mkdir /mountpoint
    8a. chmod 755 /mountpoint. VERY important.
  9. add to the /etc/fstab:

    /dev/sdb1 /mountpoint ext3 defaults 0 1
  10. Reboot your system and and do a df and see that your mount is present and active.
  11. You are done.
Code:
 p // partition list   
:d  // delete
  :n  //new partition
  :1
  :w
  :q    //  I tried and it's done.


Last edited by pludi; 06-15-2011 at 05:26 AM..
This User Gave Thanks to getrue For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Need help Partitioning

I am getting ready to install RHEL6 server. I have to create these partitions: / 10GB SWAP 3GB /opt/kent 10GB /opt/kent/logs /backup 20 GB Will Gparted do this? or whats the easiest way? or even a tutorial?I am so new to this (4 Replies)
Discussion started by: linux4noob
4 Replies

2. UNIX and Linux Applications

Hardrive Spliter.

I am running Linux - Debian on my harddrive at present and i want to split the remainder of my hardrive into another portion so that i can install windows on it. What is the best way to go about this? (5 Replies)
Discussion started by: syco__
5 Replies

3. Ubuntu

About partitioning

Hi folks, Ubuntu 10.04-1 64-bit HD - 1T SATA3 I ran graphic installation installing Ubuntu-10.04-1 desktop from Live CD The partition on the new HD is as follow; /root /home /kvm (kvm is for keeping the guests of KVM, the virtualizer) Installion went through without problem abd... (0 Replies)
Discussion started by: satimis
0 Replies

4. Solaris

External Hardrive add on's

Does anyone know if and or how you can add external hardrives to Sun Solaris 9 or greater systems. Needing to add two additional dedicated storage drives for large image files and mount these drives to the system. Will also need to mirror these two drives for redundancy. Any help would be... (2 Replies)
Discussion started by: tazzy
2 Replies

5. Red Hat

Partitioning?

Hey, this question is generated purely out of my lack of knowledge. Ok, obviously you can partition hard drives, I have Windows 2k, and can partition it from administrative tools, however, all of the help sections have utterly failed to give me any information other than "when you partition, it... (5 Replies)
Discussion started by: Mal_Zapatos
5 Replies

6. Solaris

Replacing hardrive on solaris

I have a problem with my Solaris box in my office, the storage capacity reach 95%. For that i need to think a way to replace the hard drive with the bigger one as all the slot was used. Do any of you guys have similar experience with me, please give any enlightment! Thanks a lot guys. (3 Replies)
Discussion started by: rockie
3 Replies

7. UNIX for Dummies Questions & Answers

Partitioning

Hiya folks, Before I install Linux, I want to partition my HD, basically I want to split my 80GB HD in half so I can run Linux but still keep Windows XP. I tried doing through the windows workstation and browsing the XP help files but it either didnt work or I was doing something wrong. I dont... (7 Replies)
Discussion started by: Mr_Pinky
7 Replies

8. UNIX for Dummies Questions & Answers

Partitioning HD

I would like to install Redhat 7.2 on my Windows machine. I only have one hard drive and I dont want to lose Windows. Which method is best for partitioning the HD? I tried it once with Partition Magic and I was installing Corel Linux First Edition and Corel wiped out my entire HD (not good when... (2 Replies)
Discussion started by: primal
2 Replies

9. UNIX for Dummies Questions & Answers

hardrive

I formated a 40 gig hardrive and if I check how much usable room there is it show only 34 gigs...Anyone have any ideas on how to reclaim a few of those lost gigs or why it would format so small. (5 Replies)
Discussion started by: macdonto
5 Replies

10. UNIX for Dummies Questions & Answers

Partitioning

I'm looking for a Partitioning Tool preferably with a GUI preferably free that is easy to use if anyone has any suggestions they will be greatfully recieved, Thanks. (4 Replies)
Discussion started by: OSNovice
4 Replies
Login or Register to Ask a Question