After moving to a new harddisk (in the same pc), Grub can boot Ubuntu, but can not boot Windows XP (which I need for things like my Linux-unsupported scanner).
Ubuntu boots fine. When I select Windows from the boot menu, it says "Starting up ...", and then nothing happens.
When I boot Ubuntu, I can mount the Windows (NTFS) partition and read the files.
Where is the problem? Is it Grub, or is it Windows? Did dd not copy everything Windows needs?
This is what I did to perform the move:
- install the new disk in the computer;
- boot from Ubuntu live cd;
- use fdisk to create partitions on the new disk (with the Windows NTFS partitions having the exact same size);
- use mkfs to create filesystems in the Linux partitions;
- use cp -a to copy files from the old disk to the new disk;
- edit fstab and Grub's menu.lst to include the new partition UUID's;
- copied the Windows partition using dd if=/dev/sda1 of=/dev/sdb1;
- reinstalled Grub;
- remove the old disk.