免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 605 | 回复: 21
打印 上一主题 下一主题

关于分区的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-02-18 09:44 |只看该作者 |倒序浏览
我现在的系统有一个分区/dev/hda2为30g,我想将该分区分为两个分区各位15g,我通过fdisk已经将它分为两个区/dev/hda2p1和/dev/hda2p2,但是我想mount文件系统的时候却发现/dev下没有hda2p1和p2的块文件,是不是要mknod一下,该怎么做请高手指点一下

论坛徽章:
0
2 [报告]
发表于 2004-02-18 10:24 |只看该作者

关于分区的问题

难道没有人知道吗?自己顶一下!

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
3 [报告]
发表于 2004-02-18 10:29 |只看该作者

关于分区的问题

没有这样的分区的。可以分成hda3,hda5。

论坛徽章:
0
4 [报告]
发表于 2004-02-18 10:38 |只看该作者

关于分区的问题

没明白,已经是30G的分区了,还能在分区上再分区,除非是DOS EXT分区。如果是,找找/dev/hda5、/dev/hda6。

论坛徽章:
0
5 [报告]
发表于 2004-02-18 11:21 |只看该作者

关于分区的问题

但是我hda2后面有其他的分区(hda3等等)啊,我把hda2删掉,在创建一个15g的hda2的话,就没有办法用剩余的15g空间了,new 一个分区的时候提示没有可用空间,我该怎么办?

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
6 [报告]
发表于 2004-02-18 11:24 |只看该作者

关于分区的问题

man fdisk看一下吧。你创建时选择扩展分区,然后再创建逻辑分区。

论坛徽章:
0
7 [报告]
发表于 2004-02-18 11:44 |只看该作者

关于分区的问题

[root@database data]# fdisk /dev/hda

The number of cylinders for this disk is set to 9729.
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): p

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        13    104391   83  Linux
/dev/hda2            14      3837  30716280   83  Linux
/dev/hda3          3838      6387  20482875   83  Linux
/dev/hda4          6388      9729  26844615    f  Win95 Ext'd (LBA)
/dev/hda5          6388      7662  10241406   83  Linux
/dev/hda6          7663      8172   4096543+  83  Linux
/dev/hda7          8173      8427   2048256   83  Linux
/dev/hda8          8428      8554   1020096   83  Linux
/dev/hda9          8555      8684   1044193+  82  Linux swap
/dev/hda10         8685      9729   8393931   83  Linux

Command (m for help): d
Partition number (1-10): 2

Command (m for help): p

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        13    104391   83  Linux
/dev/hda3          3838      6387  20482875   83  Linux
/dev/hda4          6388      9729  26844615    f  Win95 Ext'd (LBA)
/dev/hda5          6388      7662  10241406   83  Linux
/dev/hda6          7663      8172   4096543+  83  Linux
/dev/hda7          8173      8427   2048256   83  Linux
/dev/hda8          8428      8554   1020096   83  Linux
/dev/hda9          8555      8684   1044193+  82  Linux swap
/dev/hda10         8685      9729   8393931   83  Linux

Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
p
Selected partition 2
First cylinder (14-9729, default 14):
Using default value 14
Last cylinder or +size or +sizeM or +sizeK (14-3837, default 3837): 2550

Command (m for help): n
No free sectors available

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
8 [报告]
发表于 2004-02-18 12:19 |只看该作者

关于分区的问题

你当然不能用P了要用L。因为只能有四个主分区呀!

论坛徽章:
0
9 [报告]
发表于 2004-02-18 12:40 |只看该作者

关于分区的问题

谢谢好好先生,我用l也试了:

[root@database data]# fdisk /dev/hda

The number of cylinders for this disk is set to 9729.
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): d
Partition number (1-10): 2

Command (m for help): p

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        13    104391   83  Linux
/dev/hda3          3838      6387  20482875   83  Linux
/dev/hda4          6388      9729  26844615    f  Win95 Ext'd (LBA)
/dev/hda5          6388      7662  10241406   83  Linux
/dev/hda6          7663      8172   4096543+  83  Linux
/dev/hda7          8173      8427   2048256   83  Linux
/dev/hda8          8428      8554   1020096   83  Linux
/dev/hda9          8555      8684   1044193+  82  Linux swap
/dev/hda10         8685      9729   8393931   83  Linux

Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
l
No free sectors available

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
10 [报告]
发表于 2004-02-18 12:48 |只看该作者

关于分区的问题

你先把hda2删除,然后建一个l的分区,把所有的空间分给它。然后分成两个分区。你在win下分区也不熟练吧?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP