Creation of partitionin the Linux filesystem.
# Creation of partitionin the Linux filesystem.
-----------------------------------------------
# First use the fdisk command and create a partition.
fdisk /dev/hda
Command (m for help): n
First cylinder (default): press enter
Last cylinder or +sizeM or sizeK: +100M - Size of partition.
Command (m for help): p - To see the p.t.
Command (m for help): w - To write the table to disk and exit
# To update the partition table use the following command or reboot the system.
partprobe /dev/hda
# Format the partition by using command,
mke2fs -j /dev/hda10 - Give the partition no.
# Create the mount point and mount the specified partition.
mkdir /mount
mount /dev/hda10 /mount
-----------------------------------------------
# First use the fdisk command and create a partition.
fdisk /dev/hda
Command (m for help): n
First cylinder (default): press enter
Last cylinder or +sizeM or sizeK: +100M - Size of partition.
Command (m for help): p - To see the p.t.
Command (m for help): w - To write the table to disk and exit
# To update the partition table use the following command or reboot the system.
partprobe /dev/hda
# Format the partition by using command,
mke2fs -j /dev/hda10 - Give the partition no.
# Create the mount point and mount the specified partition.
mkdir /mount
mount /dev/hda10 /mount
Comments