68181">
Command (m for help): p
Disk /dev/sda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00067588
Device Boot Start End Blocks Id System
/dev/sda1 1 95 763056 82 Linux swap / Solaris
/dev/sda2 * 96 868 6209122+ 83 Linux
/dev/sda3 869 1958 8755425 83 Linux
/dev/sda4 1959 2610 5237190 5 Extended
/dev/sda5 1959 2610 5237158+ 83 Linux
Command (m for help): w
6、用mkfs命令将其格式化为ext3格式。
mkfs.ext3 /dev/sda5
7、增加文件夹/opt/sda5.这里增加的文件夹是为了挂载新增加的分区。
mkdir -p /opt/sda5
8、挂载/dev/sda5到/opt/sda5下
hawkzy:~ #mount /dev/sda5 /opt/sda5
查看:
[email=hawkzy@hawkzy]hawkzy@hawkzy[/email]:~> df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 6111520 5433528 367536 94% /
udev 648032 60 647972 1% /dev
/dev/sda3 8617868 7008780 1171320 86% /home
/dev/sda5 5154852 141440 4751556 3% /opt/sda5
本文来源:不详 作者:佚名