LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Mount primary prtition. And first logical drive in an Extended DOS partition (https://www.linuxquestions.org/questions/solaris-opensolaris-20/mount-primary-prtition-and-first-logical-drive-in-an-extended-dos-partition-398140/)

zillah 12-31-2005 09:36 AM

Mount primary prtition. And first logical drive in an Extended DOS partition
 
If I have got this scenario hard disk has been prtitioned like below :

Code:


    |                      |                      |-------------- extended -------------|   

    | Windows c: 3 GB |Solaris partition 4GB |Linux ext2 |Linux swap | Windows d:  |

    |                |                      |                      |            |

The easiest way to share data now is to do it through a FAT32partition. Solaris recognises it as partition of type pcfs.

It is specified as device:drive where drive is either the DOS logical drive letter (c through z) or a drive number (1 through 24).

Drive letter c is equivalent to drive number 1 and represents the Primary DOS partition on the disk; drive letters d through z are equivalent to drive numbers 2 through 24, and represent DOS drives within the Extended DOS partition.

mount -F pcfs device:drive /directroy-name

To mount the first logical drive ( d: ) in the Extended DOS partition from IDE0, in a directory /forum ,,,we use:

mount -F pcfs /dev/dsk/c0d0p0:d /forum.





If I want to mount c primary DOS partition FAT32, in a directory /thread,,,,,we use:

mount -F pcfs /dev/dsk/c0d0s0 :c /thread.



Why do I need to specifiy the p0 in the first mount while I have to specify s0 ?

saikee 12-31-2005 10:37 AM

I haven't mount a partition in Solaris and don't really know anything about it.

I am just curious that you are not expecting Solaris needs a mechanism to distinguish mounting a primary partition from a logical partition?

I am interested in your first mount statement as the Windows d: would have been regarded as the 3rd logical partition by both Dos/Windows and Linux but you have called it as the first logical partition in Solaris.

Maidros 01-03-2006 02:58 PM

Quote:

Originally Posted by zillah
If I have got this scenario hard disk has been prtitioned like below :

Code:


    |                      |                      |-------------- extended -------------|   

    | Windows c: 3 GB |Solaris partition 4GB |Linux ext2 |Linux swap | Windows d:  |

    |                |                      |                      |            |

The easiest way to share data now is to do it through a FAT32partition. Solaris recognises it as partition of type pcfs.

It is specified as device:drive where drive is either the DOS logical drive letter (c through z) or a drive number (1 through 24).

Drive letter c is equivalent to drive number 1 and represents the Primary DOS partition on the disk; drive letters d through z are equivalent to drive numbers 2 through 24, and represent DOS drives within the Extended DOS partition.

mount -F pcfs device:drive /directroy-name

To mount the first logical drive ( d: ) in the Extended DOS partition from IDE0, in a directory /forum ,,,we use:

mount -F pcfs /dev/dsk/c0d0p0:d /forum.





If I want to mount c primary DOS partition FAT32, in a directory /thread,,,,,we use:

mount -F pcfs /dev/dsk/c0d0s0 :c /thread.



Why do I need to specifiy the p0 in the first mount while I have to specify s0 ?

This link should give you the logic behind Solaris naming conventions.
http://multiboot.solaris-x86.org/

Regards,
Maidros

jlliagre 01-05-2006 07:47 AM

Quote:

Why do I need to specifiy the p0 in the first mount while I have to specify s0 ?
Using p0:<drive> to access pcfs logical drives is the only documented way, using s0:<drive> or whatever may work (or not), but is not supported.

zillah 01-08-2006 02:33 AM

Quote:

Using p0:<drive> to access pcfs logical drives is the only documented way, using s0:<drive> or whatever may work (or not), but is not supported.
Does that mean I can use p0:<drive> in both cases d and c drives (Logical and primary) ?

jlliagre 01-08-2006 05:16 AM

Primary partitions are already specified with p<number>, no need to add a suffix to access them.


All times are GMT -5. The time now is 05:08 AM.