Re: change harddisk - Further explain of command lines

From: Jeff Vian (jvian10_at_charter.net)
Date: 02/24/04

  • Next message: Cristian Contescu: "Re: vmailmgr on Fedora Core 1"
    To: fedora-list@redhat.com
    Date: Tue, 24 Feb 2004 14:33:38 -0600
    
    

    Barry Yu wrote:

    >
    >
    > dballester@kernpharma.com wrote:
    >
    >>Both hd in same machine
    >>
    >>Suppouse that you wanna 'clone' /dev/hda to /dev/hdb
    >>
    >>install /dev/hdb
    >>
    >>Start the machine in single mode and:
    >>
    >>dd if=/dev/hda of=/dev/hdb
    >>
    >>Shutdown
    >>
    >>Extract /dev/hda
    >>Insert /dev/hdb in /dev/hda
    >>
    >>Start machine
    >>
    >>
    >>
    >>
    --snip--

    >>On Tue, 2004-02-24 at 21:53, kh wrote:
    >>
    >>
    >>>My current harddisk is running out of space and i'm going to replace it
    >>>with something larger, and i want to bring my data with me over to the
    >>>new disk.
    >>>
    >>>It seems that i can use Norton Ghost before on a linux disk, anyone ever
    >>>tried this?
    >>>
    >>>btw i have redhat 8 on that disk.
    >>>
    >>>kh
    >>>
    >>>
    >>
    >>If you use the latest version of Ghost you will be ok. The only thing
    >>that I have found, is that it may affect the Grub MBR contents. All I
    >>ended up doing was to boot the install CD then boot into rescue mode and
    >>reinstall grub back to the MBR, then I could boot the new drive again
    >>with the new partition sizes. Other than that, I found it to work very
    >>well. (And also works very quick)
    >>
    >>Wolf
    >>
    >>
    >>
    >>--
    >>fedora-list mailing list
    >>fedora-list@redhat.com
    >>To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    >>
    >>------------------------------------
    >>
    > I am not familiar with above commands like : dd , inset and extract,
    > will really appreciate if you could further explain so I can
    > understand how they work.
    > Besides, my experience in using the CD booting up in rescue mode also
    > may encounter unexpected problem; After I restored the Ghost image
    > file back to original partition, then booted up Line CD into rescue
    > mode, the rescue process for unknown reason failed to mount this
    > original partition, a message said it has problem, so restore
    > operation failed. It is better to make a boot up floppy with current
    > o/s, in case the the CD rescue mode won't work, this boot up floppy
    > will then be a life saver.
    > I also confirm that when used the partimage to make image file out of
    > a partition when my Red Hat 9 installed. I had a successful restore
    > without using CD rescue mode nor boot up floppy, just reboot the
    > machine and everything is up and running fine - making linux image
    > file for restore Ghost can't do that, including ver 8.0 (I must use
    > boot up floppy and then do grub-install).

    The recommended command above ( dd ) should NOT be used on 2 different
    sized disks.
    Although it will copy the first disk to the second, it also will
    overwrite the disk geometry and make the new larger disk act exactly
    like and the same size as the first smaller disk. Another problem,
    unless you are copying directly from one drive to another is the wasted
    space int he copy. It copies byte for byte the source, even if it is
    empty/unused.
    -
    Another tool I use, besides ghost, is mondoarchive available at
    http://www.microwerks.net/~hugo/index.html.
    I have used it via cron for several months, since I saw the article on
    it in Linux Journal (Oct 2003) and it works flawlessly for me to create
    bootable CD or DVD images of my system that will do a restore.
    When restoring it allows you to create/resize partitons on the drive
    restored to. It does not have the problems you will see with dd, and
    also restores the boot loader (grub or lilo) correctly. I have had no
    problems in restoring to different sized disks.

    Mondo is a very good disaster recovery tool and also works extremely
    well for migrating your system to a new disk.

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Cristian Contescu: "Re: vmailmgr on Fedora Core 1"

    Relevant Pages

    • Re: Restoring Windows 2003 Server (Enterprise) system state results in continuous rebooting
      ... The primary disk on the server failed this past weekend, ... Restore procedure and results are as follows: ... boot into directory restore mode, get the .bkf file conaining the ...
      (microsoft.public.windows.server.general)
    • Re: Disk with NTDS failing
      ... My boot drive is F: ... Your suggestion of "replace the disk and do a system-state restore" sounds ... I've never tried a restore from one of these SBS backups. ... When you said "need to do some repairs," can you be more specific? ...
      (microsoft.public.windows.server.sbs)
    • Re: UNMOUNTABLE_BOOT_VOLUME
      ... Your cd might be a restoration cd, you can't do much with those cd's, they can only be used to restore the computer to factory condiditon. ... What XP boot disk did you try? ... I've created a XP boot disk and tried that, prior to getting the otions screen a message flags up saying invalid keyboard error. ... I wish to know how to create a windows XP boot-up disk on CD so that I can at least boot up the PC and hopefully run chkdsk to sort out the hard drive. ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: Backup Software rcommendation
      ... reasons, ... a disk that fails to properly boot the system which could be caused ... to use a clone as a restore disk in that manner. ... to boot if the OS itself won't boot? ...
      (microsoft.public.windowsxp.general)
    • Re: change harddisk - Further explain of command lines
      ... >ended up doing was to boot the install CD then boot into rescue mode and ... my experience in using the CD booting up in rescue mode also ... partition, a message said it has problem, so restore operation failed. ... this boot up floppy will then be a life saver. ...
      (Fedora)