Skip to content

Is it possible to add an additional partition while rpi-clone performs an SD to NVMe clone? #52

@ERSBrad

Description

@ERSBrad

tl;dr: Can I create additional partitions with the rpi-clone script itself, or do I need an external tool? I see the -p flag, but I don't understand it completely tbh.

I currently have an Ansible script/role that takes a fresh RPI (5) Imager Raspbian image, updates the packages, clones from SD to NVME, changes the boot order and reboots before installing a bunch of other stuff. This works amazing, but I didn't realize I wanted to go the MicroCeph route until I started digging into HA storage solutions.

RPI Clone by default partitions my NVME drives this way on each device:

Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: ***                  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: ***

Device         Boot   Start        End    Sectors   Size Id Type
/dev/nvme0n1p1         8192    1056767    1048576   512M  c W95 FAT32 (LBA)
/dev/nvme0n1p2      1056768 2000409263 1999352496 953.4G 83 Linux

Is it possible to add nvme0n1p3 on each of my devices via rpi-clone so that I can use the additional partition for MicroCeph? Any recommendations on partition sizes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions