Page 5 of 5 FirstFirst ... 345
Results 41 to 42 of 42

Thread: How To Limit ddrescue to a Partition?

  1. #41
    Join Date
    May 2010
    Location
    uk
    Beans
    9,299
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: How To Limit ddrescue to a Partition?

    Hi

    Quote Originally Posted by johny why View Post
    hey Matt

    i tried this, and got:
    Code:
    # parted /dev/sdc "unit B print"
    Warning: /dev/sdc contains GPT signatures, indicating that it has a GPT table.
    However, it does not have a valid fake msdos partition table, as it should.
    Perhaps it was corrupted -- possibly by a program that doesn't understand GPT
    partition tables.  Or perhaps you deleted the GPT table, and are now using an
    msdos partition table.  Is this a GPT partition table?
    Yes/No?
    i hit ctrl-C there, and got:

    Code:
    Model: Apricorn  (scsi)
    Disk /dev/sdc: 320072933376B
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    
    Number  Start          End            Size           File system  Name                          Flags
     1      1048576B       315621375B     314572800B     fat32        EFI system partition          boot
     2      315621376B     1259339775B    943718400B     ntfs         Basic data partition          hidden, diag
     3      1259339776B    1393557503B    134217728B                  Microsoft reserved partition  msftres
     4      1393557504B    298587258879B  297193701376B  ntfs         Basic data partition
     5      298587258880B  320072581119B  21485322240B   ntfs         Basic data partition          hidden, diag
    Sorry for the delay. been away from keyboard.

    To use ddrescue to the recover the partition (partition 4) you would use

    Code:
    sudo ddrescue -i 298587258880 -s 297193701376 /dev/sda /path/to/partition_4.img
    That should backup the partition for you.

    For partition 5 use

    Code:
    sudo ddrescue -i 1393557504 -s 21485322240 /dev/sda /path/to/partition_5.img
    does this tell us anything new about the drive?
    i want to recover the big one, #4 (and #5 if i can)
    btw, what's "unit B print"
    The "unit B" will display the partition size in bytes.

    When you have backed up each partition, you can then attempt to recover the files on them.

    You can try mounting as a loopback device but i suspect that will fail so you may be looking at some data recovery tools.

    This will attempt to mount it as a loop back device on the mount point /mnt. It will mount it read only.

    Code:
    sudo mount -t ntfs -o ro /path/to/partition_5.img /mnt
    See how you get on with that and post back any error messages the terminal spits out.

    Have you ran chkdsk on the partition (using a windows CD or hirens boot CD) or the recovered partition image?

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  2. #42
    Join Date
    Aug 2007
    Beans
    66

    Re: How To Limit ddrescue to a Partition?

    hey Matt, thx for this great stuff! You're the first one to show how to use PARTED to get the exact bits and bytes.

    Some questions:

    Quote Originally Posted by matt_symes View Post
    To use ddrescue to the recover the partition (partition 4) you would use

    Code:
    sudo ddrescue -i 298587258880 -s 297193701376 /dev/sda /path/to/partition_4.img
    hrm, you're using the start of partition 5 to recover partition 4?

    For partition 5

    Code:
    sudo ddrescue -i 1393557504 -s 21485322240 /dev/sda /path/to/partition_5.img
    and using the start of partition 4 to recover partition 5?

    many thx!
    Last edited by johny why; April 3rd, 2015 at 06:55 AM.

Page 5 of 5 FirstFirst ... 345

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •