Solaris下如何mount Dos 文件系统

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, 以此类推。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值