手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux下如何用fdisk新建分区

[日期:2013-03-14] 来源:51cto  作者:lfgwqc [字体:大 中 小]
上面显示已经建好一个主分区,一个逻辑分区,但是这些现在还没有生效我们需要保存退出。
 
Command (m for help): w #保存退出
 The partition table has been altered!
 
Calling ioctl() to re-read partition table.
 Syncing disks.
 
[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: 0xfaa2aa49
 
  Device Boot      Start        End      Blocks  Id  System
 /dev/sdb1              1        262    2104483+  83  Linux
 /dev/sdb4            263        785    4200997+  5  Extended
 /dev/sdb5            263        524    2104483+  83  Linux
 
再次查看就看到了/dev/sdb的分区信息,虽然现在我们看到进行分区了,但是内核kenel还没有识别为了不要重启将分区表写入kenel我们要用到partprobe工具:使kenel重新读取分区表。linux
相关资讯       fdisk  Linux fdisk分区  linux新建分区  fdisk分区 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款