Before you start your partitioning process make sure the disk you are going to partition is un-mounted.
Step #1 : Partition the new disk using fdisk command
[root@oraapps ~]# fdisk -l | grep
'^Disk'
Disk /dev/hdb: 160.0 GB, 160041885696
bytes
Disk /dev/sda: 500.1 GB, 500107862016
bytes
Disk /dev/sdb: 160.0 GB, 160041885696
bytes
To partition the disk - /dev/sda, enter
[root@oraapps ~]# fdisk /dev/sda
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
Step#2 : Format the new disk using mkfs.ext3
command
[root@oraapps ~]#mkfs.ext3
/dev/sda1
Step#3 : Mount the new disk using mount command
First
create a mount point /disk1 and use mount command to mount
/dev/sdb1, enter:
[root@oraapps ~]#
mkdir /disk1
[root@oraapps ~]# mount /dev/sda1 /disk1
[root@oraapps ~]# mount /dev/sda1 /disk1
No comments:
Post a Comment