How to migrate XP, Vista, Linux, BSD and Solaris to a bigger hard disk - Page 6


Page 6 of 12 FirstFirst ... 2345678910 ... LastLast
Results 76 to 90 of 180

Thread: How to migrate XP, Vista, Linux, BSD and Solaris to a bigger hard disk

  1. #76
    Join Date
    Sep 2008
    Posts
    7
    What you describe for the dd command is about what I saw. I don't recall the exact number of records... the dd command took about 20 minutes or so.

    Here is the info: (40 gig not attached at the moment, kind of harried right now, will have to do it later)

    root@PartedMagic:~# fdisk -l

    Disk /dev/sda: 20.4 GB, 20490559488 bytes
    16 heads, 63 sectors/track, 39703 cylinders
    Units = cylinders of 1008 * 512 = 516096 bytes
    Disk identifier: 0x384372b4

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 39702 20009776+ c W95 FAT32 (LBA)

    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000a1dc7

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 1 8001 83 Linux
    /dev/sdb2 2 523 4192965 82 Linux swap / Solaris
    /dev/sdb3 524 5622 40957717+ 83 Linux
    /dev/sdb4 5623 60801 443225317+ 5 Extended
    /dev/sdb5 5623 60801 443225286 b W95 FAT32
    root@PartedMagic:~#

  2. #77
    Join Date
    Sep 2008
    Posts
    7
    Hi Saikee,

    Thanks for your time, I appreciate this. I tried installing Xubuntu on my 40gig drive and it installed without issues, boots and runs. Here is the drive info you asked for:

    root@PartedMagic:~# fdisk -l

    Disk /dev/sda: 20.4 GB, 20490559488 bytes
    16 heads, 63 sectors/track, 39703 cylinders
    Units = cylinders of 1008 * 512 = 516096 bytes
    Disk identifier: 0x384372b4

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 39702 20009776+ c W95 FAT32 (LBA)

    Disk /dev/sdb: 40.0 GB, 40000000000 bytes
    255 heads, 63 sectors/track, 4863 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x384372b4

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 243 1951866 83 Linux
    /dev/sdb2 244 729 3903795 82 Linux swap / Solaris
    /dev/sdb3 730 4863 33206355 83 Linux
    root@PartedMagic:~#

  3. #78
    Join Date
    Jun 2004
    Location
    Newcastle upon Tyne
    Posts
    2,984
    If you have installed Xubuntu then it has to be in sdb disk as sda has only one partition and it is a MS Windows with the FAT32 filing system.

    If your sda is the first bootable disk (hd0) then your Windows will boot if these commands are in /boot/grub/menu.lst
    Code:
    title WIndows
    root (hd0,0)
    chainloader +1
    If the above fails post the content of Xubuntu's /boot/grub/menu.lst here.
    Linux user started Jun 2004 - No. 361921
    Using a Linux live CD to clone XP
    To install Linux and keep Windows MBR untouched
    Adding extra Linux & Doing it in a lazy way
    A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
    Just cloning tips Just booting tips A collection of booting tips

    Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"

  4. #79
    Join Date
    Sep 2008
    Posts
    7
    Hi Saikee,

    I probably haven't been very clear, sorry. I'm usually pretty good with hardware but this has me stumped. I've never tried to clone a Windows OS before this though.

    My goal is to clone the Win XP installation from the 20g drive to the 40g drive. The 20g is out of space. The 20g drive is my original XP install drive and it works fine aside from the space issues.

    After running DD on the 40g drive, I was able to access the files on the cloned 40g drive via parted magic... it just won't boot.

    I've tried several free cloning tools. Your method sounds the most promising but I got the "missing operating system" as I mentioned before. After trying about 6 programs (none of which worked - all had similar issues), I began to wonder if the 40g drive had errors, even though I didn't detect any issues in formatting, partitioning, etc. To test the bad hardware theory, I installed Xubuntu on the 40g and it boots and runs fine. I assume the 40g drive is ok. When I installed Xubuntu, I had only the 40g drive connected. The 20g XP drive contains only the XP loader.

    The 40g drive is a scratch drive so to speak, at least until I get a good working copy of XP on it. I can blow it away with a new format at any time.

    It seems like the BIOS detects the drives just fine. I also have a 250g and 500g for data (and a new IDE controller coming soon so I can use them all at once). My BIOS automatically detects each drive.

    I've already spent more time on this than just reinstalling the OS and calling MS to reactivate it... at this point I'm just trying to learn what, how and why this is a problem. I only have two things that cause me to keep Windows installed... photoshop and some games. As soon as GIMP supports 16-bits per color channel half my reason is done... maybe Wine will do for the rest.

    Again, thanks for your help and suggestions.

  5. #80
    Join Date
    Jun 2004
    Location
    Newcastle upon Tyne
    Posts
    2,984
    OK I have re-read your partition table. There might be a problem with your disk geometry.

    Your 20Gb hard disk is an old one with
    Code:
    Disk /dev/sda: 20.4 GB, 20490559488 bytes
    16 heads, 63 sectors/track, 39703 cylinders
    where as the 40Gb disk has the LBA mode with 255 head and 63 sectors
    Code:
    Disk /dev/sdb: 40.0 GB, 40000000000 bytes
    255 heads, 63 sectors/track, 4863 cylinders
    There may be some bios problems with the non-LBA older hard disk geometry imposing on the new hard disk which since has been standardised with LBA mode.

    Nearly all my cloning work was with LBA hard disks with the standardised 255 heads and 63 sectors and so I didn't experience any problem.

    Couldn't offer a solution here but if you are going to put Xp in a hard disk try it on a hard disk with LBA mode.
    Linux user started Jun 2004 - No. 361921
    Using a Linux live CD to clone XP
    To install Linux and keep Windows MBR untouched
    Adding extra Linux & Doing it in a lazy way
    A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
    Just cloning tips Just booting tips A collection of booting tips

    Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"

  6. #81
    Join Date
    Sep 2008
    Posts
    7
    Saikee,

    Interesting. I hadn't thought of that, and I doubt I would have. I figured the matching sectors/track was good enough. It explains much.

    Thank you for your help!

    I'm planning a hardware upgrade of the board, cpu, etc soon (6 year old system, I guess the 20g drive is even older) so I'll just wait for all of that and reinstall from scratch.

    thanks again,

    Sawsedge

  7. #82
    Join Date
    Jun 2004
    Location
    Newcastle upon Tyne
    Posts
    2,984
    sawsedge,

    I did manage to clone systems with different geometries but had not investigated the process deep enough to make any useful contribution. The problem is of course hard disk specific. I also remember the cloned disks did have a stability problem of some sort.

    All in all I would move with time and forget the old disks. AFAIK all hard disks sold nowadays are standardised in LBA mode with 255 heads and 63 sectors.
    Linux user started Jun 2004 - No. 361921
    Using a Linux live CD to clone XP
    To install Linux and keep Windows MBR untouched
    Adding extra Linux & Doing it in a lazy way
    A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
    Just cloning tips Just booting tips A collection of booting tips

    Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"

  8. #83
    Join Date
    Sep 2008
    Posts
    7
    Yes I will do that as soon as I get the new board/cpu etc.

    I had noticed on boot that the 20g is always reported as CHS, the rest of the drives as LBA. Thinking back on it, I believe I got that drive when I had a Celeron 366, so it is quite old.

    Thanks again.
    Last edited by sawsedge; 09-05-2008 at 07:39 AM.

  9. #84
    Join Date
    Aug 2002
    Posts
    63

    USB Hard Drive

    Little background...I had a disk that was showing signs of failing in my laptop. I purchased a new hard drive and usb enclosure to do a clone. Both gparted and parted magic would not even see the fact that there was another hard drive connected via USB. I gave the g4l live cd a shot. It saw the hard drive but would fail to copy.

    Then I tried a knoppix live cd and all worked well. Then I used gparted live cd to do the partition resizing. All went perfect.

    Just throught I'd throw that out there for people trying to clone a drive connected via USB. You may have to use Knoppix instead of gparted live cd and then just follow the directions listed in the first post.

  10. #85
    Join Date
    Jun 2004
    Location
    Newcastle upon Tyne
    Posts
    2,984
    drsatch,

    I rather think your problem is hardware related.

    It is a common fault that if a USB hard disk isn't properly powered then it may fail to be picked up by some operating systems.

    The maximum power supply to a USB port is 0.5 Amp. Just about every 2.5" hard disk above 20Gb capacity would be using 0.5 to 1 Amp consumption range. A properly kitted out external 2.5" hard disk enclosure would have a twin head USB cable supplied for drawing power supply from two USB ports.

    If you are using a twin head cable and the distro is a recent one then your USB hard disk should be seen by every Linux.

    If you use a single head USB cable then the hard disk read/write operations are simply "unreliable". Sometimes it works but sometimes it doesn't. This is not an operational problem.

    Can you confirm what cable you were using?

    Also the best detection is at the terminal using command in root
    Code:
    fdisk -l
    Linux user started Jun 2004 - No. 361921
    Using a Linux live CD to clone XP
    To install Linux and keep Windows MBR untouched
    Adding extra Linux & Doing it in a lazy way
    A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
    Just cloning tips Just booting tips A collection of booting tips

    Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"

  11. #86
    Join Date
    Aug 2002
    Posts
    63
    You're exactly right. It was a twin head. I was using 1. Never thought about the power requirements. Just thought it was strange that parted magic and gparted iso's wouldn't see it, but the knoppix one did. I did use the command line to find the disks also.

    It's exactly as you said...sometimes it works using one lead, sometimes it doesn't.

    In my case, it did. All is well in my world.

  12. #87
    Join Date
    Jun 2004
    Location
    Newcastle upon Tyne
    Posts
    2,984
    drsatch,

    Thanks for the confirmation.
    Linux user started Jun 2004 - No. 361921
    Using a Linux live CD to clone XP
    To install Linux and keep Windows MBR untouched
    Adding extra Linux & Doing it in a lazy way
    A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
    Just cloning tips Just booting tips A collection of booting tips

    Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"

  13. #88
    Join Date
    Oct 2008
    Location
    South Carolina, U.S.
    Posts
    2

    Your tuturial on windows XP migration.

    I just want to thank you for talking to us, like the children we are. Not all of us was born with this embedded in our brains. About 2 minutes ago I completed my first XP migration. Your instructions were simple and to the point. The only issue I had was that the code you gave , ( dd if=/dev/hda of=/dev/sda bs=32256) had to be changed to (dd if=/dev/sda of=/dev/sdb bs=32256) because thats the way terminal had designated it. Could you show a me a code, lets say , to single out one partition of a duel boot, with XP and linux, on a single drive. I think if I seen this it would better help me understand, this process . Thanks again AD johnson

  14. #89
    Join Date
    Jun 2004
    Location
    Newcastle upon Tyne
    Posts
    2,984
    AD Johnson,

    The safest way to clone a MS system, especially Vista, is to mirror a complete hard disk.

    Thereafter if you want to change the partition arrangement do it with the Parted Magic or Gparted Live CD. This way you start with a workable system first, test it and then start messing around with the partition table. For Vista it is best to use its own resizer function within the "disk management" program. Parted magic and Gparted are alright for Xp.

    To clone a partition just use the device name of a partition. In Linux the first partition of disk sda is sda1, the 3rd partition of disk sdb is sdb3. Therefore is you want to clone sda1 as a source to sdb3 as a target the instruction is just
    Code:
    dd if=/dev/sda1 of=/dev/sdb3 bs=32256
    You need to do extra work to change some system parameter if you migrate a MS system or any operating system to a partition with a number different from its original. That is why I recommend cloning the whole disk first and alter its partition table later. Also you need to make sdb3 exactly in size, in exactly the same number of cylinders, as sda1 in order to be error free.

    In general cloning a partition without an operating system (data only) is recommended for the above. However you might find creating sdb3 first, format it and then copy the content of sda1 into it is easier as you can have sdb3 in any size you wish.

    Cloning with dd has the advantage of copying the boot sector which is not touched by programs copying the filing system.

    If you want to know how each partition is called in Linux use a root console command
    Code:
    fdisk -l
    Lastly it was not my intention to make my readers feel like children. However the operation is very simple but the theory behind is quite complicated. My intention was to make aware of the principles behind. To migrate an operating system by any standard is a big deal so there is no harm in stating each step clearly.
    Last edited by saikee; 10-17-2008 at 04:53 AM.
    Linux user started Jun 2004 - No. 361921
    Using a Linux live CD to clone XP
    To install Linux and keep Windows MBR untouched
    Adding extra Linux & Doing it in a lazy way
    A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
    Just cloning tips Just booting tips A collection of booting tips

    Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"

  15. #90
    Join Date
    Oct 2008
    Location
    South Carolina, U.S.
    Posts
    2

    Thanks for the reply

    I Thank you for your quick response. It has shed a lot of light on the subject. Right now I'm trying the ( tar ) method in migrating .elyssa mint 5 to an external hard drive,just to see how it works. Again I thank you, I hope I did not offend you with my children statement, But when I go to some forums, they talk as if everybody's been doing this all they're lives. Nice to listen to someone who talks to us in a way we understand. Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •