Cloning a hard disk drive - SOLVED
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    TrevorDick
    Posts: 130 from 2005/10/12
    From: Wellington
    I have a Peg 2 system which has MorphOS 1.4.5, Ubuntu, MacOS and OS4.1 installed. I would like if possible to clone the HDD to use on a second Peg 2 I have obtained rather than go through the whole process of installing and setting up the system from scratch. Is is possible to clone the HDD under MorphOS (or any other OS) when is has several different OS's installed?

    Trevor


    [ Edited by TrevorDick on 2009/2/15 14:25 ]

    [ Edited by TrevorDick on 2009/2/16 18:19 ]
  • »15.02.09 - 12:24
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Simon
    Posts: 809 from 2008/7/6
    From: Antwerp, Belgium
    Acronis True Image 10 and a machine running windows ... I think.
    Proud member of the Belgian Amiga Club since 2003

  • »15.02.09 - 13:06
    Profile Visit Website
  • MorphOS Developer
    March
    Posts: 91 from 2003/7/30
    From: Warsaw, Poland
    If both disks are same (or nearly simmilar) size you can easily clone them using RAWDISK: device under MorphOS 2.2+

    To clone whole disk attached as ide.device unit 1 to ide.device unit 2 you whould need to type something like this:

    cp RAWDISK:devices/ide.device/1/rawdisk RAWDISK:devices/ide.device/2/rawdisk

    (note that the cp command from MOS SDK is used instead of copy command, which sadly won't work with rawdisk)

    You can also clone selected partitions (note that you would need to create them first on the target disk). Note that not all filesystems will work on cloned partitions (SFS won't - it would need to be 'repaired' with SFSDoctor to work again on cloned drive, as some partition offsets will change).

    Simmilar things you can do under Linux by playing with /dev/hdaX device files.

    WARNING - playing with RAWDISK and/or /dev/hd* devices is dangerous and it is extremly easy to kill you data by accident (wrong partition numer or so), so please think twice before enterring all these commands.
    Marek Szyprowski ...... happy MorphOS, AmigaOS and Debian/Linux user ........
  • »15.02.09 - 13:14
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    stephen_robinson
    Posts: 746 from 2007/4/22
    Wouldn't Ghost on Windows work?
  • »15.02.09 - 14:31
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    TrevorDick
    Posts: 130 from 2005/10/12
    From: Wellington
    Thanks for the advice. I thought about a Windows cloning utility bit I didn't think it would handle SFS partitions? As for MorphOS2.2 I have licensed copies installed on both my Efikas but I do not have the MorphOS SDK and the web address for developer site no longer appears to be valid?

    Trevor
  • »15.02.09 - 17:05
    Profile
  • Moderator
    Golem
    Posts: 766 from 2003/2/28
    From: Denmark
    Some PC/Windows utility might work if you have two identical drives and have the option of a raw copy, ie. don't let it try to guess what is on the disk. If you check the left column here on MZ you will find a link to the current location of MDC.
  • »15.02.09 - 18:26
    Profile Visit Website
  • MorphOS Developer
    March
    Posts: 91 from 2003/7/30
    From: Warsaw, Poland
    Forget about the 'cp' command - it will fail after 2GB or 4GB. I wrote a simple command that will handle larger files correctly. You can download it here: http://home.elka.pw.edu.pl/~mszyprow/simplecopy

    Note that it is really simple - it has no progress display and clonning a large disk will take some time.
    Marek Szyprowski ...... happy MorphOS, AmigaOS and Debian/Linux user ........
  • »15.02.09 - 20:27
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    TrevorDick
    Posts: 130 from 2005/10/12
    From: Wellington
    @March

    Quote:

    I wrote a simple command that will handle larger files correctly.

    Many thanks, I'll try it out tomorrow and let you know how I get on.

    Trevor
  • »15.02.09 - 21:32
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    TrevorDick
    Posts: 130 from 2005/10/12
    From: Wellington
    @March,

    I have sent you a PM about usage of your SimpleCopy command.

    TrevorD
  • »16.02.09 - 09:27
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    TrevorDick
    Posts: 130 from 2005/10/12
    From: Wellington
    I managed to clone my Pegasos HDD by using a very simple procedure in Ubuntu (which is also installed on my Peg II) which I found on the following website: Cloning a hard disk drive under Ubuntu

    Anyway it worked first time and was very simple. Even the cloned SFS partition which appear to work OK.

    Thanks for all the help and suggestions.

    TrevorD

    [ Edited by TrevorDick on 2009/2/16 18:26 ]

    [ Edited by TrevorDick on 2009/2/16 18:27 ]
  • »16.02.09 - 16:25
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    magnetic
    Posts: 2129 from 2003/3/1
    From: Los Angeles
    Yeah, we used DD in linux to clone the ODW drives back in the Freescale days w/ Genesi
    Pegasos 2 Rev 2B3 w/ Freescale 7447 "G4" @ 1ghz / 1gb Nanya Ram
    Quad Boot: MorphOS 2.7 | Amiga OS4.1 U4 | Ubuntu PPC GNU/Linux | OS X 10.4
  • »17.02.09 - 02:58
    Profile Visit Website