linux在选定磁盘上删除所有分区,linux下如何删除磁盘分区

满意答案

02ae427d08e371d7e90d5b995e828d6d.png

Olivia983

2013.02.22

02ae427d08e371d7e90d5b995e828d6d.png

采纳率:46%    等级:11

已帮助:5398人

分区示例:比如分/dev/sda 硬盘  #: fdisk /dev/sda  The number of cylinders for this disk is set to 19457.  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)  Command (m for help): m #帮助,输入M  Command 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)  Command (m for help): d #删除分区  Partition number (1-8): 2  Command (m for help): p # 打印分区表  Disk /dev/sda: 160.0 GB, 160041885696 bytes  255 heads, 63 sectors/track, 19457 cylinders  Units = cylinders of 16065 * 512 = 8225280 bytes  Disk identifier: 0x0003ce53  Device Boot      Start         End      Blocks   Id  System  /dev/sda1   *           1        3825    30720000    7  HPFS/NTFS  /dev/sda3            7650       11474    30720000    7  HPFS/NTFS  /dev/sda4           11475       19457    64123447+   5  Extended  /dev/sda5           11475       14444    23856472+   7  HPFS/NTFS  /dev/sda6           19247       19457     1694826   82  Linux swap / Solaris  /dev/sda7           14445       15660     9767488+  83  Linux  /dev/sda8           15661       19246    28804513+  83  Linux  Partition table entries are not in disk order  Command (m for help): n #建立新分区  Command action  l   logical (5 or over)  p   primary partition (1-4)  p #主分区  Selected partition 2  First cylinder (3825-19457, default 3825): 可以选  Using default value 3825  Last cylinder, +cylinders or +size{K,M,G} (3825-7649, default 7649): 输入分区大小 比如100G  Using default value 7649  Command (m for help):

40分享举报

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值