Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-13-2010, 05:00 AM   #1
Registered: Aug 2008
Location: France
Posts: 660

Rep: Reputation: 35
Question Error booting Windows: Grub? Clonezilla? Other?


I'm still having issues when restoring Windows partitions using CloneZilla (XP enters an endless loop with "Autochk - File not found", and Vista doesn't boot ("Err 17 - File not found"; It looks like this is an error reported by Grub, though).

For those of you used to cloning partitions so you can easily restore an OS to perform tests... are there tricks that must be done to save/restore/boot partitions using CloneZilla?

For instance, CloneZilla provides four options that deal with MBR (-g, -t, -j1, -j2). Grub can also perform some kung-fu (such as geometry(), parttype(), etc.). And with XP/Vista/7 being particular with making any change to the configuration due to activation, I wouldn't be surprised if something had to be done prior/after cloning Windows partitions.

Ideally, I'd like to just boot with a CD, restore the image, remove the CD, and expect the OS to start without having to mingle with Grub every time.

Thank you for any help.
Old 01-13-2010, 09:29 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
While imaging partitions with Clonezilla (or any other application) works well when the image is restored to the partition it was imaged from, problems arise when restoring the image to a different partition. The reason is that two files contain configuration data necessary for booting:
1) if the OS is GNU/Linux, those files are /etc/fstab and /boot/grub/menu.lst (grub.conf on some distros).
2) if the OS is windows, only one file is necessary: /boot/grub/menu.lst

The reasons:
In Linux, the grub uses the config file to find the bootable kernel image and initrd. Fstab tells the system which devices to mount, and their mount points. If you clone partitions with one set of device numbers, and restore the cloned image to different partitions, things get messed up until you edit fstab to correct the device/mount point errors. Grub's menu.lst also has to be edited to corrected the menu entries to show the location of the vmlinuz kernel image, and the location of the root of the filesystem.

For windows, menu.lst has to be edited to show the location of the windows partition if it has changed from the original partition.

So, to help you, we need to see:
1) the output of 'fdisk -l'
2) the devices and mount points of /etc/fstab.
3) the menu list from /boot/grub/menu.lst

That "Err 17 - file not found" is commonly encountered when the menu.lst points to one partition as the location of the bootable kernel image, and it isn't there.
Old 01-14-2010, 07:36 AM   #3
Registered: Aug 2008
Location: France
Posts: 660

Original Poster
Rep: Reputation: 35
Thanks for the help, but I was restoring the image into its original location (/sda1).

Turns out Grub seems unable to tell that a partition is NTFS-formatted, and requires this line in menu.lst for XP/Vista to boot:

title Windows
	parttype (hd0,0) 07x

	rootnoverify (hd0,0)
	chainloader +1
Hope this helps,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems booting after cloning hard drive using clonezilla madicoe Linux - Newbie 2 06-18-2009 01:18 PM
Grub keeps me from booting Windows Ricmar Linux - Newbie 3 04-07-2008 09:07 PM
GRUB not booting to windows qwert1029in Linux - Newbie 1 07-08-2006 07:00 PM
Error w/ grub booting windows xp Ryknow215 Linux - General 26 05-22-2004 02:10 AM
GRUB windows xp not booting mirage Linux - Newbie 2 05-14-2003 02:10 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration