I have a problem when restoring an image to a partition: The size of the target partition changed since I saved the Ubuntu system in which it was installed.
So I read the image's sda-pt.parted (start/end sectors), resized the partition with fdisk, and told CZ to restore the image in Expert Mode so I could use the -idcs option, but no luck: When it tries to restore GRUB, it displays a warning:
Warning! Found grub partition (/dev/sda1) file system is ext4! Not all version of grub 1 supports file system ext4!
... and when rebooting, I'm stuck at the "grub>" prompt.
Next, I ran mkfs.ext4 /dev/sda1, even used fdisk to mark the partition as bootable, then used CZ to restore the partition, but I'm still stuck in the "grub>" prompt at the next reboot.
Since the target partition now has the same size it had when I saved the image, why is CZ still unhappy?
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's look like that:
there is a great difference of the ubuntu versions .. between an old image (grub legacy) and your pc partition (ext4) .
What can we do ?
You can try to restore the partition sda1 in expert mode with Clonezilla advanced extra parameters:
-g auto Reinstall grub in client (!)
-e2 sfdisk uses CHS of hard drive
-r Try to resize the filesystem to fit partition size
-j2 Clone the hidden data between MBR(512B) and 1st partition
-k1 Create partition table proportionally (OK for MBR format, not GPT)
Wouldn't this one help then can you try:
"If there are mixed grub 1 and grub 2 files on the restored system (e.g. /boot/grub*), remove the one you do not want. So that Clonezilla could detect that correctly. Steven" (Forum: Clonezilla live Creator: koolmelee )
@Gilles,
What Fuchs mentioned is correct.
Therefore please try alternative Clonezilla live, e.g.
20130514-raring. The grub1 from Ubuntu repository has been patched to support ext4.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have a problem when restoring an image to a partition: The size of the target partition changed since I saved the Ubuntu system in which it was installed.
So I read the image's sda-pt.parted (start/end sectors), resized the partition with fdisk, and told CZ to restore the image in Expert Mode so I could use the -idcs option, but no luck: When it tries to restore GRUB, it displays a warning:
... and when rebooting, I'm stuck at the "grub>" prompt.
Next, I ran mkfs.ext4 /dev/sda1, even used fdisk to mark the partition as bootable, then used CZ to restore the partition, but I'm still stuck in the "grub>" prompt at the next reboot.
Since the target partition now has the same size it had when I saved the image, why is CZ still unhappy?
Thank you.
It's look like that:
there is a great difference of the ubuntu versions .. between an old image (grub legacy) and your pc partition (ext4) .
What can we do ?
You can try to restore the partition sda1 in expert mode with Clonezilla advanced extra parameters:
-g auto Reinstall grub in client (!)
-e2 sfdisk uses CHS of hard drive
-r Try to resize the filesystem to fit partition size
-j2 Clone the hidden data between MBR(512B) and 1st partition
-k1 Create partition table proportionally (OK for MBR format, not GPT)
Wouldn't this one help then can you try:
"If there are mixed grub 1 and grub 2 files on the restored system (e.g. /boot/grub*), remove the one you do not want. So that Clonezilla could detect that correctly. Steven" (Forum: Clonezilla live Creator: koolmelee )
And make a look for:
https://help.ubuntu.com/community/Grub2/Installing
@Gilles,
What Fuchs mentioned is correct.
Therefore please try alternative Clonezilla live, e.g.
20130514-raring. The grub1 from Ubuntu repository has been patched to support ext4.
Steven.