1 / 6
文档名称:

Linux下fdisk使用方法.doc

格式:doc   大小:45KB   页数:6
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

Linux下fdisk使用方法.doc

上传人:86979448 2018/1/2 文件大小:45 KB

下载得到文件列表

Linux下fdisk使用方法.doc

相关文档

文档介绍

文档介绍:Linux下fdisk使用方法
理论知识:一块磁盘最多有4个分区,包括(主分区+扩展分区),扩展分区不能直接使用,需进行分区为逻辑分区,其数字从5开始。
首先在未开机前添加一块磁盘,然后开机。
[******@wangbin ~]# fdisk –l // 查看磁盘分区情况
Disk /dev/sda: GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux //系统引导分区
/dev/sda2 26 286 2096482+ 82 Linux swap / Solaris //交换分区
/dev/sda3 287 5221 39640387+ 83 Linux
Disk /dev/sdb: GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 1217 9775521 83 Linux
/dev/sdb2 1218 2434 9775552+ 83 Linux
Disk /dev/sdc: GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table // /dev/sdc磁盘没有有效的分区表,说明没有进行分区。
[******@wangbin ~]# fdisk /dev/sdc //对/dev/sdc进行分区
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.
The number of cylinders for this disk is set to 2610.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems