免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3722 | 回复: 2
打印 上一主题 下一主题

关于裸设备一问 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-08-30 13:26 |只看该作者 |倒序浏览
为何硬盘最后一个分区一直绑定不上去?\r\n\r\n[php]\r\nlinux:/dev# raw /dev/raw/raw16 /dev/sdb16\r\nCannot locate block device \'/dev/sdb16\' (No such file or directory)\r\nlinux:/dev# fdisk /dev/sdb\r\n\r\nCommand (m for help): n\r\nCommand action\r\n   l   logical (5 or over)\r\n   p   primary partition (1-4)\r\nl\r\nNo free sectors available\r\n\r\nCommand (m for help): x\r\nExpert command (m for help): m\r\nCommand action\r\n   b   move beginning of data in a partition\r\n   c   change number of cylinders\r\n   d   print the raw data in the partition table\r\n   e   list extended partitions\r\n   f   fix partition order\r\n   g   create an IRIX (SGI) partition table\r\n   h   change number of heads\r\n   m   print this menu\r\n   p   print the partition table\r\n   q   quit without saving changes\r\n   r   return to main menu\r\n   s   change number of sectors/track\r\n   v   verify the partition table\r\n   w   write table to disk and exit\r\n\r\nExpert command (m for help): e\r\n\r\nDisk /dev/sdb: 255 heads, 63 sectors, 522 cylinders\r\nNr AF  Hd Sec  Cyl  Hd Sec  Cyl     Start      Size ID\r\n 1 00   1   1    0 254  63  521         63    8385867 05\r\n 5 00   0   1   62 254  63  123     995967     996030 05\r\n 6 00   0   1  124 254  63  185    1991997     996030 05\r\n 7 00   0   1  186 254  63  192    2988027     112455 05\r\n 8 00   0   1  193 254  63  195    3100482      48195 05\r\n 9 00   0   1  196 254  63  198    3148677      48195 05\r\n10 00   0   1  199 254  63  200    3196872      32130 05\r\n11 00   0   1  201 254  63  202    3229002      32130 05\r\n12 00   0   1  203 254  63  204    3261132      32130 05\r\n13 00   0   1  205 254  63  211    3293262     112455 05\r\n14 00   0   1  212 254  63  224    3405717     208845 05\r\n15 00   0   1  225 254  63  521    3614562    4771305 05\r\n16 00   0   0    0   0   0    0          0          0 00\r\n\r\nExpert command (m for help): q\r\n\r\nlinux:/dev# fdisk /dev/sdb -l\r\n\r\nDisk /dev/sdb: 4294 MB, 4294967296 bytes\r\n255 heads, 63 sectors/track, 522 cylinders\r\nUnits = cylinders of 16065 * 512 = 8225280 bytes\r\n\r\n   Device Boot      Start         End      Blocks   Id  System\r\n/dev/sdb1               1         522     4192933+   5  Extended\r\n/dev/sdb5               1          62      497952   83  Linux\r\n/dev/sdb6              63         124      497983+  83  Linux\r\n/dev/sdb7             125         186      497983+  83  Linux\r\n/dev/sdb8             187         193       56196   83  Linux\r\n/dev/sdb9             194         196       24066   83  Linux\r\n/dev/sdb10            197         199       24066   83  Linux\r\n/dev/sdb11            200         201       16033+  83  Linux\r\n/dev/sdb12            202         203       16033+  83  Linux\r\n/dev/sdb13            204         205       16033+  83  Linux\r\n/dev/sdb14            206         212       56196   83  Linux\r\n/dev/sdb15            213         225      104391   83  Linux\r\n/dev/sdb16            226         522     2385621   83  Linux\r\nlinux:/dev# raw -qa\r\n/dev/raw/raw5:  bound to major 8, minor 21\r\n/dev/raw/raw6:  bound to major 8, minor 22\r\n/dev/raw/raw7:  bound to major 8, minor 23\r\n/dev/raw/raw8:  bound to major 8, minor 24\r\n/dev/raw/raw9:  bound to major 8, minor 25\r\n/dev/raw/raw10: bound to major 8, minor 26\r\n/dev/raw/raw11: bound to major 8, minor 27\r\n/dev/raw/raw12: bound to major 8, minor 28\r\n/dev/raw/raw13: bound to major 8, minor 29\r\n/dev/raw/raw14: bound to major 8, minor 30\r\n/dev/raw/raw15: bound to major 8, minor 31\r\n\r\nlinux:/dev# raw /dev/raw/raw16 /dev/sdb16\r\nCannot locate block device \'/dev/sdb16\' (No such file or directory)\r\n[/php]

论坛徽章:
0
2 [报告]
发表于 2005-08-30 15:48 |只看该作者
到16个设备时,己经没有剩余空间给它了,所以表面上创建成功,实际上只是一个虚假的设备而己,\r\n16 00   0   0    0   0   0    0          0          0 00\r\n一个sector都没有的设备是个空的,当然不能用了

论坛徽章:
0
3 [报告]
发表于 2005-08-30 21:47 |只看该作者
可是fdisk /dev/sdb -l明明显示是还有2个多g的呀, 这又做何解释? 谢谢斑竹回答!\r\n/dev/sdb16            226         522     2385621   83  Linux
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP