Friday, March 16, 2012

Add new hard disk to linux system

Support that new hard disk is /dev/sdb
1. Setting Partitions

fdisk /dev/sdb

2. Formatting
mkfs -t ext3 /dev/sdb1

3. Mounting (mount to /data)
vi /etc/fstab
add the following line:
/dev/sdb1               /data                  ext3    defaults        1 2

mount /dev/sdb1
mount
df -h

No comments: