Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Backup Linux System

  1. #11
    Senior Member registered user
    Join Date
    Dec 2004
    Location
    Dublin, OH
    Posts
    342

    More DD to an image

    Ok, I'm looking at your dd to an image.

    I want to try doing that to a different partition on my Windows XP drive.

    I'm thinking if I totally defrag the partition first in XP and back it up first I should be OK to try it.

    sakiZ

  2. #12
    Senior Member registered user
    Join Date
    Aug 2003
    Location
    Dublin, Ireland
    Posts
    164

    Re: More DD to an image

    Quote Originally Posted by sakiZ
    Ok, I'm looking at your dd to an image.

    I want to try doing that to a different partition on my Windows XP drive.

    I'm thinking if I totally defrag the partition first in XP and back it up first I should be OK to try it.
    If the partition you want to write the image on is an ntfs formatted partition then I wouldn't bother trying to do it under Linux, either you will have to use paragons ntfs drivers (which I gather are reasonable), or use captive-ntfs which is horribly horribly slow or use linux's normal ntfs tools which means you'ld probably have to figure out what size the file would be (exactly) first, then allocate a file that size in windows on the ntfs drive and finally go into Knoppix and do your dd (hoping it comes out the same size), this is because with normal ntfs write support on Linux you can only write to files without changing the filesize and it can't add/remove files or folders!

    If it is a fat partition or some Linux type then it shouldn't be a problem (whether you defrag it or not, but it probably only makes sense to defrag it if it is a fat partition, the default from dos and Windows 9x).

  3. #13
    Senior Member registered user
    Join Date
    Dec 2004
    Location
    Dublin, OH
    Posts
    342

    Cloned It AND Loop Mounted IT!!!!

    Hey Bfree,

    Thanks to you I tried your "dd" trick and it worked!!!

    I defragged my partition to recieve the image file, scanned it for errors and backed it up, all in Windows XP.

    I booted into Knoppix and did the "dd" command you gave me to create the hdb2.img file.
    So far so good.

    Next I followed your second step and created the loop mount. Well, I'll be!!! There is my image file appearing as a mirrored clone in my root directory!!!! Amazing.

    So to make a clone I do:

    "dd if=/mnt/hda6/hdb2.img /dev/hdb2"

    If this were to be a clone of my Knoppix set up on a NEW drive would the command then actually be:

    "dd if=/mnt/hda6/hdb2.img /dev/had1" ???

    Thanks so much for your help.

    Windows could never do anything like this.

    sakiZ

  4. #14
    Senior Member registered user
    Join Date
    Aug 2003
    Location
    Dublin, Ireland
    Posts
    164

    Re: Cloned It AND Loop Mounted IT!!!!

    Quote Originally Posted by sakiZ
    So to make a clone I do:

    "dd if=/mnt/hda6/hdb2.img /dev/hdb2"

    If this were to be a clone of my Knoppix set up on a NEW drive would the command then actually be:

    "dd if=/mnt/hda6/hdb2.img /dev/had1" ???
    Not quite. To restore/clone the image into a partition do
    Code:
    dd if=/mnt/hda6/hdb2.img of=/dev/hdb2"
    If you were putting it onto a new drive you would again use the of=. Aswell as that you would proably have to use a rescue disk to tweak the system (fix the bootloader and /etc/fstab) before you could boot it. If it's windows on the other hard I'm not sure what you can do apart from restore it to the same position on a new drive with the same partition table as the original device (you can backup the masterboot record and partition table of your drive with "dd if=/dev/hda of=hda-start bs=512 count=1" and restore it with the reverse) which I'm 99% certain will be ok.

    Just to point out one last trick, you can dd an entire disk device, e.g. "dd if=/dev/hda of=hda.img" and "dd if=hda.img of=hdb" but mounting the images from within these requires you to use some tricks to give an offset argument to mount. Here's instructions.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 2
    Last Post: 12-14-2005, 08:36 AM
  2. Backup Program for Knoppix HDD Installed System
    By Cuddles in forum General Support
    Replies: 9
    Last Post: 11-26-2004, 10:57 PM
  3. the best backup system for knoppix?
    By helios17 in forum General Support
    Replies: 12
    Last Post: 10-28-2004, 12:47 PM
  4. Linux on old system
    By Jaguar600 in forum General Support
    Replies: 5
    Last Post: 09-27-2004, 10:34 PM
  5. Knoppix Live CD-Entire windows system backup to DVD via USB
    By mconzo in forum MS Windows & New to Linux
    Replies: 4
    Last Post: 09-06-2004, 02:09 PM

Posting Permissions

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


SUN Blade X6250 Server 8GB RAM DUAL PROCESSORS 594-4531-01 picture

SUN Blade X6250 Server 8GB RAM DUAL PROCESSORS 594-4531-01

$109.99



HPE BL460c G10 ProLiant Blade | 2x Silver 4110 | 16GB | P204I | 2x300GB 10KRPM picture

HPE BL460c G10 ProLiant Blade | 2x Silver 4110 | 16GB | P204I | 2x300GB 10KRPM

$1419.00



HPE BL460c G9 ProLiant Blade | 2x Xeon E5-2620V3 | NO RAM | P244BR | 2xHDD Tray picture

HPE BL460c G9 ProLiant Blade | 2x Xeon E5-2620V3 | NO RAM | P244BR | 2xHDD Tray

$179.00



Dell PowerEdge M640 Blade Server 2x Xeon Gold 5122 3.6GHz, No RAM, READ _ picture

Dell PowerEdge M640 Blade Server 2x Xeon Gold 5122 3.6GHz, No RAM, READ _

$402.38



Dell PowerEdge M620 0F9HJC Blade Server 2*E5-2670 2.60GHz 192GB RAM 2*300GB SAS picture

Dell PowerEdge M620 0F9HJC Blade Server 2*E5-2670 2.60GHz 192GB RAM 2*300GB SAS

$103.99



HP ProLiant BL460c G9 (Gen9) 2x E5-2670V3 12 Core 3.1GHz No Ram or No Drives picture

HP ProLiant BL460c G9 (Gen9) 2x E5-2670V3 12 Core 3.1GHz No Ram or No Drives

$59.98



Dell PowerEdge M630 Blade Server 1x Xeon E5-2630 v4 CPU / Motherboard P/N 0R10KG picture

Dell PowerEdge M630 Blade Server 1x Xeon E5-2630 v4 CPU / Motherboard P/N 0R10KG

$69.99



Dell PowerEdge VRTX Rack Chassis 25-Bay 14.4TB HDD 2x M640 Blade 512GB RAM 2-Bay picture

Dell PowerEdge VRTX Rack Chassis 25-Bay 14.4TB HDD 2x M640 Blade 512GB RAM 2-Bay

$2335.00



Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W picture

Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W

$399.00



Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric picture

Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric

$139.99