Creating partitioons for a new drive:
Using the fdisk -l command find the new disk. Let it be /dev/sda.
Once you give fdisk /dev/sda and 'n' it will ask whether primary or secondary partition. It will ask for the starting block number. Get the information from fdisk -l and give the number Then it will ask the size. Give +sizeM (Eg: +5000M).
fdisk /dev/sda
m - Help
n - new partition
w - To save and quit
mkfs -t ext3 /dev/sda1
If the new partition created is an extended partition, after creating the partition, run partprobe. Then again create a logical partition of required size using
fdisk /dev/sda
n
...
w
partprobe
mkfs -t ext3 /dev/sda5
mount /dev/sda5 /vz
====
Note: partprobe is a program that informs the operating system kernel of partition table changes, by requesting that the operating system re-read the partition table. Thus partprobe helps to create a new file system without rebooting the box.
Using the fdisk -l command find the new disk. Let it be /dev/sda.
Once you give fdisk /dev/sda and 'n' it will ask whether primary or secondary partition. It will ask for the starting block number. Get the information from fdisk -l and give the number Then it will ask the size. Give +sizeM (Eg: +5000M).
fdisk /dev/sda
m - Help
n - new partition
w - To save and quit
mkfs -t ext3 /dev/sda1
If the new partition created is an extended partition, after creating the partition, run partprobe. Then again create a logical partition of required size using
fdisk /dev/sda
n
...
w
partprobe
mkfs -t ext3 /dev/sda5
mount /dev/sda5 /vz
====
Note: partprobe is a program that informs the operating system kernel of partition table changes, by requesting that the operating system re-read the partition table. Thus partprobe helps to create a new file system without rebooting the box.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.