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

在Linux操作系统下增加新硬盘的方法

[日期:2007-07-01] 来源:Linux公社  作者:Linuxidc [字体:大 中 小]

3. 删除老硬盘分区(hdc1,hdc2,hdc5,hdc6)

Command (m for help): d

Partition number (1-6): 6


4. 保存修改信息

Command (m for help): w

The partition table has been altered!


Calling ioctl() to re-read partition table.

Syncing disks.


5. 检查保存情况,直到所有老分区都删除

[root@web root]# fdisk -l /dev/hdc


Disk /dev/hdc: 81.9 GB, 81964302336 bytes

255 heads, 63 sectors/track, 9964 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes


Device Boot Start End Blocks Id System

/dev/hdc2 3922 9964 48540397+ f Win95 Ext'd (LBA)

/dev/hdc5 3922 7840 31479336 7 HPFS/NTFS


6. 重新创建硬盘分区

[root@web root]# fdisk -l /dev/hdc


Disk /dev/hdc: 81.9 GB, 81964302336 bytes

255 heads, 63 sectors/track, 9964 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes


Device Boot Start End Blocks Id System


Command (m for help): d

No partition is defined yet!


Command (m for help): n

Command action

e extended

p primary partition (1-4)


7. 选择主分区(?)

p


8. 选择硬盘分区号(hdc1中的1)

Partition number (1-4): 1


9. 选择硬盘分区的第一柱面(从第2个开始,从1开始不安全(?))

First cylinder (1-9964, default 1): 2


10. 选择硬盘分区结束柱面

Last cylinder or +size or +sizeM or +sizeK (2-9964, default 9964): 5000


11. 保存修改信息

Command (m for help): w

The partition table has been altered!


Calling ioctl() to re-read partition table.

Syncing disks.


12. 创建hdc2

[root@web root]# fdisk /dev/hdc


The number of cylinders for this disk is set to 9964.

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): n

Command action

e extended

p primary partition (1-4)

p

Partition number (1-4): 2

First cylinder (1-9964, default 1): 5001

Last cylinder or +size or +sizeM or +sizeK (5001-9964, default 9964):

Using default value 9964


Command (m for help): w

The partition table has been altered!


Calling ioctl() to re-read partition table.

Syncing disks.

linux
【内容导航】
第1页:在Linux操作系统下增加新硬盘的方法 第2页:在Linux操作系统下增加新硬盘的方法
第3页:在Linux操作系统下增加新硬盘的方法 第4页:在Linux操作系统下增加新硬盘的方法
第5页:在Linux操作系统下增加新硬盘的方法
本文评论   查看全部评论 (1)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
第 1 楼
* cts 发表于 2010/6/21 3:36:27
如何解除LINUX崁入式系統硬碟被限制容量