LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 12-31-2005, 09:36 AM   #1
zillah
Member
 
Registered: Oct 2004
Posts: 532

Rep: Reputation: 30
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 ?

Last edited by zillah; 12-31-2005 at 09:38 AM.
 
Old 12-31-2005, 10:37 AM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
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.

Last edited by saikee; 12-31-2005 at 10:48 AM.
 
Old 01-03-2006, 02:58 PM   #3
Maidros
Member
 
Registered: Jan 2004
Location: Haifa, Israel
Distribution: Debian, FreeBSD, Solaris
Posts: 101

Rep: Reputation: 15
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
 
Old 01-05-2006, 07:47 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,482

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.
 
Old 01-08-2006, 02:33 AM   #5
zillah
Member
 
Registered: Oct 2004
Posts: 532

Original Poster
Rep: Reputation: 30
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) ?
 
Old 01-08-2006, 05:16 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,482

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
logical partition to a primary one britcoms9 Linux - Newbie 4 01-20-2008 06:46 PM
Primary, Logical or Extended partition? mrpc_cambodia Linux - General 3 09-12-2004 11:10 PM
What is command to create logical drive in extended Partition ozy777ozy Fedora 1 09-08-2004 02:43 AM
Primary or Logical partition ? infernal Linux - Software 3 10-16-2001 05:16 PM
logical or primary partition Socrates Linux - Software 1 02-25-2001 03:50 AM


All times are GMT -5. The time now is 06:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration