LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 05-02-2007, 01:43 AM   #1
gewe
LQ Newbie
 
Registered: May 2007
Location: EU
Distribution: Linux Mint
Posts: 11

Rep: Reputation: 0
Boot problems after moving system to a new harddisk


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:
  1. install the new disk in the computer;
  2. boot from Ubuntu live cd;
  3. use fdisk to create partitions on the new disk (with the Windows NTFS partitions having the exact same size);
  4. use mkfs to create filesystems in the Linux partitions;
  5. use cp -a to copy files from the old disk to the new disk;
  6. edit fstab and Grub's menu.lst to include the new partition UUID's;
  7. copied the Windows partition using dd if=/dev/sda1 of=/dev/sdb1;
  8. reinstalled Grub;
  9. remove the old disk.
 
Old 05-02-2007, 02:13 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,812

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
Windows doesn't like to be moved, and dd isn't a great cloner if you use the defaults - as it seems you have. There's a huge dd thread here.
I've just noticed clonezilla on sourceforge - looks good; maybe try that.
 
Old 05-02-2007, 02:24 AM   #3
pertlma
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
Hi gewe,

The best way I found to copy complete harddisks is using a RIP-Linux CD and use gparted for copying all partitions.

You find RIP Linux here: http://www.tux.org/pub/people/kent-r...looplinux/rip/
 
Old 05-04-2007, 01:42 PM   #4
gewe
LQ Newbie
 
Registered: May 2007
Location: EU
Distribution: Linux Mint
Posts: 11

Original Poster
Rep: Reputation: 0
I retried the dd copy, this time adding bs=4096 conv=notrunc,noerror. Same result however.
Booted from a Windows XP cd, and in the recovery console did a fixmbr. Booting has the same result as booting the Windows partition from Grub.

Just to check: a harddisk has a partition table, a MBR and partitions (with each a boot record). I created the partitions manually, and after copying the partition data, installed grub in the MBR. That should cover every disk area? By copying the Windows partition with dd every single byte should be copied? What am I missing here?

As for "moving Windows": the Windows partition on both the old and the new disk is the first primary partition, with exactly the same size. So, as far as Windows could tell there has been no move. Am I right?

Guess I should look on Windows forums for an answer, as the Linux part of my system just works like it did on the old disk. First I will try another way of cloning.

Thanks for your replies.
 
Old 05-05-2007, 04:43 AM   #5
gewe
LQ Newbie
 
Registered: May 2007
Location: EU
Distribution: Linux Mint
Posts: 11

Original Poster
Rep: Reputation: 0
Problem solved

Just solved the problem, thanks to http://www.dominok.net/en/it/en.it.c....html#modboots. The partition on the new disk started at another sector than on the old disk, and apparantly Windows XP needs to know that.
 
Old 05-05-2007, 04:21 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,812

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
Interesting link - thanks.
Wonder if fixboot (from XP Recovery Console) would have corrected that.
 
  


Reply

Tags
boot, grub, windows


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
General system problems since moving root WhiteyDude Linux - Software 3 03-01-2007 11:53 PM
Duplicating / backing up system to other harddisk xptchina Linux - Software 2 09-19-2006 10:06 AM
What file system for an extra harddisk ? Babe963 Linux - Hardware 1 09-16-2006 03:55 AM
old harddisk to new system golyat Linux - Hardware 1 09-06-2006 06:21 AM
help moving boot kernel from floppy to harddisk matix Linux - Newbie 3 01-14-2003 05:04 AM


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

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