一、給硬盤分區orm
fdisk /dev/sda
Command (m for help): n
Command action
e extended
p primary partition (1-4)
輸入:e
Partition number (1-4): 1
First cylinder (1-9729, default 1):回車
Last cylinder or +size or +sizeM or +sizeK (1-9729, default 9729):回車
Command (m for help):w(保存退出)it
二、格式化硬盤io
fdisk -l
mkfs -t ext3 /dev/sda1
Writing superblocks and filesystem accounting information:直接回車。ast
三、掛載form
mkdir /testtest
mount -t ext3 /dev/sda1 /testfile
4、開機直接掛載
編輯/etc/fstab 文件
添加:/dev/sda1 /test ext3 defaults 1 1im