[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 346
  • Last Modified:

How to add a New hard drive in FC3

I need to add a new harddrive to my box. It's unformatted and on the primary controller along with the primary drive on the same. I have CD on the secondary controller.

So, what I need is to partition the drive,  format it and mount it in a newdirectory called /VIDEO2 that doesn't exist yet I'm looking for some instructions to follow.

Thanks,
0
ampapa
Asked:
ampapa
3 Solutions
 
yuzhCommented:
Please have a look at the answer in http:Q_21009492.html

    PS: replace " /disk2" with /VIDEO2  in the procedure.
0
 
wesly_chenCommented:
1. check the jumper. Make sure it's master-slave or both CS(cable select) on those two hard disk.

2. As root
fdisk /dev/hdb
n  (add New partition)
p  (Primary)
1  (partition letter 1)
w (Write the change and exit fdisk)

3. Format the new partition as ext3 (ext2 with journal)
mkfs -t ext3 /dev/hdb1   (since you choose 1 in step 2)

4.
mkdir /VIDEO2
echo "/dev/hdb1  /VIDEO2  ext3  defaults 1 2"  >> /etc/fstab
mount -a (or reboot)
0
 
ampapaAuthor Commented:
Sorry, I forgot two other things. If I read correctly you can only have 4 primary partitions in Linux and the 1st hard drive already has 4.

Does this just get formatted as a extended partition?

The other being the 1st partition has a partition labeled /VIDEO and is formated as ext2, I think? Does that impact anything else I'd like to format this the same or is it really necessary?

Thanks,
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
al-hasanCommented:
ampapa: the 4 primary partitions are due to the partition table size, which cannot store more information than for 4 partitions. This is valid for _each_ hard disk, so do not worry. You will have your primary partition(s) on your new drive as nicely described above.

Regards,
has.
0
 
ampapaAuthor Commented:
What about the formatting in ext2 vs. ext3?
0
 
al-hasanCommented:
wesly_chen showed you all:

>>  3. Format the new partition as ext3 (ext2 with journal)
>>  mkfs -t ext3 /dev/hdb1   (since you choose 1 in step 2)

ext2 and ext3 are compatible, ext3 has a journaling function, so it will boot faster if your machine went down unexpectedly.
Follow wesly_chen's suggestions, it is really excellent.

Regards,
has.
0
 
ampapaAuthor Commented:
I've got a light issue on the new drive. It appears to not have formatted all 200gig into /dev/hdb1? So, I got an out of disk space error. How do I format all 200gig into a single partition?

Thanks,
0
 
al-hasanCommented:
ampapa: in wesly_chen's step 2 you created a partition of the size of the hard disk, correct? So the size is now given, and with the step 3 you just put a filesystem onto that partition ('format it'). Of course the file system needs to store its metadata somewhere, so it is normal if your partition shows up with less usable space than 200 GB. How much does it show? What does df -h reveal please?

Regards,
has.
0
 
ampapaAuthor Commented:
I've left for the office and won't be able to run df -h until I get back home this evening.

Yes, I did create a partition the size of the hard drive by accepting the defaults in fdisk. Yes, I used mkfs -t ext3 /dev/hdb1 to format the partition.

The problem occoured when copying the data from a current 160gig drive to the new 200gig drive, appx. 111gig worth of data. The copying process stopped after a short time and reported it was out of disk space after only copying about 6 files, appx. 3-4gig each in size?

ampapa,
0
 
al-hasanCommented:
ampapa: this is some other issue, there must be something else wrong. Onto a 200 GB disk you can store around 180 GB of data, depending on the file sizes (many small files add up to more than a few huge ones). Well, I have no idea what the problem could be here - hope wesly_chen will appear in a while and lend a helping hand. Sorry!

Regards,
has.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now