免费注册 查看新帖 |

Chinaunix

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

求助:solaris下的磁盘挂载 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-23 21:48 |只看该作者 |倒序浏览
                        主盘
               
                        windows系统
               
                        solaris系统
               

                      从盘
               
                        fat32
               
                        fat32
               
                        ntfs
               
                        ntfs
               
                        fat32
               
                        fat32
               

各位大侠们,帮帮小弟我把,我有两块硬盘,windows和solaris的系统都装在了主盘上,如今我想在solaris下挂载从盘上的分区,今天搞了好久都没搞定,已知我的windows系统所在的分区是c2t0d0p0:1,但从盘上的分区我一个都找不到。请问我这块从盘上的分区的每个分区的定位怎么写?用mount怎么将从盘上的fat分区挂载到我的solaris系统中?请指教。

用format能返回硬盘的位置,但不能识别分区:
AVAILABLE DISK SELECTIONS:
       0. c2t0d0 <DEFAULT cyl 7813 alt 2 hd 255 sec 63>
          /pci@0,0/pci1043,815a@8/disk@0,0
       1. c2t1d0 <drive type unknown>
          /pci@0,0/pci1043,815a@8/disk@1,0
Specify disk (enter its number)[1]: 1
format> partition
Current Disk Type is not set.



使用# df -k后返回如下信息
文件系统              千字节    用了    可用 容量      挂接在
/dev/dsk/c2t0d0s0    15496821 6742758 8599095    44%    /
/devices                   0       0       0     0%    /devices
/dev                       0       0       0     0%    /dev
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 2300240     992 2299248     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap2.so.1
                     15496821 6742758 8599095    44%    /lib/libc.so.1
fd                         0       0       0     0%    /dev/fd
swap                 2299968     720 2299248     1%    /tmp
swap                 2299288      40 2299248     1%    /var/run
/dev/dsk/c2t0d0s4    15496821   15385 15326468     1%    /second_root
/dev/dsk/c2t0d0s7    28732078 2319660 26125098     9%    /export/home
/dev/dsk/c0t0d0p0:1   975804  595372  380432    62%    /media/KINGSTON
/dev/dsk/c2t0d0p0:1  15351128 4535808 10815320    30%    /export/home/YoKing/Desktop/d

论坛徽章:
0
2 [报告]
发表于 2008-07-23 22:08 |只看该作者
从盘上是逻辑分区吧?用类似fdisk c2t0d0p0查看分区信息,:1表示该逻辑分区下的第一个分区,其他类似,看看输出情况

论坛徽章:
0
3 [报告]
发表于 2008-07-23 22:20 |只看该作者
再请问下,比如c2t0d0p0:2挂载逻辑分区,这里的0是指windows系统所在的分区吗?:2又指的是什么?

论坛徽章:
0
4 [报告]
发表于 2008-07-23 22:30 |只看该作者
原帖由 todaypuzzleme 于 2008-7-23 22:08 发表
从盘上是逻辑分区吧?用类似fdisk c2t0d0p0查看分区信息,:1表示该逻辑分区下的第一个分区,其他类似,看看输出情况

我用fdisk c2t0d0p0查看到的信息如下:
           
Total disk size is 19457 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
             Total disk size is 9729 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1                 Ext Win95         0  1912    1913     20
          2       Active    Solaris2       1913  9727    7815     80

但是我fdisk c2t1d0p0得到的信息是
             Total disk size is 19457 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
             Total disk size is 19457 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1                 EXT LBA           1  19456    19456    100

我不知道这两个是什么意思?

论坛徽章:
0
5 [报告]
发表于 2008-07-23 23:49 |只看该作者
怎么没人解答呢 ???????

论坛徽章:
0
6 [报告]
发表于 2008-07-23 23:57 |只看该作者
1                 Ext Win95         0  1912    1913     20
          2       Active    Solaris2       1913  9727    7815     80
1 ext win95就是第一块盘(c2t0d0)上的fat32分区,2就是solaris自己的分区,可以看到该分区处于激活状态
  1                 EXT LBA           1  19456    19456    100
第二块盘应该整个是一个扩展的逻辑分区,按照你上面表格的分区位置,FAT32分区的表达方式应该是
c2t1d0p0:1,c2t1d0p0:2,c2t1d0p0:5,c2t1d0p0:6

论坛徽章:
0
7 [报告]
发表于 2008-07-24 13:08 |只看该作者
原帖由 todaypuzzleme 于 2008-7-23 23:57 发表
1                 Ext Win95         0  1912    1913     20
          2       Active    Solaris2       1913  9727    7815     80
1 ext win95就是第一块盘(c2t0d0)上的fat32分区,2就是solaris自己的分 ...



感谢todaypuzzleme 大哥的回答,我按照你的提示,已经把我磁盘上的fat分区挂载到solaris中去了
# mount -F pcfs /dev/dsk/c2t1d0p0:1 /export/home/YoKing/Desktop/d
# mount -F pcfs /dev/dsk/c2t1d0p0:2 /export/home/YoKing/Desktop/e
# mount -F pcfs /dev/dsk/c2t1d0p0:5 /export/home/YoKing/Desktop/f
# mount -F pcfs /dev/dsk/c2t1d0p0:3 /export/home/YoKing/Desktop/g
# mount -F pcfs /dev/dsk/c2t1d0p0:4 /export/home/YoKing/Desktop/h

[ 本帖最后由 m84641693 于 2008-7-24 13:21 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2008-07-24 16:14 |只看该作者
呵呵!
看来Solaris新版的已经能好好支持EXT LBA的扩展分区了!

论坛徽章:
0
9 [报告]
发表于 2008-07-27 20:16 |只看该作者
原帖由 todaypuzzleme 于 2008-7-23 23:57 发表
1                 Ext Win95         0  1912    1913     20
          2       Active    Solaris2       1913  9727    7815     80
1 ext win95就是第一块盘(c2t0d0)上的fat32分区,2就是solaris自己的分 ...


正解。
恭喜楼主。挂载成功。

论坛徽章:
0
10 [报告]
发表于 2008-07-28 21:27 |只看该作者
其实呢,我也尝试了很久,我在uc上写了个帖子,有兴趣的可以去看看,这里的话,高手太多了,不敢拿来炫耀~~~
http://www.unix-center.net/bbs/v ... &extra=page%3D1
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP