1) I have installed Clonezilla on a dedicated logical partition on the hard disk and I boot to it using the following command in Grub4Dos (a bootloader related to legacy Grub):
title Clonezilla Live on HDD
root (hd0,41)
kernel /live-hd/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" keyboard-layouts="" ocs_live_batch="no" locales="" vga=791 ip=frommedia nosplash live-media-path=/live-hd bootfrom=/dev/sda42 toram=filesystem.squashfs
initrd /live-hd/initrd.img
The Clonezilla boots without errors, just like any other distro, but an attempt to create an image of Xubuntu fails at root partition image (home partition image is ok).
Here is the last section of the log file "saving-error-201408210736" showing "split_error.L6wzCO":
Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log -c -s /dev/sda23 --output - | gzip -c --fast --rsyncable | split -b 2000m - /home/partimag/2014-08-21-07-img/sda23.ext4-ptcl-img.gz. 2> /tmp/split_error.L6wzCO
Partclone v0.2.70 http://partclone.org
Starting to clone device (/dev/sda23) to image (-)
Reading Super Block
we need memory: 499780 bytes
image head 4160, bitmap 491520, crc 4100 bytes
Calculating bitmap... Please wait... extfsclone.c: bitmap free count err, free:2580671
Failed to use partclone program to save or restore an image!
Failed to save partition /dev/sda23.
2) I also can't figure out how the command generated by Clonezilla is supposed to work. It can apparently be used straight from Clonezilla's command line when you decide to create another partition image later on (the date/time needs to be modified manually, I guess):
But how would Clonezilla know what is the target partition (/dev/sda36 in this example)? And where is /usr/sbin/ directory located, I can't find it anywhere on the dedicated Clonezilla partition:
Fuchs, according to Grub4Dos guide initrd.img should be on the separate line. I've been booting to Linux Lite and Xubuntu that way for a few months now w/o any problems:
Ref-op-1) I have changed the "-i" parameter from 2000 to 1000000 to disable image file splitting. You will find this trick in one of the help menus shown when you run Clonezilla and select "custom" option at one point. This actually solved the problem for a while and I was able to create the image of that 15 GB root Xubuntu partition, but after a few more test runs the error came back. It is actually a bitmap free count error:
extfsclone.c: bitmap free count err, free:2580671
Ref-op-2) I have figured that out. First you need to mount the target partition to /home/partimag and then run the command:
Clonezilla uses syslinux 6.03 as operating system with the own commands and messages. These ones are often similarly to the other ones (Grub4Dos).
Normally it's better to start clonezilla separately, from a USB stick.
## For some reason my post above (from Sep-05) got stuck "awaiting moderation", so I'm re-posting below. Moderators: please cancel/delete that stuck post. ##
Thanks, Fuchs. I have resolved the error issue reported before:
extfsclone.c: bitmap free count err, free:2580671
This error has actually been well documented. It is file system integrity issue and the solution is to include the following parameter in the command:
1) I have installed Clonezilla on a dedicated logical partition on the hard disk and I boot to it using the following command in Grub4Dos (a bootloader related to legacy Grub):
title Clonezilla Live on HDD
root (hd0,41)
kernel /live-hd/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run="ocs-live-general" ocs_live_extra_param="" keyboard-layouts="" ocs_live_batch="no" locales="" vga=791 ip=frommedia nosplash live-media-path=/live-hd bootfrom=/dev/sda42 toram=filesystem.squashfs
initrd /live-hd/initrd.img
The Clonezilla boots without errors, just like any other distro, but an attempt to create an image of Xubuntu fails at root partition image (home partition image is ok).
Source Partitions:
/dev/sda23 Ext4 (15 GB) Xubuntu root
/dev/sda24 Ext4 (3 GB) Xubuntu home
Target Partition:
/dev/sda36 Xfs (30 GB) empty
http://i.imgur.com/lkeecNB.png
The command Generated by Clonezilla after going through all the menus is as follows:
/usr/sbin/ocs-sr -q2 -c -j2 -z1 -i 2000 -p true saveparts 2014-08-21-07-img sda23 sda24
Here is the last section of the log file "saving-error-201408210736" showing "split_error.L6wzCO":
Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log -c -s /dev/sda23 --output - | gzip -c --fast --rsyncable | split -b 2000m - /home/partimag/2014-08-21-07-img/sda23.ext4-ptcl-img.gz. 2> /tmp/split_error.L6wzCO
Partclone v0.2.70 http://partclone.org
Starting to clone device (/dev/sda23) to image (-)
Reading Super Block
we need memory: 499780 bytes
image head 4160, bitmap 491520, crc 4100 bytes
Calculating bitmap... Please wait... extfsclone.c: bitmap free count err, free:2580671
Failed to use partclone program to save or restore an image!
Failed to save partition /dev/sda23.
2) I also can't figure out how the command generated by Clonezilla is supposed to work. It can apparently be used straight from Clonezilla's command line when you decide to create another partition image later on (the date/time needs to be modified manually, I guess):
/usr/sbin/ocs-sr -q2 -c -j2 -z1 -i 2000 -p true saveparts 2014-08-21-07-img sda23 sda24
But how would Clonezilla know what is the target partition (/dev/sda36 in this example)? And where is /usr/sbin/ directory located, I can't find it anywhere on the dedicated Clonezilla partition:
http://i.imgur.com/hSMGn4W.png
And it's nowhere to be seen at the target partition either:
http://i.imgur.com/NiNLUfL.png
http://i.imgur.com/dwTWHqr.png
I would write:
kernel /live-hd/vmlinuz initrd=/live-hd/initrd.img boot=live ..
(not newline initrd /live-hd/initrd.img )
Fuchs, according to Grub4Dos guide initrd.img should be on the separate line. I've been booting to Linux Lite and Xubuntu that way for a few months now w/o any problems:
http://diddy.boot-land.net/grub4dos/files/boot.htm#linux
Ref-op-1) I have changed the "-i" parameter from 2000 to 1000000 to disable image file splitting. You will find this trick in one of the help menus shown when you run Clonezilla and select "custom" option at one point. This actually solved the problem for a while and I was able to create the image of that 15 GB root Xubuntu partition, but after a few more test runs the error came back. It is actually a bitmap free count error:
extfsclone.c: bitmap free count err, free:2580671
Ref-op-2) I have figured that out. First you need to mount the target partition to /home/partimag and then run the command:
/usr/sbin/ocs-sr -q2 -c -j2 -z1 -i 1000000 -p true saveparts yyyy-mm-dd-hh-img sda23 sda24
You can apparently aslo include all those parameters somewhere in the boot command or create a script. It's all explained here:
http://www.clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting
http://www.clonezilla.org/advanced/customized-clonezilla-live.php
Clonezilla uses syslinux 6.03 as operating system with the own commands and messages. These ones are often similarly to the other ones (Grub4Dos).
Normally it's better to start clonezilla separately, from a USB stick.
I have not experimented with Grub4dos. So I can not say anything about that. An interesting version.
You can make a look for 'Grub4Dos ? ' in Clonezilla live.
http://sourceforge.net/p/clonezilla/discussion/Clonezilla_live/thread/35ef89a5/
or
http://sourceforge.net/p/clonezilla/discussion/Clonezilla_live/thread/306ef542/
Last edit: Fuchs 2014-09-03
## For some reason my post above (from Sep-05) got stuck "awaiting moderation", so I'm re-posting below. Moderators: please cancel/delete that stuck post. ##
Thanks, Fuchs. I have resolved the error issue reported before:
extfsclone.c: bitmap free count err, free:2580671
This error has actually been well documented. It is file system integrity issue and the solution is to include the following parameter in the command:
-fsck-src-part
or:
-fsck-src-part-y
http://clonezilla.org/clonezilla-live/doc/01_Save_disk_image/images/ocs-10-check-source-fs.png
So, for the record, the proper command set is as follows:
Last edit: Kirkx 2014-09-06
That's very fine. Thank you for this information.