Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Cloning a harddisk

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    9

    Cloning a harddisk

    First off, i am more experienced in using Windows (all flavors since 3.1) than in using Linux.
    Not that i'm 100% new to Linux, i have been working with Linux every now and then and i know some of the basics, but Linux still does hold a lot of secrets for me, especially the CLI commands do because there are so much of them.
    I have done a search on this forum and read the FAQ here, but i couldn't find anything that seems to aplly to my problem.

    Now that you know a bit about my background, here's my problem:
    I have two equally sized harddisks (160GB), i'll call them #1 and #2.
    #1 is starting to decay rapidly, so i want to move all my data over to #2. My question now is; is there a command or program that comes on the Knoppix CD (using 3.2 now) and that lets me clone an entire harddisk from one HDD to another? Maybe something that works like Norton Ghost.

    On #1, i use Xp, i have both Fat, Fat32 and NTFS partitions, the MBR should be copied too, if possible.
    #2 is clean, there is not even a partition table present.

    I am getting rather desperate because i have a lot of data on my harddisks that i definitely do not wish to lose.
    I really hope that someone can (and wants to ) help me here because i may lose all my data soon....

  2. #2
    Member registered user
    Join Date
    Nov 2002
    Posts
    79
    Open a terminal (konsole or rxvt etc) and type:

    apt-cache show parted

    That will give you a description of parted (partition manipulation program). If you want a gui parted version - try qtparted.

    Cheers
    rob

    PS g4u - is another way of doing it: http://www.feyrer.de/g4u/

  3. #3
    Junior Member registered user
    Join Date
    Jan 2004
    Posts
    23

    DD

    You can try using the command "dd". If the disks are identical (excactly same size down to the byte) you can simply do a "dd if=/dev/hda of=/dev/hdb" that will write all the contents of /dev/hda to /dev/hdb. WARNING all data on the of=/dev/xxx drive will be overwritten!

  4. #4
    Junior Member
    Join Date
    Apr 2004
    Posts
    9
    Quote Originally Posted by monkymind
    Open a terminal (konsole or rxvt etc) and type:

    apt-cache show parted

    That will give you a description of parted (partition manipulation program). If you want a gui parted version - try qtparted.

    Cheers
    rob

    PS g4u - is another way of doing it: http://www.feyrer.de/g4u/
    Thanks for the suggestions monkeymind, but it seems like Knoppix 3.2 does not have qtparted on board, but if it does, where would i be able to find it? I mean the path, or the location in the KDE start menu.
    After looking through the readme of parted, it looks like parted is a program for manipularting individual partitions, what i really need is a track and sector copy program to make an idential copy of the old harddisk to the new one in one go.

    g4u is not an option, my system does not meet the system requirements.

    Again, i appreciate your input, but it seems that this is not the type of program/command that i was looking for.

  5. #5
    Junior Member
    Join Date
    Apr 2004
    Posts
    9

    Re: DD

    Quote Originally Posted by tommydl
    You can try using the command "dd". If the disks are identical (excactly same size down to the byte) you can simply do a "dd if=/dev/hda of=/dev/hdb" that will write all the contents of /dev/hda to /dev/hdb. WARNING all data on the of=/dev/xxx drive will be overwritten!
    Yes, the disks are identical, in the sense that it's the same brand, type and size.

    Before i dare trying this, i need to be 100% sure about something.
    HDD #1 is the primary slave and #2 is the secondary master.
    I think that means that #1 is /dev/hdb and #2 is /dev/hdc, correct?
    And how about error handling? Can it ignore bad clusters and/or read errors?
    Oh, and overwriting HDD #2 is exactly what i want, thanks for the warning though.

    I'm really scared to screw this up as you can probably tell, so please forgive me my insecurity and apperhensiveness.

  6. #6
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    sorry no. dd will make a 100% copy of the errors aswell... there are not many programs able to reliably recover those data, atleast not below 5k euro, and then not 100%gaurantee, sorry.
    hmm, where did my earlyer reply go?? oh well.

  7. #7
    Junior Member
    Join Date
    Apr 2004
    Posts
    9
    Quote Originally Posted by OErjan
    sorry no. dd will make a 100% copy of the errors aswell... there are not many programs able to reliably recover those data, atleast not below 5k euro, and then not 100%gaurantee, sorry.
    Copying the errors would be okay i guess, i have other (Windows- and DOS based) programs that may be able to recover some lost data.
    As long as DD does not freak over bad clusters and such, i would be very, VERY happy.

    hmm, where did my earlyer reply go?? oh well.
    I think it's got eaten by the moof-monster.

    Oh, almost forgot, was i correct in assuming that the primary slave is /dev/hdb and the secondary master is /dev/hdc?

    I am very nervous about trying anyting now, i have tried other things and it didn't work. I am so afraid of losing what's left of my data, i can hardly think straight....

  8. #8
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    why not check? do
    Code:
    dmesg |grep hd
    that should give some info. and if you then do a check to see which disk has which files...
    Code:
    fdisk -l
    might help some aswell, perhaps
    Code:
    mount
    can give some further info. if you do these it should become clear which disk is which. if not. ask and i will try to answer.
    btw, as long as dd gets input it SHOULD not crash, if the disk otoh has i/o issues... it might.

  9. #9
    Junior Member
    Join Date
    Apr 2004
    Posts
    9
    Quote Originally Posted by OErjan
    why not check? do dmesg |grep hd that should give some info. and if you then do a check to see which disk has which files...
    Thank you, when i do dmesg |grep hd i get this (trimmed the report a bit for readability):
    Code:
    ide_setup: hda=scsi
    ide_setup: hdb=scsi
    ide_setup: hdc=scsi
    ide_setup: hdd=scsi
        ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:pio, hdb:DMA
        ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:DMA
    hdb: WDC WD1600JB-00EVA0, ATA DISK drive
    hdc: WDC WD1600JB-00EVA0, ATA DISK drive
    hdb: 312581808 sectors (160042 MB) w/8192KiB Cache, CHS=19457/255/63
    hdc: 312581808 sectors (160042 MB) w/8192KiB Cache, CHS=19457/255/63
    So, if i understand correctly, the system sees both harddisks. What i don't understand is why the report says "hdX=scsi", is that standard? (i hope it is)

    fdisk -l might help some aswell,
    It tells me the following:
    Code:
    Can't open /dev/hdc
    Can't open /dev/hdb
    I'm not sure what that means, does it mean that those disks are present but not mounted?

    perhaps mount can give some further info. if you do these it should become clear which disk is which. if not. ask and i will try to answer.
    Mount seems to show the mounted disks only and i haven't mounted the harddisks (yet) because i am just too afraid to damage anything, even though i do know that mounting them from KDE only mounts them in read-only mode.

    btw, as long as dd gets input it SHOULD not crash, if the disk otoh has i/o issues... it might.
    Well, thank you for making me even more nervous!

  10. #10
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    sorry, i just say it might, not likely but... and if you have important stuff not yet backed up to oter edia i would reomend leaving the disk to a profesional recovery lab. the cost is high but it is safest i can give advice on, if you do not have the budget... what will you loose?

Page 1 of 2 12 LastLast

Similar Threads

  1. Cloning a hard disk
    By ferrel in forum General Support
    Replies: 2
    Last Post: 07-02-2005, 01:39 PM
  2. Disk Cloning?
    By eon in forum General Support
    Replies: 6
    Last Post: 04-02-2005, 11:14 AM
  3. cloning HD using Knoppix
    By drjawn in forum General Support
    Replies: 10
    Last Post: 01-17-2005, 12:23 PM
  4. cloning locally-- please help
    By xeoron in forum Hdd Install / Debian / Apt
    Replies: 5
    Last Post: 09-03-2004, 10:31 AM
  5. Networked disk cloning HOWTO?
    By MethodMan in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 08-30-2004, 09:25 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
  •  


RAM-HOL-SAM60CPU RAM USB-C Powered Dock for Samsung Tab Active5 - 3 - 2 picture

RAM-HOL-SAM60CPU RAM USB-C Powered Dock for Samsung Tab Active5 - 3 - 2

$81.99



Samsung 2.5

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot

$60.00



SAMSUNG FIT PLUS 128GB USB 3.1 Flash Drive - fully working & authentic picture

SAMSUNG FIT PLUS 128GB USB 3.1 Flash Drive - fully working & authentic

$24.95



LOT OF 5 Samsung 870 EVO 500GB 2.5

LOT OF 5 Samsung 870 EVO 500GB 2.5" SATA SSD TLC DRAM 95% or Better

$250.00



Samsung PM961 512GB PCIe Gen 3x4 NVMe 2280 M.2 SSD MZVLW512HMJP-000D1 picture

Samsung PM961 512GB PCIe Gen 3x4 NVMe 2280 M.2 SSD MZVLW512HMJP-000D1

$60.00



RAM-GDS-SKIN-SAM54-NG-1 RAM Mounts IntelliSkin® Next Gen for Samsung Tab Active4 picture

RAM-GDS-SKIN-SAM54-NG-1 RAM Mounts IntelliSkin® Next Gen for Samsung Tab Active4

$93.99



RAM-HOL-SAM52CPU RAM USB-C Powered Dock Samsung Tab Active4 Pro & Tab Active Pro picture

RAM-HOL-SAM52CPU RAM USB-C Powered Dock Samsung Tab Active4 Pro & Tab Active Pro

$81.99



Samsung 8GB DDR5 5600MHz SODIMM Laptop RAM PC5-44800 CL46 M425R1GB4BB0-CWM picture

Samsung 8GB DDR5 5600MHz SODIMM Laptop RAM PC5-44800 CL46 M425R1GB4BB0-CWM

$99.99



Lot of 15 Non-Working Samsung Galaxy Tablets for Parts picture

Lot of 15 Non-Working Samsung Galaxy Tablets for Parts

$338.63



Lot of 2 - M471A1K43DB1-CTD SAMSUNG LAPTOP MEMORY 4GB 1RX8 PC4-2666V-SA1-11 picture

Lot of 2 - M471A1K43DB1-CTD SAMSUNG LAPTOP MEMORY 4GB 1RX8 PC4-2666V-SA1-11

$34.00