linux社区爱心援助Linux认证系列教程业界动态站务新闻公司招聘建议留言网址大全LPI专题CISCO专题
设为首页
加入收藏
管理团队
JSP  
JAVA  
PERL  
 您的位置:首页 > 专题栏目 > LPI >
栏目导栏
  LPI
  cisco
资料搜索
热门文章
·LPI 101认证学习1-硬件和体系结
· LPI 101认证学习7-Linux安装与
·LPI 101认证学习26-X Window 系
·LPI 101认证学习8-Linux安装与
·LPI 101认证学习15-GNU和UNIX命
·LPI 101认证学习28-X Window 系
·LPI 101认证学习10-Linux安装与
·LPI 101认证学习11-GNU和UNIX命
·LPI 101&102 2007年考试大纲
·LPI 101认证学习18-设备、Linu
·LPI 101认证学习27-X Window 系
·LPI 101认证学习14-GNU和UNIX命
·LPI 101认证学习12-GNU和UNIX命
·LPI考试流程
· LPI 101认证学习9-Linux安装与
最新文章
·LPI 101&102 2007年考试大纲
·LPI 302中文考试大纲
·LPI 301中文考试大纲
·LPIC-3认证考试内容最终确定
·LPI 101认证学习28-X Window 系
·LPI 101认证学习27-X Window 系
·LPI 101认证学习26-X Window 系
·LPI 101认证学习25-设备、Linu
·LPI 101认证学习24-设备、Linu
·LPI 101 学习指南:一.安装网络
·LPI 101 学习指南:一.安装 本地
· 安装光盘介绍(The Installati
·LPI 101认证学习23-设备、Linu
·LinuxWorld上海开展 LPI与众多
·LPI 和 Canonical 联合发布Ubu
Google
 
LPI 101认证学习18-设备、Linux 文件系统与文件系统层次标准(FHS)之创建分区和文件系统
[ 作者:  加入时间:2006-11-30 13:31:58  来自:Linux联盟 ]
fZCLinux联盟
清单 7. 创建扩展分区

 

                                      

Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

e

Partition number (1-4): 3

First cylinder (2625-14593, default 2625):

Using default value 2625

Last cylinder or +size or +sizeM or +sizeK fZCLinux联盟
(2625-14593, default 14593):

Using default value 14593

 

Command (m for help): p

 

Disk /dev/hda: 120.0 GB, 120034123776 bytes

255 heads, 63 sectors/track, 14593 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot      start         End      Blocks   Id  System

/dev/hda1   *           1        2611    20972826    7  HPFS/NTFS

/dev/hda2            2612        2624      104422+  83  Linux

/dev/hda3            2625       14593    96140992+   5  Extended

 

Command (m for help):

 

现在创建一个交换分区,它是扩展分区中的一个逻辑分区。对于最后一个柱面,使用 +64(柱面)这个值,而不用自己进行计算。注意,这一次使用 t 命令将类型 82Linux 交换)分配给新创建的分区。如果不这样做,它会成为另一个类型 83Linux 数据)分区。

fZCLinux联盟
清单 8. 创建交换分区

 

                                      

Command (m for help): n

Command action

   l   logical (5 or over)

   p   primary partition (1-4)

l

First cylinder (2625-14593, default 2625):

Using default value 2625

Last cylinder or +size or +sizeM or +sizeK fZCLinux联盟
(2625-14593, default 14593): +64

 

Command (m for help): t

Partition number (1-5): 5

Hex code (type L to list codes): 82

Changed system type of partition 5 to 82 (Linux swap)

 

Command (m for help): p

 

Disk /dev/hda: 120.0 GB, 120034123776 bytes

255 heads, 63 sectors/track, 14593 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot      Start         End      Blocks   Id  System

/dev/hda1   *           1        2611    20972826    7  HPFS/NTFS

/dev/hda2            2612        2624      104422+  83  Linux

/dev/hda3            2625       14593    96140992+   5  Extended

/dev/hda5            2625        2689      522081   82  Linux swap

 

Command (m for help):

 

现在定义主 Linux 分区和 /home 分区。这一次指定大小为 +20480M +10240M,分别表示 20GB 10GB。让 fdisk 替我们计算柱面数。结果见清单 9

Linux联盟收集整理 ,转贴请标明原始链接,如有任何疑问欢迎来本站Linux论坛讨论

分页:1 2 3 [4] 5 6 7
评论】【加入收藏夹】【 】【打印】【关闭
※ 相关链接
 ·LPI 101认证学习17-GNU和UNIX命令之用正则表达式进行搜索  (2006-11-29 13:15:41)
 ·LPI 101认证学习16-GNU和UNIX命令之修改进程执行优先级  (2006-11-28 14:08:21)
 ·LPI 101认证学习15-GNU和UNIX命令之创建、监视和杀死进程  (2006-11-27 11:55:34)
 ·LPI 101认证学习14-GNU和UNIX命令之流、管道和重定向  (2006-11-24 11:51:52)
 ·LPI 101认证学习13-GNU和UNIX命令之执行基本的文件管理  (2006-11-23 12:11:21)
 ·LPI 101认证学习12-GNU和UNIX命令之文本流和过滤器  (2006-11-22 12:37:44)
 ·LPI 101认证学习11-GNU和UNIX命令之在命令行上进行操作  (2006-11-21 14:13:42)
 ·LPI 101认证学习10-Linux安装与包管理之RPM包管理  (2006-11-20 13:28:50)
 · LPI 101认证学习9-Linux安装与包管理之Debian 包管理  (2006-11-17 15:36:46)
 ·LPI 101认证学习8-Linux安装与包管理之管理共享库  (2006-11-16 15:00:44)