Linux系统增加硬盘的步聚如下:
1.安装硬盘
接好硬盘后,先检查有无设备文件(如/dev/hdb /dev/sdb 等),如果没有设备文件,可以用/dev/MAKEDEV来创建
cd /dev
.//MAKEDEV hdb
2.硬盘分区
[root@mail tmp]# fdisk /dev/hda
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n (创建一个新的分区)
Command action
e extended
p primary partition (1-4)
p (选p创建主分区)
Partition number (1-4): 1(输入主分区的编号)
First cylinder (1-xxxx,default 1) :1 (从第1个磁族开始)
Last cylinder or +sie or +sizeM or +sizeK (1-xxx,default xxx): 回车用黓认值
command (m for help): P (显示目前的分区情况)
command (m for help): w (将结果写入硬盘)
3.硬盘格式化
mke2fs /dev/hdb
4.挂载文件系统
mkdir /uuu
mount /dev/hdb /uuu
5.设置系统启动时自动挂载/uuu这个文件系统
vi /etc/fstab
/dev/hdb /uuu auto defaults 0 1
(设备名) (安装点) (文件系统类型) (安装选项) (备份频度)(fsck检查的次序)
阅读(1522) | 评论(0) | 转发(0) |