Linux下fdisk使用方法.docVIP

  • 10
  • 0
  • 约9.85千字
  • 约 6页
  • 2016-11-30 发布于重庆
  • 举报
Linux下fdisk使用方法

Linux下fdisk使用方法 理论知识:一块磁盘最多有4个分区,包括(主分区+扩展分区),扩展分区不能直接使用,需进行分区为逻辑分区,其数字从5开始。 首先在未开机前添加一块磁盘,然后开机。 [root@wangbin ~]# fdisk –l // 查看磁盘分区情况 Disk /dev/sda: 42.9 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 83 Linux Disk /dev/sdb: 21.4 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: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/sdc doesnt contain a valid partition table // /dev/sdc磁盘没有有效的分区表,说明没有进行分区。 [root@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 wont 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 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) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): m //输入m得到帮助信息 Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos

文档评论(0)

1亿VIP精品文档

相关文档