Find device ID for partition in Solaris 11?


 
Thread Tools Search this Thread
Operating Systems Solaris Find device ID for partition in Solaris 11?
# 1  
Old 03-09-2016
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
# 2  
Old 03-09-2016
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

Last edited by gull04; 03-09-2016 at 11:40 AM.. Reason: More Info
# 3  
Old 03-09-2016
Quote:
Originally Posted by gull04
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.
Err, the slices live in the ZFS pool. 's' is for slice, 'p' is for partition. This is a partition, not a slice ;-)

Quote:
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.
There's a single disk and no NFS. There are no other controllers or targets.
# 4  
Old 03-09-2016
You can get the fdisk partition table with:

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

Linux /dev/sda10 is more than likely Solaris /dev/dsk/c2t0d0p10
# 5  
Old 03-09-2016
Quote:
Originally Posted by jlliagre
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.

# 6  
Old 03-10-2016
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:

Code:
sudo mount -F pcfs /dev/dsk/c2t0d0p9 /mnt/global

This User Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Red Hat

This doesn't look like a partition table Probably you selected the wrong device.

Hi, I need to mount the device from this device # fdisk -l . . . Disk /dev/sdas: 2000.4 GB, 2000365289472 bytes 255 heads, 63 sectors/track, 243197 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size... (0 Replies)
Discussion started by: justbow
0 Replies

2. Solaris

Partition overlaps another partition while creating new parition in solaris

hi all while formatting hard disk i am getting following error. Partition 1 ends at 266338338 It must be between 34 and 143374704. label error: EFI Labels do not support overlapping partitions Partition 8 overlaps partition 1. Warning: error writing EFI. Label failed. I have formatted the... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

3. AIX

How to find all device on p570 when need do device firmware upgrade?

I need upgrade firmware for the device of p570, when I go to IBM FIX download website, there are a lot of device of p570 listed. How can I know what device I have on my p570? (4 Replies)
Discussion started by: rainbow_bean
4 Replies

4. Linux

shrinking root partition and using free space to create a block device

We are intending to protect a set of user specified files using LVM mirroring where the protected space on which the user files are stored is mirrored on an LV on a different disk. Our problem is that for a user with a custom layout has installed linux with 2 partitons for swap and / and there is... (0 Replies)
Discussion started by: kickdgrass
0 Replies

5. Solaris

Find a Fat32 partition under solaris 10 x86

Hello, I use Sun Solaris 10 under a x86 computer, and I want to mount a Fat32 partition who are stored in the same disk with the UFS filesystem. But, before mount this partition, I need to know is location in /dev/dsk Because there are a lot of file "c0t0d0" etc..., and I didn't find my... (4 Replies)
Discussion started by: willits
4 Replies
Login or Register to Ask a Question