DigiTan
January 9th, 2009, 01:54 AM
Backstory:
This is my first-ever time running Linux. I have my stuff on a small hard disk (sda) all on one partition. I want to clone it all over to a larger disk (sdb) and then install Ubuntu permanently onto the old one.
I have the live recovery CD and a friend talked me through most of the process. So it went pretty well until I tried to boot WinXP off the clone by itself. Now windows just sits there frozen right before you get to login.
--------------------------
Before anybody gets antsy, I already read the thread here (http://ubuntuforums.org/showthread.php?t=719913&highlight=ntfsclone+xp) but my situation's a little different to where I want to verify some stuff before I continue. This was my process...
1. Installed the new drive and booted Live CD. Before doing anything, I found the terminal and verified the names of the drives with a quick peek at gparted.
2. Saved the old MBR.
sudo dd if=/dev/sda of=./drive.mbr bs=512 count=1
3. Saved partition table
sudo sfdisk -d /dev/sda > partition.table
4. Wrote the MBR to the new disk.
sudo dd if=./drive.mbr of=/dev/sdb
5. Edited partitions table with nano. Basically I just swapped all the "sda"s with "sdb"s. Saved. Exited.
6. Wrote the partitions table to the new disk
sudo sfdisk /dev/sdb < partition.table
7. Cloned with ntfsclone. I checked with fdisk before doing this too look for anything that seemed "not right."
sudo ntfsclone --overwrite /dev/sda1 /dev/sdb1
...you really gotta hand it to these guys for switching the syntax on such a risky command. I almost didn't find out in time.
8. Edited partition data using fdisk.
sudo fdisk /dev/sdb
p (Just to read and jot down everything first)
d (To delete the partition.)
n (To create new partition. I made it the primary part and set the start/end to span all available space)
t (Changed type to NTFS)
a (To make it a bootable partition)
w (Saved and exited)
9. Resized with ntfsresize. I just typed...
sudo ntfsresize /dev/sdb1
...and it took just a couple seconds to finish. Exited terminal and shut down.
10. Plugged the new drive into the old one's SATA cord. And I left the old one unplugged. When I booted and got to WinXP, it showed the light blue screen and did a disk error check and said all was well before it rebooted.
11. Watched WinXP freeze just before you get to see the login screen. The cursor can move but that's about it. I mean, I don't get it. I thought ntfsclone was supposed to...you know...clone things. How the heck can windows tell the difference?!? I also ran the WinXP Recovery CD's fixboot utility and it had no effect.
----------------------------------
Where I am now:
I'm going to try the method shown here (http://www.tech-archive.net/Archive/WinXP/microsoft.public.windowsxp.general/2006-12/msg11236.html) Friday to re-write the partition's NT boot sector but it seems overblown. ...Like I'm just doing ntfsresizes' job. I was my impression my 12th step would involve watching windows auto-detect, editing boot.ini, and if I'm lucky drinking an ice cold (root)beer.
Why is my WinXP locked up like the rusty tin man? Maybe I was supposed to unmount or chown this drive like perixx (http://ubuntuforums.org/showthread.php?t=719913&highlight=ntfsclone+xp) did? Or do I have to edit the NT boot sector too? Thanks.
This is my first-ever time running Linux. I have my stuff on a small hard disk (sda) all on one partition. I want to clone it all over to a larger disk (sdb) and then install Ubuntu permanently onto the old one.
I have the live recovery CD and a friend talked me through most of the process. So it went pretty well until I tried to boot WinXP off the clone by itself. Now windows just sits there frozen right before you get to login.
--------------------------
Before anybody gets antsy, I already read the thread here (http://ubuntuforums.org/showthread.php?t=719913&highlight=ntfsclone+xp) but my situation's a little different to where I want to verify some stuff before I continue. This was my process...
1. Installed the new drive and booted Live CD. Before doing anything, I found the terminal and verified the names of the drives with a quick peek at gparted.
2. Saved the old MBR.
sudo dd if=/dev/sda of=./drive.mbr bs=512 count=1
3. Saved partition table
sudo sfdisk -d /dev/sda > partition.table
4. Wrote the MBR to the new disk.
sudo dd if=./drive.mbr of=/dev/sdb
5. Edited partitions table with nano. Basically I just swapped all the "sda"s with "sdb"s. Saved. Exited.
6. Wrote the partitions table to the new disk
sudo sfdisk /dev/sdb < partition.table
7. Cloned with ntfsclone. I checked with fdisk before doing this too look for anything that seemed "not right."
sudo ntfsclone --overwrite /dev/sda1 /dev/sdb1
...you really gotta hand it to these guys for switching the syntax on such a risky command. I almost didn't find out in time.
8. Edited partition data using fdisk.
sudo fdisk /dev/sdb
p (Just to read and jot down everything first)
d (To delete the partition.)
n (To create new partition. I made it the primary part and set the start/end to span all available space)
t (Changed type to NTFS)
a (To make it a bootable partition)
w (Saved and exited)
9. Resized with ntfsresize. I just typed...
sudo ntfsresize /dev/sdb1
...and it took just a couple seconds to finish. Exited terminal and shut down.
10. Plugged the new drive into the old one's SATA cord. And I left the old one unplugged. When I booted and got to WinXP, it showed the light blue screen and did a disk error check and said all was well before it rebooted.
11. Watched WinXP freeze just before you get to see the login screen. The cursor can move but that's about it. I mean, I don't get it. I thought ntfsclone was supposed to...you know...clone things. How the heck can windows tell the difference?!? I also ran the WinXP Recovery CD's fixboot utility and it had no effect.
----------------------------------
Where I am now:
I'm going to try the method shown here (http://www.tech-archive.net/Archive/WinXP/microsoft.public.windowsxp.general/2006-12/msg11236.html) Friday to re-write the partition's NT boot sector but it seems overblown. ...Like I'm just doing ntfsresizes' job. I was my impression my 12th step would involve watching windows auto-detect, editing boot.ini, and if I'm lucky drinking an ice cold (root)beer.
Why is my WinXP locked up like the rusty tin man? Maybe I was supposed to unmount or chown this drive like perixx (http://ubuntuforums.org/showthread.php?t=719913&highlight=ntfsclone+xp) did? Or do I have to edit the NT boot sector too? Thanks.