ocs-onthefly(8)
π ocs-onthefly β the Clonezilla manual page, bestie edition π
okay so real talk, this is ocs-onthefly from the Clubzillaβ¦ sorry, Clonezilla manual, section 8 (that's the admin/system-commands section, iykyk). She clones disks on the fly. She's iconic. Let's go π¦
β¨ SYNOPSIS β¨
ocs-onthefly [OPTION]
that's it. that's the whole vibe. one optional-options situation and she's off π
πΈ DESCRIPTION πΈ
ocs-onthefly does "disk to disk" or "partition to partition" cloning on-the-fly, and she does it either locally or over the network. no cap. that's her whole job and she's obsessed with it π
π OPTIONS π
like. there are a LOT. she's thorough. we respect that. every single one, no skipping, periodt:
-b,-batch,--batch,--batch-modeβ runs the program in batch mode, which is dangerous! π meaning: no prompt, no waiting for you to confirm anything, she just GOES. main character energy, zero safety net.-cmf,--chk-chksum-for-files-in-devβ does the files checksum inspection for the cloned files over in the destination devices. she checks her work β¨-d,--destination,--targetDEV β names the target device as DEV (so like/dev/sdborsdb, both fine bestie).-e1,--change-geometryNTFS-BOOT-PARTITION β forces a change of the CHS (cylinders, heads, sectors) value of the NTFS boot partition after cloning. NTFS-BOOT-PARTITION can beautoor a device name.-e2,--load-geometry-from-eddβ forces using the CHS from EDD (Enhanced Disk Device) when creating the partition table withsfdisk.-r,--resize-partitionβ resizes the file system size so it fits the partition size on the destination disk. she makes it FIT π-f,--sourceDEV β names the source device as DEV (e.g.,/dev/sdaorsda).-g,--grub-installGRUB_PARTITION β installsgrubin the MBR. GRUB_PARTITION can beautoor a device name.--net-filterPROGRAM β uses PROGRAM (gzip,lzop,bzip2,xz,lz4,zstd,cat) before sending partition data tonetcat/nuttcp. only in network clone mode, okay? default iszstd.-nogui,--noguiβ no GUI (TUI) for you, text only. minimalist queen π-rescue,--rescueβ turns on rescue mode, aka she tries to skip the bad sectors. brave of her honestly.-rvd,--rvdβ removes the NTFS volume dirty flag in the source NTFS file system before cloning it. clean vibes only.-irhr,--irhrβ skips removing the Linux udev hardware records on the restored GNU/Linux.-ius,--iusβ skips updating the syslinux-related files on the restored GNU/Linux.-iui,--iuiβ skips updating the initramfs file(s) on the restored GNU/Linux.-icds,--ignore-chk-dsk-size-ptβ skips checking the destination disk size before creating the partition table. living on the edge tbh π-iefi,--ignore-update-efi-nvramβ skips updating boot entries in EFI NVRAM after cloning.-k,--no-sfdiskβ do NOT create the partition table in the boot sector on the target machine. nope. not doing it.-k0β creates the partition table based on the partition table from the source. this one's the default β¨-k1β creates the partition table on the target disk proportionally.-k2β drops you into a command line prompt so you can create the partition table manually before cloning. DIY queen π-j2,--clone-hidden-dataβ usesddto clone the image of the data sitting between the MBR (1st sector) and the 1st partition. the secret little in-between zone π«Ά-m,--no-boot-loader-cloneβ do NOT clone the boot loader.-o,--load-geometryβ forces using the saved CHS (cylinders, heads, sectors) when usingsfdisk.-q1,--force-to-use-ddβ forces a sector-by-sector copy. it's slow, but it works for all filesystems. worth it sometimes, fr fr.-po,--portPORT β specifies thenetcatport. only in network clone mode, bestie.-p,-pa,--postactionACTION β what she does when cloning finishes:[choose|poweroff|reboot|true|CMD].-a,--serverβ declares that the machine she's running on IS the network clone server. she said "I'm the server now" π-s,--source-IPIP β specifies the source IP address. this one's used on the target client machine.-t,--no-restore-mbrβ do NOT restore the MBR.-t1,--restore-raw-mbrβ restores the prebuilt bootloader fromsyslinux. (For Windows only, okay?)-t2,--no-restore-ebrβ do NOT restore the EBR.-v,--verboseβ prints verbose information. she tells you EVERYTHING π-np,--net-pipePROGRAM β uses PROGRAM as the network pipe program. available:netcat,nuttcp.-x,--interactiveβ interactive mode.-bm,--beginner-modeβ runs in beginner mode. it's a shortcut for"-um beginner"π£-em,--expert-modeβ runs in expert mode. it's a shortcut for"-um expert"π-um,--user-mode[beginner|expert]β specifies the user mode.-edio,--enable-direct-ioβ enables the direct IO mode ofPartclonefor NVMe SSD. spicy fast path π₯
π§ EXAMPLES π§
1. to clone local sda to local sdb:
ocs-onthefly -f sda -d sdb
2. to clone sda from machine A (IP 192.168.100.1) to sda on machine B via the network:
on machine A:
ocs-onthefly -a -f sda
on machine B:
ocs-onthefly -s 192.168.100.1 -d sda
see? cute little duo. one server, one target, and they're communicating π«Άβ¨
π FILES π
/etc/drbl/drbl-ocs.confβ the configuration file for Clonezilla. her little settings notebook π
π₯ SEE ALSO π₯
ocs-sr(8)drbl-ocs(8)
π AUTHORS π
Steven Shiau <steven _at_ clonezilla org> β the icon who made this all happen. we love him, no debate π
and that's the whole page bestie!! this was the Clonezilla manual's ocs-onthefly(8), dated 2026-05-03 β yes, the source/version line is literally just "Clonezilla Β· 2026-05-03 Β· ocs-onthefly(8)" and I'm folding it in right here at the bottom because that's the vibe check we were given β¨ go clone something (carefully, the -b thing is dangerous!!) and stay iconic ππ¦π
π¦ where this page comes from
- arch rolling: clonezilla 5.19.7-1 Β· GPL-2.0-only
- ubuntu stonking: clonezilla 5.17.14-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms