Hi John,
If you can, please try these (Of course, backup important data first):
1. Boot clonezilla live on the machine you you can reproduce the problem
2. Enter command line prompt
3. sudo -i
4. . /opt/drbl/sbin/ocs-functions
5. set -x
6. run_grub2_from_restored_os "$grub_partition" "$found_root_partition" 
"/dev/$grub_hd"
Please replace $grub_partition with your grub partition, e.g. /dev/sda1
Replace "$found_root_partition" with your root (/) partition, if you do 
not separate the /boot from /, this value should be the same with 
"grub_partition".
Replace "/dev/$grub_hd" with your grub disk, e.g. /dev/sda in this case.
The complete command is like:
run_grub2_from_restored_os /dev/sda1 /dev/sda1 /dev/sda

Please show me the output on the screen. If you are familiar with 
command "screen", you can enter screen in the step (3) so it's easier 
for you to copy and paste the results.

Thanks in advance.

Steven.

John Ouzts wrote:
> Steven,
>
> It is reproducible. I got the exact same error message (except as 
> grub2-sh-yOloXz) in cloning the operating system drive in my second 
> mythtv backend box. Both machines use the same 64 bit Koala install on 
> ASUS M2A-VM HDMI mobos with Seagate drives. What seems unusual to me 
> is that both machines had had separate boot partitions at one time, 
> which had been combined into one ext4 primary partition during the 
> Koala install, when I used automatic partitioning in both cases. 
>
> The harddrive size increased in both machines during the Clonezilla 
> disk cloning, from Seagate 400GB drives up to 500 in the first case 
> and 750 in the second. In both cases, the swap space appears as the 
> sole item in the extended partition with ~100GB/~350GB of unallocated 
> space thereafter. I used GPartEd to shift the extended partition (and 
> swap) to the end of the drive and expand the primary partition to 
> ~690+GBs on the second machine. I have not altered the 500GB primary 
> cloned drive yet.
>
> Please let me know if I can provide you with any more information. I 
> have been looking for grub2 howtos on the web. The sheer volume of 
> conflicting material is off-putting. More power to you in providing 
> such a helpful product.
>
> John
>
>
>
>
>
> On Tue, Nov 24, 2009 at 8:03 PM, Steven Shiau <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     Hi John,
>
>
>
>     John Ouzts wrote:
>
>         Steven,
>
>         I found all the favorable comment about CloneZilla on the web
>         while looking for a way to clone a new Ubuntu Koala grub2/ext4
>         install. The current version of CloneZilla with the Koala
>         kernel did indeed work. One error message appeared in the
>         section about reinstalling grub2:
>
>     Thanks for the bug report.
>
>
>         chroot: cannot run command '/grub2-sh-RSkJuV': Exec format error
>
>
>     This temp file is actually a script file to run the command
>     update-grub2 in the restored OS in the chroot environment. Now
>     idea why it fails... Is this problem reproducible?
>
>     Regards,
>     Steven.
>
>
>         However, the newly cloned drive did boot up (after I reset the
>         harddrive boot order in BIOS). Is this error something that I
>         need to fix?
>
>         Many thanks for a GREAT LiveCD!
>
>         John
>
>
>
>         
> ------------------------------------------------------------------------
>
>         
> ------------------------------------------------------------------------------
>         Let Crystal Reports handle the reporting - Free Crystal
>         Reports 2008 30-Day trial. Simplify your report design,
>         integration and deployment - and focus on what you do best,
>         core application coding. Discover what's new with
>         Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>
>
>         
> ------------------------------------------------------------------------
>
>         _______________________________________________
>         Clonezilla-live mailing list
>         [email protected]
>         <mailto:[email protected]>
>         https://lists.sourceforge.net/lists/listinfo/clonezilla-live
>
>
>     -- 
>     Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
>     National Center for High-performance Computing, Taiwan.
>     http://www.nchc.org.tw
>     Public Key Server PGP Key ID: 1024D/9762755A
>     Fingerprint: A2A1 08B7 C22C 3D06 34DB  F4BC 08B3 E3D7 9762 755A
>
>

-- 
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB  F4BC 08B3 E3D7 9762 755A


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Clonezilla-live mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to