Re: cloning hard disk for recovery

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-------- Original Message  --------
Subject: cloning hard disk for recovery
From: Les Mikesell <lesmikesell@xxxxxxxxx>
To: For users of Fedora <fedora-list@xxxxxxxxxx>
Date: 11/16/2006 05:16 PM

On Thu, 2006-11-16 at 16:49 -0700, Paul Lemmons wrote:
My hard disk is squealing like a rodent on fire. I think I am an trouble. I believe I can read the whole drive so I can get the data from it. I have seen a number of references to using dd to clone a disk. That is what I am hoping to do. Here are the steps I am planning to do, please redirect me as needed because I have not had to do this before.

1) Install new hard disk along side the current hard disk
2) dd if=/dev/hda of=/dev/hdb conv=noerror,sync
3) remove bad hard disk
4) re-cable the new hard disk using old hard disk connection
5) pray
6) reboot

You shouldn't have any problem as long as you can still read
the old disk and the new one is the same size.  Just don't
try to boot with both drives still in place after the copy
because you will have duplicate disk labels.  Those used
to confuse the kernel when booting, but perhaps it has been
fixed by now.


It appears that this machine is running SATA, If that changes things, let me know. When I try to do a:

# hdparm -i /dev/sda

I get

/dev/sda:
 HDIO_GET_IDENTITY failed: Inappropriate ioctl for device


# fdisk -l

gives me:

Disk /dev/sda: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14       20023   160730325   8e  Linux LVM

But I would really like to have the model, the size it thinks it is and other various details. Is it possible to do this with SATA drives?

New Plan:

1) Install new hard disk along side the current hard disk
2) dd if=/dev/sda of=/dev/sdb conv=noerror,sync
3) remove bad hard disk
4) re-cable the new hard disk using old hard disk connection
5) pray twice as hard
6) reboot
begin:vcard
fn:Paul Lemmons
n:Lemmons;Paul
org:Tucson Medical Center;Information Services
adr:;;5301 E. Grant Road;Tucson;AZ;85712;USA
email;internet:paul.lemmons@xxxxxxxxx
title:Lead Systems Software Engineer
tel;work:520-324-1034
tel;fax:520-324-1206
tel;pager:paullem@xxxxxxxxx
tel;home:520-722-2642
tel;cell:520-603-7392
x-mozilla-html:TRUE
url:http://www.tmcaz.com
version:2.1
end:vcard

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux