onie / onys partition issues

I’ve replaced the SSD in an SN2410 switch. Embedded ONIE and now trying to install Onyx. But it fails with this error:

=== Writing partition table to DISK1

Error: You requested a partition from 256MiB to 448MiB (sectors 524288…917503).

The closest location we can manage is 385MiB to 448MiB (sectors 788480…917503).

Error: Partition doesn’t exist.

== Creating ext3 filesystem on /dev/sda10 for VAR

mke2fs: No such device or address while trying to determine filesystem size

*** Could not make filesystem on /dev/sda10

== Cleanup

====== Ending image install with error at 20210827-124209

Error: writeimage failed, exiting.

====== Ending image manufacture with error at 20210827-124209

Error: failed running /etc/init.d/rcS.d/S10tms_dhcpc

Running /etc/init.d/rcS.d/S30tms_autostart

Any idea what this might be? Looks to me it’s trying to create partitions too large that it won’t fit on the disk?

Full output:

==================================================

Manufacture script starting

==================================================

== Using model: x86onie

== Using kernel type: smp

== System disk size: 60 GB

== Using layout: X86ONIE_32GB

== Using partition name-size list:

== Using device list: /dev/sda

== Using interface list: mgmts0 mgmts1

== Using interface naming: ifindex-sorted

== Smartd disabled

== Cluster enable: no

== Cluster ID: (none)

== Cluster description: (none)

== Cluster interface: (none)

== Cluster master virtual IP address: 0.0.0.0

== Cluster master virtual IP masklen: 0

== Cluster shared secret: (none)

== Cluster expected number of nodes: 0

  • Assigning specified interface names in ifindex-sorted order

– Mapping MAC: ec:0d:9a:7d:b6:86 from: eth0 to: mgmts0

– Mapping MAC: ec:0d:9a:7d:b6:87 from: eth1 to: mgmts1

== Using image from file: /hd-media/image-X86_64-3.8.2204.img

== Calling writeimage to image system

— Executing: /sbin/writeimage.sh -m -I -f /hd-media/image-X86_64-3.8.2204.img -v -k smp -L X86ONIE_32GB -d /dev/sda

====== Starting image install at 20210827-124005

==== Manufacturing image

==== Using layout: X86ONIE_32GB

==== Layout targets: DISK1

==== Using devices: /dev/sda

==== Using bootmgr: grub2

==== Hardware name: X86_64

==== Verifying no needed partitions currently mounted

==== Verifying targets can be repartitioned

[ 16.608646] sda: sda1 sda2

==== Verifying MTD partitions are the correct size

==== Verifying targets are big enough

==== Target change list: DISK1

== Free RAM: 7132MB.

== Ramdisk 3072MB for image extraction will be used.

==== Mounting tmpfs for working area

==== Tmpfs size used: 3072M

==== Copying image file from /hd-media/image-X86_64-3.8.2204.img

==== Verifying image integrity for image-X86_64-3.8.2204.img

  • Unpacked directory is /tmp/mnt_image_wi/tmpfs/unzip

  • Verifying hashes

  • Done

== Running version: X86_64 3.8.2204 2019-12-29 16:11:11 x86_64

== Image version: X86_64 3.8.2204 2019-12-29 16:11:11 x86_64

== Image size: 659 MB / 1755 MB uncompressed

==== Uncompressing source image file: /tmp/mnt_image_wi/tmpfs/unzip/image-X86_64-x86_64-x86_64-20191229-161111.tbz to /tmp/mnt_image_wi/tmpfs/unzip/image-X86_64-3.8.2204.tar

==== Disk partitioning

=== Calculating gpt partition table for DISK1

== Device size: 57241 M

== Allocated fixed size: 30104 M

== Unallocated by fixed: 27073 M

== Unallocated after growth: 27137 M

Model: ATA SFSA060GU4AA2TO- (scsi)

Disk /dev/sda: 57242MiB

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Disk Flags:

Number Start End Size File system Name Flags

1 1.00MiB 257MiB 256MiB fat16 EFI System boot, hidden

2 257MiB 385MiB 128MiB ext4 ONIE-BOOT hidden

=== Writing partition table to DISK1

Error: You requested a partition from 256MiB to 448MiB (sectors 524288…917503).

The closest location we can manage is 385MiB to 448MiB (sectors 788480…917503).

Error: Partition doesn’t exist.

Model: ATA SFSA060GU4AA2TO- (scsi)

Disk /dev/sda: 57242MiB

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Disk Flags:

Number Start End Size File system Name Flags

1 1.00MiB 257MiB 256MiB fat16 EFI System boot, hidden

2 257MiB 385MiB 128MiB ext4 ONIE-BOOT hidden

3 448MiB 640MiB 192MiB ext3 primary

4 640MiB 832MiB 192MiB ext3 primary

5 832MiB 3904MiB 3072MiB ext3 primary

6 3904MiB 6976MiB 3072MiB ext3 primary

7 6976MiB 7168MiB 192MiB ext3 primary

8 7168MiB 7360MiB 192MiB ext3 primary

9 7360MiB 57242MiB 49882MiB ext3 primary

==== Making filesystems

Partprobe

/dev/sda: gpt partitions 1 2 3 4 5 6 7 8 9

== Creating ext3 filesystem on /dev/sda4 for BOOT1

== Creating ext3 filesystem on /dev/sda5 for BOOT2

== Creating ext3 filesystem on /dev/sda3 for BOOTMGR

== Creating ext3 filesystem on /dev/sda8 for CONFIG

== Creating ext3 filesystem on /dev/sda9 for OUTPUT

[ 132.443719] random: crng init done

== Creating ext3 filesystem on /dev/sda6 for ROOT1

== Creating ext3 filesystem on /dev/sda7 for ROOT2

== Creating ext3 filesystem on /dev/sda10 for VAR

mke2fs: No such device or address while trying to determine filesystem size

*** Could not make filesystem on /dev/sda10

== Cleanup

====== Ending image install with error at 20210827-124209

Error: writeimage failed, exiting.

====== Ending image manufacture with error at 20210827-124209

Error: failed running /etc/init.d/rcS.d/S10tms_dhcpc

Running /etc/init.d/rcS.d/S30tms_autostart

(none) login:

Hi - please open a case at neworking-support@nvidia.com.

Please specify the switch serial number.