> On 14. Aug 2025, at 10:43, Atiq Rahman <ati...@gmail.com> wrote:
> 
> Hi Joshua,
> Thanks.
> 
> I found that s0 mapped to ESP (boot EFI) partition on my system. I also found 
> that the newly created solaris partition mapped to s6. So, mostly slice 
> numbers seem to be 1 less than part# showed by `parted` that can be found in 
> the photo screenshot attached.
> 
> 


The “native” tools in illumos (and solaris) are format, prtvtoc, fmthard and 
fdisk; they tell you disk partition/slices numbers as they actually can be 
found in the system. 

fdisk/mbr partitions are named p1-p4 (as already written), with p0 historically 
used to access all of the disk (so you can actually write down the MBR record). 

format and prtvtoc/fmthard are using term “slice” for partitions; and slices 
are numbered from 0. In case of GPT partitioning, the device name to access all 
of the disk is the device name without trailing slice component. The confusing 
part is, if the disk has no GPT table, then there is no device name without 
slice component.

When using other software, you need to pay attention to slice/partition 
numbering (as you have discovered already).

For fun fact: FreeBSD has switched around the terms “slice” and “partition”. 
They are using “slice" for fdisk/mbr case and “partition” for everything else.

For time being, illumos does install EFI boot program on ESP as 
efi/boot/bootx64.efi — if you want to share ESP between different OS, you need 
to back up the existing efi/boot/bootx64.efi, put illumos version to, say, 
efi/illumos/loader64.efi, restore the original and create respective UEFI boot 
manager configuration. At this time, we can not create UEFI boot manager config 
from inside the illumos, so we do rely on default.

rgds,
toomas

> 
> On Wed, Aug 13, 2025 at 6:24 PM Joshua M. Clulow via openindiana-discuss 
> <openindiana-disc...@openindiana.org 
> <mailto:openindiana-disc...@openindiana.org>> wrote:
>> On Wed, 13 Aug 2025 at 17:53, Atiq Rahman <ati...@gmail.com 
>> <mailto:ati...@gmail.com>> wrote:
>> > I see that parted can list all the partitions and format can list some. 
>> > However, not all of them were listed under /dev/dsk or /dev/rdsk I could 
>> > only see p0 to p4 (I guess illumos skipped the linux partitions).
>> 
>> The p* devices are probably not what you're looking for.  The p0
>> device is generally "the whole disk", including access to the
>> partition table, etc.  The p1-4 devices are for access to the classic
>> MBR primary partitions, of which there can only be four.
>> 
>> If you've created a modern, EFI/GPT style partition table, and
>> format(8) can see those GPT partitions, then what you want are the s*
>> or "slice" devices, which is how we refer to them.  You should ideally
>> have one slice device for each GPT partition.
>> 
>> 
>> 
>> Cheers.
>> 
>> -- 
>> Joshua M. Clulow
>> http://blog.sysmgr.org <http://blog.sysmgr.org/>
>> 
>> _______________________________________________
>> openindiana-discuss mailing list
>> openindiana-disc...@openindiana.org 
>> <mailto:openindiana-disc...@openindiana.org>
>> https://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> illumos <https://illumos.topicbox.com/latest> / illumos-discuss / see 
> discussions <https://illumos.topicbox.com/groups/discuss> + participants 
> <https://illumos.topicbox.com/groups/discuss/members> + delivery options 
> <https://illumos.topicbox.com/groups/discuss/subscription>Permalink 
> <https://illumos.topicbox.com/groups/discuss/T74729cd92612e3e6-M5957fc4fb0ecdf75d59ec7f8><1000003926.jpg>

_______________________________________________
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev

Reply via email to