Re: Copying A Disk



On Fri, Jul 11, 2008 at 7:38 PM, Karl Larsen <k5di@xxxxxxxxxx> wrote:
Pete Holsberg wrote:
On Sat, 12 Jul 2008 02:08:53 +0300, Marius Gedminas wrote:


On Fri, Jul 11, 2008 at 06:52:12PM -0400, Pete Holsberg wrote:

I have a disk that is not accessible in Windows and it was suggested
that I could copy it in its entirety using

"dd noerror if=/dev/hdX of=~/filename" where hdX is the drive and
filename is the name for the copy.

I believe that should be "dd conv=noerror", note the 'conv=' bit in
front of 'noerror'. Also, in modern systems it's often /dev/sdX instead
of /dev/hdX.


How do I know what X is?

Use lshal (or the graphical device manager) and search for your disk.
For example, a 120 GB Hitachi disk is shown on my laptop as

udi =
'/org/freedesktop/Hal/devices/

storage_serial_1ATA_HITACHI_HTS541612J9SA00_SB2D51EVG60DLE'

block.device = '/dev/sda' (string)
...
info.product = 'HITACHI HTS54161' (string) ...
storage.size = 120034123776 (0x1bf2976000) (uint64) ...

The manufacturer, model, serial number and size help you identify the
disk, and block.device shows you how to access it.


Where would a USB drive appear?




First read man dd. You can't copy from a partition and to a file.
This will not work. You say you want to copy a disk. How big is the
disk? Does it run? How do you connect to it? How many partitions are on
the disk? Why does Windows not see this disk?

You need to have another disk to copy to.

Karl: I double-checked the dd man page, and didn't even see anything
that could be mistakenly taken that way. Perhaps you should read it
yourself?

Pete: I would connect the usb and take a look at the end of
/var/log/messages and see what happens. If it mounts successfully,
the log should give you the usb device. At that point, you should
unmount the drive and then perform the dd operation. If it doesn't
mount, you may get some clues as to why the disk is acting up.

Also, if the drive contains corrupt data or unreadable sections, you
may have better luck with ddrescue as opposed to dd.

Good luck,
Chris

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Create a bootable partition on a USB disk
    ... I want to boot Ubuntu from my 550 gig usb disk. ... partition on the disk for this purpose with GPartEd. ... I have formatted it in NTFS format. ...
    (Ubuntu)
  • Re: (1-man shop) must buy more disk for blade100; GOOD BRANDS?
    ... > one said USB -- does ATA usually imply USB?) ... Typically the disk is ATA but the interface to your box is USB 2.0 ... ... > in smaller partition that CAN reasonably be usfdumped to tape. ... Also I had some problems with rmformat but I cant recall what they were ...
    (comp.unix.solaris)
  • Re: Event ID 51, USB 2.0 HDD not responding properly (internal WD 160
    ... Close all apps that can access it and reconnect the disk. ... System event ID 11 is logged when you cancel an I/O operation to a raw USB ... and the last partition couldn't be completed either. ... I'm wondering now if I can format the USB 2.0 drive on a Windows 98 SE machine ...
    (microsoft.public.windowsxp.hardware)
  • Trying to partition a 400 GB drive in one FAT 32 partition....
    ... all unsorted on one partition and not ... to move all that data to a new disk format. ... format for this new disk and then reformat the older drives as I move ... but four USB storage devices... ...
    (rec.photo.digital)
  • Re: Copying A Disk
    ... A good way to see what device the system is loading your USB drive as ... When you insert your USB disk, you will see some lines of text appear ... sees my USB disk as device sdb and the partition on it as sdb1. ... and it will mount the partition as read-write by default if possible. ...
    (Ubuntu)