Merging XP and Mint from sep drives onto 1 - How?

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
brencam
Level 1
Level 1
Posts: 35
Joined: Fri Apr 16, 2010 3:35 am

Merging XP and Mint from sep drives onto 1 - How?

Post by brencam »

OK - I need help in deciding how best to combine/merge working Linux and XP OS's (on separate HD's) onto a single, multiboot HD. Here is the scenario:

DiskA:
My win XP OS crashed (virus problems) and it has taken me days to get a clean reinstall on my old hard disk, but finally managed to get it done - that's on Disk A.. At this point there is nothing else on DiskA.

Meanwhile bought a new HD, copied the old XP OS and tried to revive it (no luck. However I did partition that drive and installed a fresh MINT OS on that drive - it looks great - even supports my dual monitor display - That's on Disk B. I also installed a few additional apps here that I'd like to preserve.
Grub was configured correctly and both OS's are now recognized on that drive.

Ideally I'd like to replace the XP OS on disk B with the copy on Disk A, leaving Disk B's MINT OS and grub configuration intact, and replacing the old copy of XP with my newly minted<g> copy. I'm not sure if that is possible without zapping the grub config (i'm not sure how to restore this??) . The other alternative is to backup my MINT OS copy and move it to Disk A - however I would still have a problem setting up for multiboot in this case. (I'm also not sure how to backup/restore my entire MINT install). FWIW Disk B is the larger HD (320GB vs 120GB) and the one I'd prefer to use moving forward.

I've spent about 3 days getting to this point (it's been a BIG learning experience and I've come to appreciate the simple Linux Install process vs the horrible XP install process(a gazillion updates/reboots/validation etc).

Obviously I don't want to/can't afford to screw anything up at this point. What is the safest way to proceed here?

Hope this is clear - Thanks for listening.
Brendanc

oldguy
Level 1
Level 1
Posts: 7
Joined: Sat Apr 17, 2010 12:57 am

Re: Merging XP and Mint from sep drives onto 1 - How?

Post by oldguy »

You can get XP and Mint both in drive B without problem. But Windows is picky about partitions. It is always better to have XP in the first partition of your Drive B. How difficult it will be for you to reinstall MINT

brencam
Level 1
Level 1
Posts: 35
Joined: Fri Apr 16, 2010 3:35 am

Re: Merging XP and Mint from sep drives onto 1 - How?

Post by brencam »

@oldguy -XP *IS* the first partition on Disk B so I thought replacing the old partition with the new one was the way to go - just don't want to get tripped up with any unexpected MBR/grub related problems if I go down that path.

Obviously I could reinstall MINT on Disk A, but I then I still need to copy everything from A to B. Is it possible to just backup MINT from Disk A and restore to Disk B - (I don't know enough about Linux/Mint backup restore - but I would imagine that should be doable. Any pointers here would help.

BTW - Thx for the quick response.

BrendanC

Biker
Level 5
Level 5
Posts: 512
Joined: Sat Apr 17, 2010 1:58 am
Location: Where my hat is

Re: Merging XP and Mint from sep drives onto 1 - How?

Post by Biker »

Why try to combine everything on one drive? You have what I would consider the perfect setup at this point. Toss both drives into the PC and use the first hard drive for WIndows and the second for Linux.
Linux User #384279

oldguy
Level 1
Level 1
Posts: 7
Joined: Sat Apr 17, 2010 12:57 am

Re: Merging XP and Mint from sep drives onto 1 - How?

Post by oldguy »

You had mentioned that your XP in Disc B is not working. But XP is working in Disc A.
Looks like you want the working copy of XP from disk A to Disk B. If that's what you want then please logon to Mint. Then in Terminal and type the folloing command
SUDO fdisk -ul

and post the output here

brencam
Level 1
Level 1
Posts: 35
Joined: Fri Apr 16, 2010 3:35 am

Re: Merging XP and Mint from sep drives onto 1 - How?

Post by brencam »

Per your request, here's the output from sudo fdisk -l
sdb is the device with the working MINT8 on partitions sdb9 (boot)/10 (home)/11 (swap)

>>>>>


Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfef7fef7

Device Boot Start End Blocks Id System
/dev/sda1 * 1 7649 61440561 7 HPFS/NTFS
/dev/sda2 7650 14593 55777680 f W95 Ext'd (LBA)
/dev/sda5 7650 14593 55777648+ 7 HPFS/NTFS

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb41a899e

Device Boot Start End Blocks Id System
/dev/sdb1 1 9800 78718468 7 HPFS/NTFS
/dev/sdb2 9801 37536 222789420 5 Extended
/dev/sdb3 * 37537 38304 6168960 83 Linux
/dev/sdb5 9801 22855 104864252+ 7 HPFS/NTFS
/dev/sdb6 25467 28077 20972826 83 Linux
/dev/sdb7 28078 36289 65962858+ 7 HPFS/NTFS
/dev/sdb8 36290 37536 10016496 82 Linux swap / Solaris
/dev/sdb9 22856 23463 4883728+ 83 Linux
/dev/sdb10 23464 24922 11719386 83 Linux
/dev/sdb11 24923 25466 4369648+ 83 Linux

Partition table entries are not in disk order

Disk /dev/sde: 4022 MB, 4022337024 bytes
255 heads, 63 sectors/track, 489 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sde1 1 488 3919841 b W95 FAT32

oldguy
Level 1
Level 1
Posts: 7
Joined: Sat Apr 17, 2010 12:57 am

Re: Merging XP and Mint from sep drives onto 1 - How?

Post by oldguy »

Hi,
Here is the deal. Just logon to XP in Drive A.
1. When XP is up and running Start - Run - Regedit
2. How down the keys and find HKEY_LOCAL_MACHINE \ SYSTEM \ MountedDevices.
3. On the right of it you will see bunch of references to your hard disk partitions. Delete them.
4..Exit from Registry editor.
5. Logout from XP. Don't logon to XP again.
6. Boot your machine into MINT.
7. In terminal issue the following command to copy XP from Drive A to Drive B.

ntfsclone --overwrite /dev/sdb1 /dev/sda1

8. Once done logout from MINT and power down your PC.
9. Remove DiskA and boot with DiskB only.

You should be good to go.

Post Reply

Return to “Installation & Boot”