红联Linux门户
Linux帮助

安装笔记:在Linux中所有的设备都是以文件的形式存在

发布时间:2007-09-07 10:48:12来源:红联作者:itbeutchm
所以说linux里面只有文件和文件夹。命令是mount,我们先对第一个硬盘分区格式化。

SATA硬盘叫sda在/dev这个文件夹里。

/dev这个文件夹里面包含有所有计算机的设备。现在开始分区

fdisk /dev/sda

输入以后出现了
The number of cylinders for this disk is set to 14593.
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): m #在这里按m ,就会输出帮助;
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition #注:这是删除一个分区的动作;
l list known partition types #注:l是列出分区类型,以供我们设置相应分区的类型;
m print this menu #注:m 是列出帮助信息;
n add a new partition #注:添加一个分区;
o create a new empty DOS partition table
p print the partition table #注:p列出分区表;
q quit without saving changes #注:不保存退出;
s create a new empty Sun disklabel
t change a partition's system id #注:t 改变分区类型;
u change display/entry units
v verify the partition table
w write table to disk and exit #注:把分区表写入硬盘并退出;
x extra functionality (experts only) #注:扩展应用,专家功能;

如果就新硬盘直接就可以n,如果不是新硬盘可以d了再n。

把整个硬盘分成一个区操作完了之后w保存退出。然后格式化。

推荐将硬盘格式化成linux专用的ext3格式的。命令是
mkfs.ext3 /dev/sda1
依次把4个硬盘搞定。
文章评论

共有 0 条评论