免费注册 查看新帖 |

Chinaunix

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

请教 茫茫的/dev/dsk 中哪个才是我的分区? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-26 13:54 |只看该作者 |倒序浏览
本帖最后由 openindiana 于 2011-12-26 17:03 编辑

我是在虚拟机上安装的系统.
虚拟机有一块硬盘.
安装的时候在硬盘里分了一个区,作为根池.
比如 20 g 分了个 10 G 出来,剩余 10 g .

装完系统以后,想再利用剩余的 10 g .
打开系统的 /dev/dsk 看了一下,好家伙, 七大姑八大姨的什么都有.
都是指向device 下的连接, 有些还是占座的, device 下根本没有那个链接指向的东西.

在linux 操作系统下 如果给  sdc 分区会出现 sdc0 , sdc1 ... 这样的分区.
solaris 下怎么没分区就出来这么多?

给剩余的10个g 用format 分一个区以后也不知道到底在系统里怎么找到那个分区.

而且不是说 slice 组多可以有8 个么, 怎么可以看到 16 个, 新版本扩展了?

本人菜鸟的很,请高手指点一二.
谢谢!

论坛徽章:
0
2 [报告]
发表于 2011-12-26 14:01 |只看该作者
root@openindiana:/dev/dsk# ls -la
total 62
drwxr-xr-x 107 root sys  107 2011-09-12 19:01 .
drwxr-xr-x 248 root sys  248 2011-12-26 13:32 ..
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0p0 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:q
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0p1 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:r
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0p2 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:s
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0p3 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:t
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0p4 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:u
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s0 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:a
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s1 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:b
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s10 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:k
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s11 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:l
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s12 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:m
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s13 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:n
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s14 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s15 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:p
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s2 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:c
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s3 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:d
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s4 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:e
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s5 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:f
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s6 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:g
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s7 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:h
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s8 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:i
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d0s9 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0:j
lrwxrwxrwx   1 root root  51 2011-12-06 11:53 c0d1 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:wd
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1p0 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:q
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1p1 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:r
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1p2 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:s
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1p3 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:t
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1p4 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:u
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s0 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:a
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s1 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:b
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s10 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:k
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s11 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:l
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s12 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:m
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s13 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:n
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s14 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s15 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:p
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s2 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:c
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s3 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:d
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s4 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:e
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s5 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:f
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s6 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:g
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s8 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:i
lrwxrwxrwx   1 root root  50 2011-12-06 11:53 c0d1s9 -> ../../devices/pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0:j
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0p0 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:q
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0p1 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:r
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0p2 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:s
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0p3 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:t
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0p4 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:u
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s0 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:a
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s1 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:b
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s10 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:k
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s11 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:l
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s12 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:m
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s13 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:n
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s14 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s15 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:p
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s2 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:c
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s3 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:d
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s4 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:e
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s5 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:f
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s6 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:g
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s7 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:h
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s8 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:i
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c1t0d0s9 -> ../../devices/pci@0,0/pci-ide@1,1/ide@1/sd@0,0:j
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0p0 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:q
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0p1 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:r
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0p2 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:s
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0p3 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:t
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0p4 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:u
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s0 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:a
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s1 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:b
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s10 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:k
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s11 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:l
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s12 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:m
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s13 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:n
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s14 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s15 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:p
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s2 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:c
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s3 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:d
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s4 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:e
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s5 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:f
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s6 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:g
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s7 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:h
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s8 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:i
lrwxrwxrwx   1 root root  47 2011-12-06 11:53 c2t0d0s9 -> ../../devices/pci@0,0/pci8086,2829@d/disk@0,0:j
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0p0 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:q
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0p1 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:r
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0p2 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:s
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0p3 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:t
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0p4 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:u
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s0 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:a
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s1 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:b
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s10 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:k
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s11 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:l
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s12 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:m
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s13 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:n
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s14 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s15 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:p
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s2 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:c
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s3 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:d
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s4 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:e
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s5 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:f
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s6 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:g
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s7 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:h
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s8 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:i
lrwxrwxrwx   1 root root  48 2011-12-06 11:53 c2t2d0s9 -> ../../devices/pci@0,0/pci8086,2829@d/cdrom@2,0:j
root@openindiana:/dev/dsk#

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:54:45
3 [报告]
发表于 2011-12-26 15:09 |只看该作者
看看solaris磁盘的命名规则,很好理解的

论坛徽章:
0
4 [报告]
发表于 2011-12-26 15:43 |只看该作者
回复 3# yiguihuo


我的虚拟机里只有1个硬盘,1个光驱.
硬盘也只给根池分了一个区.

我现在搞不太清楚 /dev/dsk 下面怎么这么多东西.

我是和 redhat linux 对比着看这些东西的.

linux 里只有分一个区以后才会出现那个分区, 这个我没分过区就出来这么多,不知道这些是怎么回事.

另外 cdrom@2,0:q , cdrom@2,0:k .. 这些应该是属于光驱的, 怎么一个光驱会有这么多 :a :b :c 的东西也看不懂.


我找到的资料只有说 c 代表什么 t 代表什么 s代表什么 p 代表什么 .
可是按照资料说的因该只有 一个光驱 和一个硬盘的名字.
不懂现在 /dev/dsk 下面怎么这么多.


高手有资料给复制一段看一下,或者给大概讲解一下.
谢谢!

论坛徽章:
0
5 [报告]
发表于 2011-12-26 15:50 |只看该作者
我本身不是从事操作系统相关的工作的.
只是比较喜欢solaris 这个系统. 因为它是个unix 系统,而且能装在普通的电脑上.
这些让人感觉比较亲民, 不像其他的unix要花几十上百万才能在里面敲个命令.

现在装在虚拟机上体验一下,但是很多很基础的东西却找不到说明.
能找到的总是什么unix 的光荣发展历史,要么就是很高级的操作说明.

偏偏就是这些材料都不屑一顾的东西我搞不懂.
希望高手能给讲解一下.

论坛徽章:
0
6 [报告]
发表于 2011-12-26 16:16 |只看该作者
df  -h直接查看

论坛徽章:
0
7 [报告]
发表于 2011-12-26 16:57 |只看该作者
感谢各位
我自己再找资料研究一下

论坛徽章:
0
8 [报告]
发表于 2011-12-27 11:22 |只看该作者
{:3_185:}雷到了

论坛徽章:
0
9 [报告]
发表于 2012-01-02 13:15 |只看该作者
回复 8# 8894106


什么雷到了?
我问的问题么?

如果知道怎么回事还请赐教一二, 本人菜的很, 就是想知道这些设备 a b c d 的怎么会有这么多,而不是solaris 10 说的最多8 个.
另外还想找到一个盘fdisk 出一个分区以后哪个才是新划分出的分区.
虚拟机上就一个磁盘, 目前只划分了一半的磁盘容量做rpool 的分区, 剩下的一半再划个分区出来就不知道该怎么确定哪个才是新划分出来的分区了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP