Linux操纵fdisk东西成立分区的办法

相关游戏 相关文章 发表评论字体大小:【 | |

作者:佚名 2020-01-03 来源:本站整理    浏览:4     评论:0 条

  当Linux体系软盘另有很多空间的时分,咱们可以运用fdisk东西对体系停止分区,以谦足小我私家需供,这么fdisk东西要若何运用呢?上面小编便给各人引见高Linux运用fdisk建设分区的要领,感趣味的伴侣能够去理解高。

  尾先查看软盘疑息

  fdisk -l 若是有软盘有残剩空间便能够对其停止分区

  [root@bogon 桌里]# fdisk -l

  Disk /dev/sda: 85.9 GB, 85899345920 bytes

  255 heads, 63 sectors/track, 10443 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Sector size (logical/physical): 512 bytes / 512 bytes

  I/O size (minimum/optimal): 512 bytes / 512 bytes

  Disk identifier: 0x000471ad

  Device Boot Start End Blocks Id System

  /dev/sda1 * 1 26 204800 83 Linux

  Partition 1 does not end on cylinder boundary.

  /dev/sda2 26 3851 30720000 83 Linux

  /dev/sda3 3851 4106 2048000 82 Linux swap / Solaris

  /dev/sda4 4106 10444 50912256 5 Extended

  /dev/sda5 4106 10444 50911232 83 Linux

  Disk /dev/sdb: 21.5 GB, 21474836480 bytes

  255 heads, 63 sectors/track, 2610 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Sector size (logical/physical): 512 bytes / 512 bytes

  I/O size (minimum/optimal): 512 bytes / 512 bytes

  Disk identifier: 0x00000000

  #从下面看没/dev/sda空间曾经用完了,/dev/sdb出有运用。

  上面咱们对/dev/sdb 停止分区

  [root@bogon 桌里]# fdisk /dev/sdb

  Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

  Building a new DOS disklabel with disk identifier 0xfaa2aa49.

  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)

  WARNING: DOS-compatible mode is deprecated. It’s strongly reco妹妹ended to

  switch off the mode (co妹妹and ‘c’) and change display units to

  sectors (co妹妹and ‘u’)。

  Co妹妹and (m for help): m

  Co妹妹and 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

  m print this menu

  n add a new partition

  o create a new empty DOS partition table

  p print the partition table

  q quit without saving changes

  s create a new empty Sun disklabel

  t change a partition‘s system id

  u change display/entry units

  v verify the partition table

  w write table to disk and exit

  x extra functionality (experts only)

这些是你想要的吗?

相关游戏

网友评论

评论需审核后才能显示