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 :slight_smile:

'format' says:

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

Hi,

In Solaris, it would normally be /dev/dsk/c2t0d0 (Controller 2, Target 0, Disk 0) this is then followed by the Slice id - which can be 0 to 7, with 2 usually being the whole disk and called backup.

Here it would look like you will use /dev/dsk/c2t0d0s0

If you are looking at an other partition on the disk that is NFS exported or you want to mount it directly, there are several things to check.

It may show as being on an other controller.
It may need an other machine available to serve the mount.

Regards

Gull04

Err, the slices live in the ZFS pool. 's' is for slice, 'p' is for partition. This is a partition, not a slice :wink:

There's a single disk and no NFS. There are no other controllers or targets.

You can get the fdisk partition table with:

fdisk -v -W - /dev/rdsk/c2t0d0p0

Linux /dev/sda10 is more than likely Solaris /dev/dsk/c2t0d0p10

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 :slight_smile: I'm guessing maybe the ninth one might be what I want, but

jnojr@solaris:~$ sudo mount -F pcfs /dev/dsk/c2t0d0p9:1 /mnt/global
mount: /dev/dsk/c2t0d0p9:1 is not a DOS filesystem.
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.

That's the ninth partition indeed. Don't append :x, that used to be a hack when Solaris wasn't providing a device for extended partition but this is no more needed with Solaris 11:

sudo mount -F pcfs /dev/dsk/c2t0d0p9 /mnt/global
1 Like