LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-09-2016, 09:12 AM   #1
jnojr
Member
 
Registered: Sep 2007
Location: San Diego, CA
Posts: 223

Rep: Reputation: 20
Find device ID for partition in Solaris 11?


I have a laptop I'm setting up to multi-boot between Win 7, Solaris 11, Ubuntu 14.04, and CentOS 7. I have a common FAT32 partition for all of them to save data to. I'm less familiar with Solaris and haven't used it in years, and am really struggling :-)

'format' says:

Code:
AVAILABLE DISK SELECTIONS:
   0. c2t0d0 <ATA-Samsung SSD 850-2B6Q cyl 5013 alt 2 hd 224 sec 56>
      /pci@0,0/pci1028,49a@1f,2/disk@0,0

partition> print
Current partition table (original):
Total disk cylinders available: 5013 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
0       root    wm       1 - 5014       29.99GB    (5014/0/0) 62895616
1 unassigned    wm       0               0         (0/0/0)           0
2     backup    wu       0 - 5014       30.00GB    (5015/0/0) 62908160
3 unassigned    wm       0               0         (0/0/0)           0
4 unassigned    wm       0               0         (0/0/0)           0
5 unassigned    wm       0               0         (0/0/0)           0
6 unassigned    wm       0               0         (0/0/0)           0
7 unassigned    wm       0               0         (0/0/0)           0
8       boot    wu       0 -    0        6.12MB    (1/0/0)       12544
9 unassigned    wm       0               0         (0/0/0)           0

                                           Cylinders
  Partition   Status    Type          Start   End   Length    %
  =========   ======    ============  =====   ===   ======   ===
      1                 IFS: NTFS         0    16      17      0
      2                 IFS: NTFS        16  5015    5000     13
      3       Active    Solaris2       5016  10030    5015     13
      4                 EXT-DOS        10031  39868    29838     75
I cannot for the life of me find the correct device ID for the FAT32 slice. /dev/dsk/c2t0d0p0:4, c2t0d0p4:1, c2t0d0p4:e, nothing. Under Linux, it's /dev/sda10
 
Old 03-09-2016, 11:45 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
You can get the partition table with:

Code:
fdisk -v -W - /dev/rdsk/c2t0d0p0
Yours is likely c2t0d0p10
 
Old 03-09-2016, 09:08 PM   #3
jnojr
Member
 
Registered: Sep 2007
Location: San Diego, CA
Posts: 223

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by jlliagre View Post
You can get the fdisk partition table with:

Code:
fdisk -v -W - /dev/rdsk/c2t0d0p0
Code:
jnojr@solaris:~$ fdisk -v -W - /dev/rdsk/c2t0d0p0
* /dev/rdsk/c2t0d0p0 default fdisk table
* Dimensions:
*    512 bytes/sector
*     56 sectors/track
*    224 tracks/cylinder
*   39869 cylinders
*
* systid:
*    1: DOSOS12
*    2: PCIXOS
*    4: DOSOS16
*    5: EXTDOS
*    6: DOSBIG
*    7: FDISK_IFS
*    8: FDISK_AIXBOOT
*    9: FDISK_AIXDATA
*   10: FDISK_0S2BOOT
*   11: FDISK_WINDOWS
*   12: FDISK_EXT_WIN
*   14: FDISK_FAT95
*   15: FDISK_EXTLBA
*   18: DIAGPART
*   65: FDISK_LINUX
*   82: FDISK_CPM
*   86: DOSDATA
*   98: OTHEROS
*   99: UNIXOS
*  100: FDISK_NOVELL2
*  101: FDISK_NOVELL3
*  119: FDISK_QNX4
*  120: FDISK_QNX42
*  121: FDISK_QNX43
*  130: SUNIXOS
*  131: FDISK_LINUXNAT
*  134: FDISK_NTFSVOL1
*  135: FDISK_NTFSVOL2
*  165: FDISK_BSD
*  167: FDISK_NEXTSTEP
*  183: FDISK_BSDIFS
*  184: FDISK_BSDISWAP
*  190: X86BOOT
*  191: SUNIXOS2
*  238: EFI_PMBR
*  239: EFI_FS
*

* Id    Act  Bhead  Bsect  Bcyl    Ehead  Esect  Ecyl    Rsect      Numsect
  7     0    32     33     0       223    19     12      2048       204800    
  7     0    223    20     12      254    63     1023    206848     62707712  
  191   128  254    63     1023    254    63     1023    62920704   62908160  
  5     0    254    63     1023    254    63     1023    125831166  374287026
  131   0    254    63     1023    254    63     1023    125831168 1024000
  131   0    254    63     1023    254    63     1023    126857216 62914560
  130   0    254    63     1023    254    63     1023    189773824 16775168
  131   0    254    63     1023    254    63     1023    206551040 1046528
  11    0    254    63     1023    254    63     1023    270514176 229601280
  131   0    254    63     1023    254    63     1023    207599616 60817408.
Not sure what that's trying to tell me :-) I'm guessing maybe the ninth one might be what I want, but

Code:
jnojr@solaris:~$ sudo mount -F pcfs /dev/dsk/c2t0d0p9:1 /mnt/global
mount: /dev/dsk/c2t0d0p9:1 is not a DOS filesystem.
Quote:
Linux /dev/sda10 is more than likely Solaris /dev/dsk/c2t0d0p10
Code:
jnojr@solaris:~$ sudo mount -F pcfs /dev/dsk/c2t0d0p10 /mnt/global
mount: /dev/dsk/c2t0d0p10 is not a DOS filesystem.
jnojr@solaris:~$ sudo mount -F pcfs /dev/dsk/c2t0d0p10:0 /mnt/global
mount: No such device or address
jnojr@solaris:~$ sudo mount -F pcfs /dev/dsk/c2t0d0p10:1 /mnt/global
mount: /dev/dsk/c2t0d0p10:1 is not a DOS filesystem.
jnojr@solaris:~$ sudo mount -F pcfs /dev/dsk/c2t0d0p10:c /mnt/global
mount: /dev/dsk/c2t0d0p10:c is not a DOS filesystem.
jnojr@solaris:~$ sudo mount -F pcfs /dev/dsk/c2t0d0p10:e /mnt/global
mount: /dev/dsk/c2t0d0p10:e is not a DOS filesystem.
 
Old 03-10-2016, 02:09 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Quote:
Code:
jnojr@solaris:~$ fdisk -v -W - /dev/rdsk/c2t0d0p0
* /dev/rdsk/c2t0d0p0 default fdisk table
...
* systid:
...
*    5: EXTDOS
...
*   11: FDISK_WINDOWS
...
*  130: SUNIXOS
*  131: FDISK_LINUXNAT
...
*

* Id    Act  Bhead  Bsect  Bcyl    Ehead  Esect  Ecyl    Rsect      Numsect
  7     0    32     33     0       223    19     12      2048       204800    
  7     0    223    20     12      254    63     1023    206848     62707712  
  191   128  254    63     1023    254    63     1023    62920704   62908160  
  5     0    254    63     1023    254    63     1023    125831166  374287026
  131   0    254    63     1023    254    63     1023    125831168 1024000
  131   0    254    63     1023    254    63     1023    126857216 62914560
  130   0    254    63     1023    254    63     1023    189773824 16775168
  131   0    254    63     1023    254    63     1023    206551040 1046528
  11    0    254    63     1023    254    63     1023    270514176 229601280
  131   0    254    63     1023    254    63     1023    207599616 60817408.
...
I'm guessing maybe the ninth one might be what I want, but

Code:
jnojr@solaris:~$ sudo mount -F pcfs /dev/dsk/c2t0d0p9:1 /mnt/global
mount: /dev/dsk/c2t0d0p9:1 is not a DOS filesystem.
You are right, that's the ninth one but there is no need to append :x with Solaris 11.
Try:
Code:
sudo mount -F pcfs /dev/dsk/c2t0d0p9 /mnt/global
If it still fails, check the file system type:

Code:
$ sudo fstyp /dev/dsk/c2t0d0p9
It would be also interesting for you to post Linux "fdisk -l" output to understand why it uses sda10 and not sda9.
 
Old 03-10-2016, 09:46 AM   #5
jnojr
Member
 
Registered: Sep 2007
Location: San Diego, CA
Posts: 223

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by jlliagre View Post
You are right, that's the ninth one but there is no need to append :x with Solaris 11.
I won't be able to try again until tonight, but Oracle disagrees with you about the ':logical-drive'

https://docs.oracle.com/cd/E23824_01...#fsmount-80332

I will try with and without though, wouldn't be the first time the docs are not 100% accurate :-)
 
Old 03-10-2016, 01:32 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
The doc is 100% accurate, it is just showing the legacy way.

If you really want to use the :x syntax, you need to use the whole disk device which is c2t0d0p0 in your case, i.e.:

Code:
sudo mount -F pcfs /dev/dsk/c2t0d0p0:x /mnt/global
with x being some number between 1 and 10.

Starting with Solaris 11, the legacy syntax is still supported but I prefer to use the real device name since there is one available. This is why I suggested that way.
 
Old 03-11-2016, 03:21 PM   #7
jnojr
Member
 
Registered: Sep 2007
Location: San Diego, CA
Posts: 223

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by jlliagre View Post
You are right, that's the ninth one but there is no need to append :x with Solaris 11.
Try:
Code:
sudo mount -F pcfs /dev/dsk/c2t0d0p9 /mnt/global
Damndest thing, that worked!

Quote:
If it still fails, check the file system type:

Code:
$ sudo fstyp /dev/dsk/c2t0d0p9
Thanks for that tidbit, if I can remember it it may be handy in the future!

Quote:
It would be also interesting for you to post Linux "fdisk -l" output to understand why it uses sda10 and not sda9.
Well, it uses /dev/sda9 now. Something else is sda10 now. I don't know if I looked at it backwards.

Thanks!!!
 
  


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
grub-install cannot find device VolGroup on a ext4 partition superolmo Linux - Newbie 2 01-27-2012 08:11 PM
Why I cann't find the device created through device mapper in /proc/partitions yuanbor Linux - Software 2 05-16-2011 01:32 AM
using libusb find device VID & PID on Solaris xwhbin Solaris / OpenSolaris 2 05-19-2010 01:05 AM
Telnet to usb device on interface usb0 (and find IP of device) chickenlinux Linux - Networking 4 10-18-2009 11:18 AM
UL 1.0 GRUB: could not find device for /boot: not found or not a block device cma Linux - General 4 12-12-2005 03:35 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration