How to add an additional disk drive to your backup storage
I adeed new SCSI hard drive. It’s third so the namin convention is sdc
[root@centos53 ~]# fdisk /dev/sdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won’t be recoverable.
The number of cylinders for this disk is set to 1044.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0×0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
e  extended
p  primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1044, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044):
Using default value 1044
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@centos53 ~]# cat /etc/fstab
LABEL=/                /                      ext3   defaults       1 1
tmpfs                  /dev/shm               tmpfs  defaults       0 0
devpts                 /dev/pts               devpts gid=5,mode=620 0 0
sysfs                  /sys                   sysfs  defaults       0 0
proc                   /proc                  proc   defaults       0 0
LABEL=SWAP-sda2        swap                   swap   defaults       0 0
[root@centos53 ~]# mkfs -t ext3 /dev/sdc1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1048576 inodes, 2096474 blocks
104823 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2147483648
64 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
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@centos53 ~]# mkdir /backup
[root@centos53 ~]# mount -t ext3 /dev/sdc1 /backup/
[root@centos53 ~]# df -h
Filesystem           Size Used Avail Use% Mounted on
/dev/sda1Â Â Â Â Â Â Â Â Â Â Â Â Â 11GÂ 8.6GÂ 1.1GÂ 89% /
tmpfs                442M    0 442M  0% /dev/shm
/dev/sdc1Â Â Â Â Â Â Â Â Â Â Â Â 7.9GÂ 147MÂ 7.4GÂ Â 2% /backup
[root@centos53 ~]#
Enter the drive into the fstab file so that it is recognized and mounted upon system boot.
[root@centos53 ~]# vi /etc/fstab
LABEL=/                /                      ext3   defaults       1 1
tmpfs                  /dev/shm               tmpfs  defaults       0 0
devpts                 /dev/pts               devpts gid=5,mode=620 0 0
sysfs                  /sys                   sysfs  defaults       0 0
proc                   /proc                  proc   defaults       0 0
LABEL=SWAP-sda2        swap                   swap   defaults       0 0
/dev/sdc1              /backup                ext3   defaults       0 0
Regards,
Tom


