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

Thread: Help needed on using dd

Hybrid View

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    5

    Help needed on using dd

    I am new to Linux and am currently trying to copy / clone a hard drive with an XP OS to another.

    The source drive shows up as hda1
    The destination drive is an IDE on a USB adapter and shows up as sda. It has some old data on it which I assume will be overwritten.

    Both drives are 20.4Gb

    I believe I need to use "dd if=/dev/hda of=/dev/sda" to clone the drive.

    I have gone to run and typed BASH.
    I then typed su
    I then typed the command shown above. The hard drive light pulses 1 or 2 times a seconds. After about 12 hours the command had not finished. I cancelled the operation and checked the destination drive in Linux. Nothing had changed on it.

    Any ideas as to what I am doing wrong?

  2. #2
    Senior Member registered user
    Join Date
    Jun 2005
    Posts
    348
    Just a rough guess, but if you are trying to clone an NTFS partition/drive, Linux might not be the answer. I have not used dd to clone an NTFS drive, so I do not know if it would work or not. It is just my opinion that if Linux is not flawless with NTFS, it could be the issue.

  3. #3
    Junior Member
    Join Date
    May 2006
    Posts
    5
    At the moment I am testing using dd to clone between two good drives as I need to clone a drive with a hardware fault. It can not be accessed in Windows as Windows times out. Therefore I can't use Ghost. However the drive can be accessed and read with Linux.

    So assuming I can get two working drives to clone using dd I will then try the faulty drive.

  4. #4
    Senior Member registered user
    Join Date
    Jul 2004
    Location
    Southern Maine, US
    Posts
    274
    The filesystem type won't matter, just make sure each fs is the EXACT SAME SIZE, down to the byte. Otherwise it won't work.

  5. #5
    Junior Member
    Join Date
    May 2006
    Posts
    5
    Hi Kowood

    <<make sure each fs is the EXACT SAME SIZE>>
    Does this mean I need to create a partition of the same size and type on the destination drive? I assumed that as dd did a byte by byte copy it would create everything during the process.

  6. #6
    Moderator Moderator
    Join Date
    Mar 2004
    Location
    Menlo Park, California
    Posts
    674
    Quote Originally Posted by orbitbsl
    Hi Kowood
    <<make sure each fs is the EXACT SAME SIZE>>
    Does this mean I need to create a partition of the same size and type on the destination drive? I assumed that as dd did a byte by byte copy it would create everything during the process.
    At first I woul copy the whole drive at once, including partition table and boot sectors
    even though the new drive has a larger size and you will only use a portion of it.
    Then under windows, resize, move or create new partition(s) to use the rest of the disk.
    As far as I remember the windows boot loader (ntldr) do not like a change in the disk geometry
    and/or a change in the physical location of the boot files...
    You may need to use the windows recovery console from the install cd to re install the boot files.
    My two cents,
    Gilles

  7. #7
    Junior Member
    Join Date
    May 2006
    Posts
    5
    I have now tried another hard drive as the destination drive and attached it directly to the IDE rather than running it on a USB - IDE adapter. The dd now runs but it takes a very long time. 20Gb took 5 hours! This would take about 15 - 30 minutes with Ghost.

    This there anything that can be done to speed up the dd? I need to clone a Windows XP drive that can only be read in Linux. It is 250Gb so it is going to take at least 2 days.

  8. #8
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    ghost copies data only dd copies the whle drive. quite diferente things don't you think?

  9. #9
    Moderator Moderator
    Join Date
    Mar 2004
    Location
    Menlo Park, California
    Posts
    674
    Quote Originally Posted by orbitbsl
    ...This there anything that can be done to speed up the dd? I need to clone a Windows XP drive that can only be read in Linux. It is 250Gb so it is going to take at least 2 days.
    Did you enable dma in the kernel cheatcode ?
    Did you enable the 32bit mode (hdparm -c1d1 /dev/hda) ?
    My two cents,
    Gilles

  10. #10
    Senior Member registered user
    Join Date
    Sep 2005
    Posts
    205
    Quote Originally Posted by orbitbsl
    I have now tried another hard drive as the destination drive and attached it directly to the IDE rather than running it on a USB - IDE adapter. The dd now runs but it takes a very long time. 20Gb took 5 hours! This would take about 15 - 30 minutes with Ghost.

    This there anything that can be done to speed up the dd? I need to clone a Windows XP drive that can only be read in Linux. It is 250Gb so it is going to take at least 2 days.
    You can use bs-option to set the block-size. Larger values might be faster (as long as they aren't too large), but I havn't really tested it. I usually use bs=1M

Page 1 of 2 12 LastLast

Similar Threads

  1. HELP needed!!
    By mostafa_dahir in forum Laptops
    Replies: 1
    Last Post: 04-11-2006, 05:29 PM
  2. Some help needed please.
    By BNU-FaNtAsMa in forum General Support
    Replies: 2
    Last Post: 08-22-2004, 11:06 PM
  3. help needed
    By ryansanders2002 in forum General Support
    Replies: 1
    Last Post: 06-19-2004, 07:47 PM
  4. Help Needed .. in a bad way ...
    By junior in forum General Support
    Replies: 5
    Last Post: 08-08-2003, 05:41 AM
  5. More Verizon DSL help needed
    By akira28 in forum Networking
    Replies: 9
    Last Post: 07-18-2003, 07:59 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
  •  


IBM System X3850-X5 Server w/4x Intel  Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD picture

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD

$1299.99



Unused IBM 09P0037 MAINBOARD For  RS/6000 7044-170 P-Series picture

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series

$375.00



IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM

$179.99



IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon  E5620 picture

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620

$199.99



IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU picture

IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU

$999.99



IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1) picture

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)

$150.00



IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES picture

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES

$110.30



IBM 4262 SYSTEM x3200 Tower - HDD Wiped, NO OS picture

IBM 4262 SYSTEM x3200 Tower - HDD Wiped, NO OS

$80.00



Lot of 3 IBM 00JY196 ServeRAID M1210 PCI Express SAS SATA Storage Controller picture

Lot of 3 IBM 00JY196 ServeRAID M1210 PCI Express SAS SATA Storage Controller

$68.99



IBM System X3650 M3 Server Xeon E5620 2.4 GHz 16 GB Ram Raid M5015 No OS No HDD picture

IBM System X3650 M3 Server Xeon E5620 2.4 GHz 16 GB Ram Raid M5015 No OS No HDD

$87.96