I am having some strange difficulty formatting a GPT partition within Sculpt

Martin Stein martin.stein at genode-labs.com
Sun May 23 11:43:41 CEST 2021


Hi baconicsynergy,

I'm not an expert regarding this, but it seems that the Sculpt Manager
doesn't expect more than 9 partions on a disk. In
repos/gems/src/app/sculpt_manager/model/storage_device.h, in the
part_block configuration in line 228, it generates policies for
partition labels 1-9. This is why your part_block rejects the mke2fs
session request for the partition with "no policy defined for label
'12'". Consequently, your mke2fs dies with "Block-session creation
failed" and "No such file or directory".

I created a quickfix on my branch
https://github.com/m-stein/genode/tree/sculpt-21.03b-baconicsynergy.
Could you give it a try? I hope this is the only place where the Sculpt
Manager assumes such a limit. Maybe we should come up with a more
generic solution to this problem.

Cheers,
Martin

On 22.05.21 08:18, baconicsynergy--- via users wrote:
> Hello friends!!
> 
> Lately, I've taken to multi-booting a whole bunch of different operating
> systems on my Thinkpad x250 with my new 1TB SSD for educational
> purposes. And, I find it very humorous to have such a varied collection
> of OS's and I enjoy finding ways to get them to play nice with each
> other. So far I've multibooted Solaris 11, Windows 10, OpenBSD 6.9, Arch
> Linux, Ubuntu Studio 21.04, Rocky Linux 8.3, Haiku R1/Beta2, in that
> order, and I've saved the last partition for Genode. I'm using rEFInd as
> my boot loader.
> 
> Here is my gdisk output for my SSD:
> GPT fdisk (gdisk) version 1.0.6
> 
> Partition table scan:
>  MBR: protective
>  BSD: not present
>  APM: not present
>  GPT: present
> 
> Found valid GPT with protective MBR; using GPT.
> Disk /dev/sda: 1953525168 sectors, 931.5 GiB
> Model: CT1000BX500SSD1  
> Sector size (logical/physical): 512/512 bytes
> Disk identifier (GUID): EEBD44A5-B5DA-7244-965D-F4FB68FCEB64
> Partition table holds up to 128 entries
> Main partition table begins at sector 2 and ends at sector 33
> First usable sector is 34, last usable sector is 1953525134
> Partitions will be aligned on 256-sector boundaries
> Total free space is 10206 sectors (5.0 MiB)
> 
> Number  Start (sector)    End (sector)  Size       Code  Name
>   1            2048         4196351   2.0 GiB     EF00  EFI System
> Partition
>   2         4196352       109037311   50.0 GiB    BF01   
>   3       109037312       109053951   8.1 MiB     BF07   
>   4       109053952       109086719   16.0 MiB    0C01  Microsoft
> reserved ...
>   5       109086720       633341951   250.0 GiB   0700  Basic data
> partition
>   6       633341952      1052772351   200.0 GiB   A600  OpenBSD disklabel
>   7      1052772352      1577060351   250.0 GiB   8300  Linux filesystem
>   8      1577060352      1593837567   8.0 GiB     8200  Linux swap
>   9      1593837568      1761609727   80.0 GiB    8300   
>  10      1761609728      1845487615   40.0 GiB    8300   
>  11      1845495808      1897924607   25.0 GiB    EB00  Haiku BFS
>  12      1897924608      1953525134   26.5 GiB    0700  Microsoft basic data
> 
> When I attempt to format the final partition from within Sculpt 21.03b,
> I get a strange error:
> 
> ...
> [runtime] child "ahci-0.part_block"
> [runtime]   RAM quota:  7944K
> [runtime]   cap quota:  66
> [runtime]   ELF binary: part_block
> [runtime]   priority:   2
> [runtime]   provides service Block
> [runtime] child "ahci-0.12.mke2fs"
> [runtime]   RAM quota:  102152K
> [runtime]   cap quota:  466
> [runtime]   ELF binary: mke2fs
> [runtime]   priority:   2
> [runtime -> ahci-0.part_block] Partition 1: LBA 2048 (4194304 blocks)
> type: 'c12a7328-f81f-11d2-ba4b-00a0c93ec93b' name: 'EFI System
> Partition'
> [runtime -> ahci-0.part_block] Partition 2: LBA 4196352 (104840960
> blocks) type: '6a898cc3-1dd2-11b2-99a6-080020736631' name: ''
> [runtime -> ahci-0.part_block] Partition 3: LBA 109037312 (16640 blocks)
> type: '6a945a3b-1dd2-11b2-99a6-080020736631' name: ''
> [runtime -> ahci-0.part_block] Partition 4: LBA 109053952 (32768 blocks)
> type: 'e3c9e316-0b5c-4db8-817d-f92df00215ae' name: 'Microsoft reserved
> partition'
> [runtime -> ahci-0.part_block] Partition 5: LBA 109086720 (524255232
> blocks) type: 'ebd0a0a2-b9e5-4433-87c0-68b6b72699c7' name: 'Basic data
> partition'
> [runtime -> ahci-0.part_block] Partition 6: LBA 633341952 (419430400
> blocks) type: '824cc7a0-36a8-11e3-890a-952519ad3f61' name: 'OpenBSD
> disklabel'
> [runtime -> ahci-0.part_block] Partition 7: LBA 1052772352 (524288000
> blocks) type: '0fc63daf-8483-4772-8e79-3d69d8477de4' name: 'Linux
> filesystem'
> [runtime -> ahci-0.part_block] Partition 8: LBA 1577060352 (16777216
> blocks) type: '0657fd6d-a4ab-43c4-84e5-0933c84b4f4f' name: 'Linux swap'
> [runtime -> ahci-0.part_block] Partition 9: LBA 1593837568 (167772160
> blocks) type: '0fc63daf-8483-4772-8e79-3d69d8477de4' name: ''
> [runtime -> ahci-0.part_block] Partition 10: LBA 1761609728 (83877888
> blocks) type: '0fc63daf-8483-4772-8e79-3d69d8477de4' name: ''
> [runtime -> ahci-0.part_block] Partition 11: LBA 1845495808 (52428800
> blocks) type: '42465331-3ba3-10f1-802a-4861696b7521' name: 'Haiku BFS'
> [runtime -> ahci-0.part_block] Partition 12: LBA 1897924608 (55600527
> blocks) type: 'ebd0a0a2-b9e5-4433-87c0-68b6b72699c7' name: 'Microsoft
> basic data'
> [runtime] child "ahci-0.part_block" announces service "Block"
> [runtime -> ahci-0.part_block] Warning: no policy defined for
> label '12'
> [runtime -> ahci-0.part_block] Error: rejecting session request, no
> matching policy for '12'
> [runtime -> ahci-0.12.mke2fs] Error: Block-session creation failed
> (ram_quota=145408, cap_quota=5, tx_buf_size=131072, label="default")
> [runtime -> ahci-0.12.mke2fs] Error: failed to create <block> VFS
> node
> [runtime -> ahci-0.12.mke2fs] Error: name="block"
> [runtime -> ahci-0.12.mke2fs] Error: label="default"
> [runtime -> ahci-0.12.mke2fs] Error: block_buffer_count="128"
> [runtime -> ahci-0.12.mke2fs] mke2fs 1.42.9 (28-Dec-2013)
> [runtime -> ahci-0.12.mke2fs] mkfs.ext2: No such file or directory while
> trying to determine filesystem size
> [runtime] child "ahci-0.12.mke2fs" exited with exit value 1
> [leitzentrale -> manager] Error: file-system creation failed
> ...
> 
> I really want Genode to take part in this wonderful collection I've
> built. I wonder why it won't format?
> 
> 
> 
> 
> 
> _______________________________________________
> Genode users mailing list
> users at lists.genode.org
> https://lists.genode.org/listinfo/users
> 



More information about the users mailing list