After creating/deleting the source partition on which Windows was installed (sda1 is where it was installed, sda2 is where I keep Clonezilla images), Windows no longer boots: It either crashes with the familiar 0xc0000225 (Windows7) or enters a loop with starts/reboots (XP).
I assume it's due to sda1 no longer having the exact same size it originally had, and Windows ain't happy.
Is there a way to get this information from the Clonezilla images I made, so that I can try and see if it solves the issue?
I'd also be interested in any idea about what can cause those issues after restoring Windows from Clonezilla images.
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I assume CZ uses parted to generate the two files, but I'm not getting the same output, so can't delete/recreate /dev/sda1 before trying to restore Windows7 from an image and check if that solves the problem:
root@ubuntu:/mnt/image/Win7-2011-08-31-15-img# cat sda-pt.parted
Model: ATA WDC WD3200BEVT-2 (scsi)
Disk /dev/sda: 625142448s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 63s 29302559s 29302497s primary ntfs boot
2 547013250s 625137344s 78124095s primary ext3
root@ubuntu:/mnt/image/Win7-2011-08-31-15-img# cat sda-pt.sf
# partition table of /dev/sda
unit: sectors
I was told in the Parted mailing list that if we increase the size of a partition before restoring an image with Clonezilla, we must also use an application like Gparted to also resize the filesystem therein. I didn't know this.
As Clonezilla is text-based, a GUI-based application like Gparted is no-go: Does someone know of a text-based alternative to Gparted that can take care of resizing an NTFS filesystem after it's been restored by CZ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually ntfsresize is included in Clonezilla live, and if you choose the option "-k1" in expert mode, the option "-r" will be used, and ntfsresize will be run for the restored NTFS partition. No idea why it does not work there.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Three things we have to check:
1. Is the partition size enlarged?
2. If "-r" is checked, is ntfsresize run after image is restored?
3. After booting the restored Win 7, does it run "chkdsk", this is triggered by (2).
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
After creating/deleting the source partition on which Windows was installed (sda1 is where it was installed, sda2 is where I keep Clonezilla images), Windows no longer boots: It either crashes with the familiar 0xc0000225 (Windows7) or enters a loop with starts/reboots (XP).
I assume it's due to sda1 no longer having the exact same size it originally had, and Windows ain't happy.
Is there a way to get this information from the Clonezilla images I made, so that I can try and see if it solves the issue?
I'd also be interested in any idea about what can cause those issues after restoring Windows from Clonezilla images.
Thank you.
In the image dir, the files sda-pt.parted and sda-pt.sf contain the partition info, you can check them.
Ref: http://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/02_Restore_disk_image/00-boot-clonezilla-live-cd.doc#00-boot-clonezilla-live-cd.doc
Steven.
Tanks for the info.
I assume CZ uses parted to generate the two files, but I'm not getting the same output, so can't delete/recreate /dev/sda1 before trying to restore Windows7 from an image and check if that solves the problem:
Number Start End Size Type File system Flags
1 63s 29302559s 29302497s primary ntfs boot
2 547013250s 625137344s 78124095s primary ext3
root@ubuntu:/mnt/image/Win7-2011-08-31-15-img# cat sda-pt.sf
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start= 63, size= 29302497, Id= 7, bootable
/dev/sda2 : start=547013250, size= 78124095, Id=83
/dev/sda3 : start= 0, size= 0, Id= 0
/dev/sda4 : start= 0, size= 0, Id= 0
Here's what it says when I run parted myself:
Number Start End Size Type File system Flags
1 32.3kB 20.0GB 20.0GB primary ext4 boot
2 280GB 320GB 40.0GB primary ext3
It's because we run:
parted -s /dev/sda unit s print
"unit s" is used to output that in sectors.
Steven.
Thanks Steven. I'll investigate how to recreate /dev/sda1 exactly like it was before, and see if that solves the Windows7 issue I'm having.
No problem!
Steven.
I was told in the Parted mailing list that if we increase the size of a partition before restoring an image with Clonezilla, we must also use an application like Gparted to also resize the filesystem therein. I didn't know this.
As Clonezilla is text-based, a GUI-based application like Gparted is no-go: Does someone know of a text-based alternative to Gparted that can take care of resizing an NTFS filesystem after it's been restored by CZ?
Actually ntfsresize is included in Clonezilla live, and if you choose the option "-k1" in expert mode, the option "-r" will be used, and ntfsresize will be run for the restored NTFS partition. No idea why it does not work there.
Steven.
Option "-r" is indeed checked by default, so I don't why 7 stopped working after I restored the image in a bigger partition than the original.
Three things we have to check:
1. Is the partition size enlarged?
2. If "-r" is checked, is ntfsresize run after image is restored?
3. After booting the restored Win 7, does it run "chkdsk", this is triggered by (2).
Steven.