here are the simple steps that made me through.
- Physically added the new hard drive ( Not yet partitioned )
- ls /dev/sd*
- This will give you a list of devices, you should be able to identify the device which you have recently added, it was easy for me as I saw something like this
- /dev/sda /dev/sda1 /dev/sda2 /dev/sda5 /dev/sdb
- As /dev/sda seems to be portioned /dev/sdb is the new hard drive.
- Partition the new hard disk
- cfdisk /dev/sdb
- I created just 1 partition, you may have your own preferences.
- Format the partition
- mkfs -t ext3 /dev/sdb1
- Configure the system so as to auto mount the drive ever time you boot the system.
- Edit the /etc/fstab file
- vi /etc/fstab
- add the following line
- /dev/sdb1 /storage ext3 defaults 1 2
- Just to check if the file was correctly edited, type "mount -a" if no error is shown you are done.
- no need to reboot you new hard disk is accessible through /storage
No comments:
Post a Comment