免费注册 查看新帖 |

Chinaunix

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

Solaris下如何mount Dos 文件系统 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-14 13:47 |只看该作者 |倒序浏览
How do I mount a DOS partition under Solaris?

Mounting a DOS partition under Solaris x86 is fairly simple. This
document assumes a hard disk(s) is already installed with one or more
DOS partitions. Note that it isn't necessary for the DOS partition you
want to mount to be on the same drive as Solaris.
Use the command:
# mount -F pcfs /dev/dsk/c0d0p0:c /mnt # IDE Drive
# mount -F pcfs /dev/dsk/c0t0d0p0:c /mnt # SCSI Drive
------------------------------
-----------------------^ | 1st DOS
partition
# mount -F pcfs /dev/dsk/c0d0p0:d /mnt # IDE Drive
# mount -F pcfs /dev/dsk/c1t5d0p0:d /dos2 # SCSI Drive
--------------------------------------^ | 2d DOS partition

Mounting with the -F option states what type of file system you are
attempting to mount. pcfs is the file system type, but there are other
types of file systems, such as ufs and hsfs.

# /dev/dsk/c0t0d0p0:c

This is the device name.

c0 (controller 0 meaning primary controller). Note: If you have more
then one controller in your system, whether they are mixed or not (i.e.
IDE, SCSI), the naming device will follow the numeric order of c0, c1,
c2, etc.

t0 (target ID, meaning SCSI target ID). This is a naming device of the
devices SCSI target. The SCSI target is 0-6.

d0 (disk 0 meaning primary disk). If the system in question had more
then 1 disk this would be d1.

p0 (partition 0 meaning the entire disk)

:c (DOS naming device for hard disk; i.e. c:, d:)

/mnt (mount point) The mount point can be any mount point that you
create. In this case this is the default mount point that a standard
Solaris system creates upon installation of the OS. Any other mount
point can be created by using the "mkdir command to create a mount point
directory. Example: # mkdir /pcfs After using this command to mount your
DOS partition, you will need to cd to that mount point in order to view
DOS files.
附录:
一、挂
windows
FAT分区后中文文件名看不到的问题。
这是因为Solaris 在kernel中不进行字符集的转换,所以象linux那样加codepage=cp936之类的是没用的。解决办法:
&j"{ M A:f sw0使用当前发布的opensolaris,又称solaris express (实际上是solaris 11的开发版本)。
http://www.sun.com/software/solaris/solaris-express/get.jsp
进入图形界面时,选择zh.UTF-8登录。
但请注意,最好不要在Solaris下修改/创建windows上的中文文件名。
二、挂windows分区指定的设备名。
假设你用的是x86, 只有一块盘,则挂载windows分区的设备名是 c0d0p0:x
其中c0代表磁盘控制器,d0代表第一块物理盘,p0代表该盘的主分区(实际上是整个磁盘,相当于linux上的/dev/hda).
x可以为c到z, 或大于0的整数。从硬盘的一个分区数起,第一个FAT分区是c或1, 第二个FAT分区是d, 以此类推。
               
                    
                    
                    
                        
                        
                        
                        
                             
                           
                                

                           
                           
                                
Reply
                           
                        
                    
                    
                    
               
            
            
            
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/73476/showart_1081022.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP