Partition and Mount
Make a partition and mount it to directory
Generate Partition
Let's assume that we have a disk named /dev/sdb
, then make partition with the disk.
This will bring up the fdisk
utility. Then we are going to generate partition: Just press n
and press enter
(if you do not want any options and are willing to use the whole disk)
Then use w
to write information to disk
Format Partition
Format partition using mkfs
:
This will generate file system of /dev/sdb1
as ext4
. If you would like other file systems, use this accordingly.
Mount Partition
Once generating partition and formatting a partition was done, it is time for mounting. Let's assume that we would like to mount partition/dev/sdb1
to /home2
directory.
This will mount /dev/sdb1
to /home2
directory.
Last updated