Adding a new hard disk

Adding a new hard disk to an existing system


I installed a second hard disk to one of my CentOS 5 machines today. When I had the box up and running and looked at the partition layout using fdisk

sudo /sbin/fdisk -l /dev/hdb

I saw that there were 2 partitions on the disk and that they were both Windows partitions. I wanted to get rid of these partitions, create one large ext3 partition and then format it. To accomplish this I used 2 tools, fdisk and mkfs. With fdisk I typed

sudo /sbin/fdisk /dev/hdb

I was then able to delete both partitions and create on large Linux type 83 partition. Once that was done I used mkfs

sudo /sbin/mkfs -t ext3 /dev/hdb1

Within a few minutes my new drive with a 250GB EXT3 partition was ready for use.

[glenn@shredder ~]$ sudo /sbin/mkfs -t ext3 /dev/hdb1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
30539776 inodes, 61049000 blocks
3052450 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
1864 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872

Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.


Return home

Adding a new hard disk (last edited 2009-09-13 13:09:19 by GlennJohnson)