Overview
SkyCore includes a drive cloning feature that creates backups of your Jetson Orin partitions. The tool usespartclone to efficiently clone partitions and can compress images to save space.
With the clone functionality, you can:
- Create backups of all partitions from a source device
- Compress images to save storage space
- Create archives for easy transfer or storage
- Create bootable clone drives for Jetson Orin devices
Requirements
- SkyCore installed on your system
- Root privileges (sudo)
partclonepackage installed- Optional:
lz4orgzipfor compression
Basic Usage
SOURCE_DEVICE is the device you want to clone (e.g., /dev/nvme0n1 or /dev/sda).
Command Line Options
| Option | Description |
|---|---|
--source, -s | Source device to clone (e.g., /dev/nvme0n1) |
--compress, -c | Compress the image files (using lz4 or gzip) |
--output, -o | Output directory for image files (default: current directory) |
--debug, -d | Enable debug mode (verbose output) |
--archive, -a | Create archive of backup (provide archive name without extension) |
--help, -h | Display help information |
Examples
Clone a drive to the current directory:Cloning Process
When you run the clone command, the following steps are performed:- The tool checks if
partcloneis installed - It identifies all partitions on the source device
- It unmounts any mounted partitions (with your confirmation)
- It backs up the partition table from the source device
- It clones each partition with the appropriate filesystem handler
- It compresses the images if the
--compressoption is used - It creates an archive if the
--archiveoption is used
Restoring Images
To restore cloned images to a target drive, use theskycore flash command:
Troubleshooting
Cannot access source device —Error: Source device /dev/XXX does not exist or is not a block device.
Make sure the source device is correctly connected and recognized by the system. Use lsblk to list available block devices.
