In the previous post we discussed how to re-size disk space,
Now lest say you want to add additional disk to your machine.
Follow the commands:
step 1 - Partition
# fdisk -l | grep Disk
you'll see the disks on your machine, we want to partition the new disk /dev/sdb
# fdisk /dev/sdbn - add new partition - follow the instruction
p - print the partition table - check the partition
w - write table to disk and exit
step 2 - Format
# mkdir /New-Disk
# mount /dev/sdb1 /New-Disk
step 4 - Update /etc/fstab
add the next line to the file:
Now check the changes:
# df -h
Read more >>
Now lest say you want to add additional disk to your machine.
Follow the commands:
step 1 - Partition
# fdisk -l | grep Disk
Disk /dev/sda: 549.7 GB, 549755813888 bytes Disk /dev/sdb: 107.3 GB, 107374182400 bytes
you'll see the disks on your machine, we want to partition the new disk /dev/sdb
# fdisk /dev/sdb
p - print the partition table - check the partition
w - write table to disk and exit
step 2 - Format
#
mkfs.ext3 /dev/sdb1
step 3 - Mount
# mkdir /New-Disk
# mount /dev/sdb1 /New-Disk
step 4 - Update /etc/fstab
#
vi /etc/fstab /dev/sdb1 /New-Disk ext3 defaults 1 2Save and close the file.
Now check the changes:
# df -h