Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What determines if initialization or syncing should occur based on the destination devices current state? #53

Open
CodeBradley opened this issue Jan 18, 2025 · 1 comment

Comments

@CodeBradley
Copy link

CodeBradley commented Jan 18, 2025

I'm trying to figure out if the partitions need to be the exact same size as the destination disk or if they just need to exist in general? Having trouble identifying what determines which route to take.

Ultimately, I want rpi-clone to do an unattended setup on a new device and then add a third partition that I can use with CephFS (microceph) on an RPI 5 1TB NVMe SSD. It sounds like it would be better to partition the device first though to the sizes I want, adding the ~512MB FAT32 partition on nvme0n1p1, Rasbian on nvme0n1n2 (~500gb?) and microceph data on nvme0n1p3 (~500gb?). Reasoning being that it will save a ton of read and writes if I do the latter method.

@CodeBradley CodeBradley changed the title Can anyone share the lines that determine if initialization or syncing should occur based on the destination devices partitioning? What determines if initialization or syncing should occur based on the destination devices partitioning? Jan 18, 2025
@CodeBradley CodeBradley changed the title What determines if initialization or syncing should occur based on the destination devices partitioning? What determines if initialization or syncing should occur based on the destination devices current state? Jan 18, 2025
@framps
Copy link

framps commented Jan 18, 2025

As far as I can see it's this code which detects whether an initialization should be done.

Source and target filesystem types are compared. If they are different and should be synced an initialization is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants