免费注册 查看新帖 |

Chinaunix

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

[NetBSD] 关于磁盘分区的使用问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-11-29 16:15 |只看该作者 |倒序浏览
我在安装 NetBSD时,划分了2个分区

  1. # fdisk
  2. Disk: /dev/rwd0d
  3. NetBSD disklabel disk geometry:
  4. cylinders: 310019, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
  5. total sectors: 312500000

  6. BIOS disk geometry:
  7. cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
  8. total sectors: 312500000

  9. Partition table:
  10. 0: NetBSD (sysid 169)
  11.     start 63, size 104872257 (51207 MB, Cyls 0-6527), Active
  12. 1: NetBSD (sysid 169)
  13.     start 104872320, size 207627680 (101381 MB, Cyls 6528-19452/57/29)
  14.         PBR is not bootable: All bytes are identical (0x00)
  15. 2: <UNUSED>
  16. 3: <UNUSED>
  17. Bootselector disabled.
  18. First active partition: 0
  19. Drive serial number: 3221340161 (0xc001c001)
复制代码
从使用上看

  1. # df -g
  2. Filesystem   1G-blocks       Used      Avail %Cap Mounted on
  3. /dev/wd0a             1          0          1   1% /
  4. /dev/wd0f             4          0          4   0% /var
  5. /dev/wd0e            35          0         32   2% /usr
  6. /dev/wd0g             4          0          4   0% /home
  7. mfs:158               4          0          4   0% /tmp
  8. kernfs                0          0          0 100% /kern
  9. ptyfs                 0          0          0 100% /dev/pts
  10. procfs                0          0          0 100% /proc
复制代码
也只是使用了 50G,可关键是,我怎么使用 第二个BOIS分区


我使用 newfs -O 2 /dev/wd0h 提示 newfs: /dev/wd0h: open for read: Device not configured

请指点指点.

论坛徽章:
1
寅虎
日期:2013-09-29 23:15:15
2 [报告]
发表于 2010-11-30 08:46 |只看该作者
fdisk的下一步是怎操作的?

论坛徽章:
0
3 [报告]
发表于 2010-11-30 09:02 |只看该作者
请指点.

论坛徽章:
1
寅虎
日期:2013-09-29 23:15:15
4 [报告]
发表于 2010-11-30 10:10 |只看该作者
手头上没NetBSD,用disklabel看看,也许第二个分区的label并不一定是wd0h.

论坛徽章:
1
寅虎
日期:2013-09-29 23:15:15
5 [报告]
发表于 2010-11-30 10:18 |只看该作者
# disklabel wd1
# /dev/rwd1d:
type: unknown
disk: WDC WD800JD-75M
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 155009
total sectors: 156250000
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a:  36946224  86397570     4.2BSD   2048 16384     0  # (Cyl.  85711*- 122364*)
b:   2097648 123343794       swap                     # (Cyl. 122364*- 124445*)
c:  41142465  86397570     unused      0     0        # (Cyl.  85711*- 126527*)
d: 156250000         0     unused      0     0        # (Cyl.      0 - 155009*)
e:   4128642        63 Linux Ext2      0     0        # (Cyl.      0*-   4095*)
f:  82268865   4128705       NTFS                     # (Cyl.   4095*-  85711*)
g:   2098593 125441442     4.2BSD   2048 16384     0  # (Cyl. 124445*- 126527*)
h:  28708155 127540035     4.2BSD      0     0     0  # (Cyl. 126527*- 155008*)

论坛徽章:
0
6 [报告]
发表于 2010-11-30 10:47 |只看该作者
本帖最后由 BSD_KT 于 2010-11-30 10:49 编辑

关键是,现在看不到



# disklabel wd0
# /dev/rwd0d:
type: unknown
disk: SAMSUNG HE160HJ
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 310019
total sectors: 312500000
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a:   4195296        63     4.2BSD   2048 16384     0  # (Cyl.      0*-   4162*)
b:   4195296   4195359       swap                     # (Cyl.   4162*-   8324*)
c: 104872257        63     unused      0     0        # (Cyl.      0*- 104039)
d: 312500000         0     unused      0     0        # (Cyl.      0 - 310019*)
e:  75508272   8390655     4.2BSD   2048 16384     0  # (Cyl.   8324*-  83233*)
f:  10486224  83898927     4.2BSD   2048 16384     0  # (Cyl.  83233*-  93636*)
g:  10487169  94385151     4.2BSD   2048 16384     0  # (Cyl.  93636*- 104039)

论坛徽章:
0
7 [报告]
发表于 2010-11-30 10:56 |只看该作者

论坛徽章:
0
8 [报告]
发表于 2010-11-30 11:05 |只看该作者
disklable -e wd0
在行尾添加一行:
h:  207627680  104872320     4.2BSD   2048 16384     0  
保存。然后
newfs -O 2  /dev/rwd0h

论坛徽章:
0
9 [报告]
发表于 2010-11-30 11:17 |只看该作者
本帖最后由 BSD_KT 于 2010-11-30 11:22 编辑
disklable -e wd0
在行尾添加一行:
h:  207627680  104872320     4.2BSD   2048 16384     0  
保存。 ...
artech_cu 发表于 2010-11-30 11:05



    好了,可以用了,谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP