最近在做一个电子盘, 增加了一个swap分区,开始云里雾里,后来发现是这么简单.(参考网上例子,但是自己又进行了整理,供网上朋友学习交流)
总结: 1.做了一个主分区为hdc1,用于存在系统文件和我的程序文件.
2.增加了一个交换分区,用于提高系统性能.(需要继续测试,应该会比原来性能高一些)
3.电子盘制作方法.
1.添加一块交换分区
使用fdisk命令
[root@mail /]# fdisk /dev/hdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n<