Chinaunix首页 | 论坛 | 博客
  • 博客访问: 92364
  • 博文数量: 14
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 135
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-13 21:27
文章分类

全部博文(14)

文章存档

2008年(14)

我的朋友

分类:

2008-07-14 13:47:12

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.


附录:

一、挂 FAT分区后中文文件名看不到的问题。

这是因为Solaris 在kernel中不进行字符集的转换,所以象linux那样加codepage=cp936之类的是没用的。解决办法:
&j"{ M A:f sw0使用当前发布的opensolaris,又称solaris express (实际上是solaris 11的开发版本)。

进入图形界面时,选择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, 以此类推。

  Click to reply to this thread

阅读(1398) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~