How to playback image done through RAWDISK?
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    I have a question about this RAWDISK: device. I did a backup of the system partition to a file on another disk by selecting source and target in 'Ambient listers and then copy it via drag and drop. Now I want to playback this backed up partition. To which path do I have to copy it back? And can I do it while the system is running from this system partition or do I have to boot from the installation CD? I suppose I cannot replace it without booting from the CD because the system is running from that partition or does it not matter because everything needed is stored in RAM at that time?
  • »29.12.15 - 12:26
    Profile
  • Butterfly
    Butterfly
    Norbi
    Posts: 99 from 2004/6/19
    http://jpv.wmhost.com/morphos/tips/index.html
  • »29.12.15 - 16:10
    Profile
  • MorphOS Developer
    geit
    Posts: 1049 from 2004/9/23
    Quote:

    connor wrote:
    I have a question about this RAWDISK: device. I did a backup of the system partition to a file on another disk by selecting source and target in 'Ambient listers and then copy it via drag and drop. Now I want to playback this backed up partition. To which path do I have to copy it back? And can I do it while the system is running from this system partition or do I have to boot from the installation CD? I suppose I cannot replace it without booting from the CD because the system is running from that partition or does it not matter because everything needed is stored in RAM at that time?


    You can mount it. RAWDISK: is only needed to create an image or write an image onto a complete harddrive.

    The tool you need is file image control if it is just a single partition. If it is a partitioned hardfile you need mounter. Both tools are included in the tools drawer.

    No CD boot etc is required. Afterwards you can access/copy the files on a file base.

    If you want to restore the entire harddrive using your image you can perform some shell command. However due some bug this requires CP shell command from the SDK to copy the image onto the harddisk again.

    cp image.img RAWDISK:Devices/idemacio.device/0/rawdisk

    The device name and the unit is probably different, but using the tab key while typing fills in valid suggestions. Just be sure to use the proper harddrive. Any data on it will be killed.



    [ Edited by geit 29.12.2015 - 20:34 ]
  • »29.12.15 - 18:27
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    I just copied the single MorphOS partition that contains the Os installation, so not the Boot partition or Work (mac mini setup with 3 partitions).
    By mounting I get the "file view". I do not work on a file base. My thought were about the partition view: I copied the partition elsewhere, so I want to get the whole partition back without mounting. But just by copying one file - the raw partiton. So I think your "cp image ..." line should lead me to target. But when I copy it back using Ambient or "copy" command something will break? What and why? I hope this bug will be fixed then because no user thinks of using a third option rather than the two obvious ones, so they have to work otherwise his setup will be broken.
    So maybe because the system boots from the Boot partition mainly, it is no problem to replace all files on the System partition at runtime or the whole partition itself?
  • »05.01.16 - 17:18
    Profile