-
Check to see how many drives are installed: You can do this using the fdisk command.
[root@default]# fdisk -l | grep '^Disk'
You should output similar to the following:
Disk /dev/sda: 251.0 GB, 251000193024 bytes
Disk /dev/sdb: 251.0 GB, 251000193024 bytes
A device name refers to the entire hard disk. For more information see Linux partition naming convention and IDE drive mappings .
To partition the disk - /dev/sdb, enter:
[root@default]# fdisk /dev/sdb
The basic fdisk commands you need are:-
m - print help
-
p - print the partition table
-
n - create a new partition
-
d - delete a partition
-
q - quit without saving changes
- w - write the new partition table and exit
-
- Format the new disk using mkfs.ext3 command:
To format Linux partions using ext2fs on the new disk, issue the following command:
[root@default]#mkfs.ext3 /dev/sdb1
- Mount the new disk using the mount command:
First, you'll need to create a mount point. We'll use /disk1. This is where we'll mount /dev/sdb1. Enter the following commands:
[root@default]# mkdir /disk1
[root@default]# mount /dev/sdb1 /disk1 - Edit /etc/fstab so the new drive will automatically mount to /disk1 on reboot
This step can be complicated, if you need assistance at this step, please call Dedicated Server Support at: 877-275-8763
Wednesday, April 29, 2009
How to aad a new disk in linux
Getting Started:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment