This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Files
  • More Options
  1. Dashboard
  2. Members
    1. Recent Activity
    2. Users Online
    3. Staff
    4. Search Members
  3. Forum
  4. Downloads
  5. ISeeT Main Site
  • Login
  • Register
  • Search
  1. Dashboard
  2. Members
    1. Recent Activity
    2. Users Online
    3. Staff
    4. Search Members
  3. Forum
  4. Downloads
  5. ISeeT Main Site
  1. Dashboard
  2. Members
    1. Recent Activity
    2. Users Online
    3. Staff
    4. Search Members
  3. Forum
  4. Downloads
  5. ISeeT Main Site
  1. ISeeT Forums
  2. Other
  3. Other
  • Sidebar
  • Sidebar

Data Recovery with ddrescue

  • ISeeTWizard
  • October 26, 2025 at 2:09 PM
1st Official Post
  • ISeeTWizard
    Administrator
    Posts
    142
    Files
    26
    • October 26, 2025 at 2:09 PM
    • Official Post
    • #1

    We once had an issue to recover data from a broken disk. Under Windows the disk was directly "attacked" and so directly the control over it was lost.

    Same was with Windows PE Boot Sticks to recover data.

    So the only option left was Linux and here is how we did.


    First you need some tools you can download from the links below:

    http://www.system-rescue-cd.org/Download
    https://rufus.ie or https://www.balena.io/etcher


    1. Put the ISO on an USB Stick with Rufus (preferred) or Etcher
    2. Boot from Stick (deactivate Secure Boot) without connecting any external device (makes it easier to find the correct devices later)
    3. During the Boot process choose the default option (the first from the 2 options)
    4. When the boot process is finished you may want to change your keyboard layout. You can do this with the setkmap tool.
      Simply type setkmap at the prompt and then choose your keyboard layout from the list (fr_CH as example) and click OK.
    5. You can also start a graphical interface with startx but this is not needed to recover data. Within the graphical interface you can use FireFox, Partition Manager or FeatherPad (TextEditor)
    6. Connect your source drive (the defective one) and search for this device with
      ls -la /dev/sdc (where sdc may vary depending on what dev your device was mapped – so it could be sdc / sdd / sde etc.)
      If you have chosen the wrong one you’ll get an error saying that no such file or directory was found.
      PS: With lsblk you should be able to see what disk is mounted under what /dev/
    7. Now you can mount this device to check where the data is:

      • First create a folder in the mnt folder - do this with the following commands
        cd / (to get to the root folder)
        cd mnt (change directory to /mnt)
        mkdir source (take source as name as this is easier to find yourself back)


      • After creating the directory we can now mount the device (stay within the mnt folder)
        mount /dev/sdc2 ./source or mount /dev/sdc2 /mnt/source
        We use the number 2 as most of the time there are more partition created under Windows and 1 would be the hidden boot partition and 2 the first data partition
        That is also why we first mount the device to see if we are on the correct partition.


      • You can list what’s on your disk with (always while staying in mnt folder)
        ls -l ./source or ls -l /mnt/source


      • If you are on the wrong partition you have to unmount the device and restart with point b
        umount /mnt/source (for unmounting the source device)


      • if you can't mount due to an unclean NTFS file system you may try this (example):
        sudo ntfsfix /dev/sdc2
        sudo mount -o rw /dev/sdc2 /mnt/source


    8. When you have your source device you connect your destination device to copy the data too. Important here is that you use a device formatted with NTFS as we are going to first create an image of the source disk on that disk which will be more than 4GB (FAT32 only supports files of max 4GB).
      Also here you have to do the same as for the source drive, just name the folder destination (point 7 and :smiling_face_with_sunglasses: and as it is a NTFS partition the normal mount wouldn’t work so you have to take
      ntfs-3g to mount the device
      ntfs-3g /dev/sdd2 ./destination
    9. When your destination disk is mounted switch to that folder so that you are in /mnt/destination
      This is important for the following command as we want to create a map file directly on that disk to be able to resume the recovery in case of a crash
    10. For the recovery process we are going to use ddrescue. Here are some switches that may be needed:
      -f force
      -d direct disk access (slower but doesn’t use the kernel cache)
      with that method you can sometimes even recover more data as with the normal method
      not every system is supporting this
      -r3 retry 3 times (you can change the numer)
      -N skip the trimming phase
      We are using the following command for the first run (here we are recovering the most readable data)
      ddrescue -d /mnt/source /mnt/destination/data.img mapfile
      with that we copy the sdc2 partition in an data.img file on the destination disk and the mapfile is used if the recover crashes or so to not start from scrap.
      Also the mapfile is used for the second scan. Without switches we simply copy the data and when a sector has issues with reading ddrescue is skippin it and continuing with the next one without any retries.
      Now with the second scan we are going to use the -r switch to recover even more data. It is important to use the same mapfile as before
      ddrescue -d -r3 /mnt/source /mnt/destination/data.img mapfile
      You could also use this command directly but depending on the disk state you may lose all the data.
    11. After the copy is finished (about 10 hours for 1TB disk) you have an entire img file of your source disk.
      Here you may want to copy it as when you are going to mount this file you are going to make changes on it.
    12. Create an olddisk folder under /mnt
      mkdir olddisk (when you are under the mnt folder)
    13. Now mount the image file an create the folder for the recovered data
      mount /mnt/destination/data.img /mnt/olddisk
      mkdir /mnt/destination/recovery
    14. Than copy the data to the destination disk in a new folder
      cp -R /mnt/olddisk/ /mnt/destination/recovery/
      Pay attention that this also takes hours
    15. When all the data is copied you can unmount all the devices
      umount /mnt/olddisk
      umount /mnt/destination
      umount /mnt/source
    16. Now shutdown the computer
      shutdown -h now
    17. Check on a Windows PC if you have access to the data

    I hope this can help you if you ever have such an issue. I also had a personal SSD that wasn't accessible over Windows anymore but mounting it over an USB adapter on my Synology NAS, which is also Linux, helped me out and I could recover the data. It wasn't important data, as I have backups for everything, but I spend during some days collecting different download etc. for a project and so I didn't need to redownload everything lol 🙂 And there was an old Windows 95 game I patched to make it run on Windows 10 🙂

    PS: If I ever make a video I gonna attach it - maybe you can leave a comment and tell me if you want a how to video from me.

    • Quote

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login

Did you know…?

“You don’t always need a plan. Sometimes you just need to breathe, trust, let go and see what happens.”

Mandy Hale

“When you have a dream, you’ve got to grab it and never let go.”

Carol Burnett

“Get busy living or get busy dying.”

Stephen King

“Some people want it to happen, some wish it would happen, others make it happen.”

Michael Jordan

“There’s love enough in this world for everybody, if people will just look.”

Kurt Vonnegut

“Life isn’t about finding yourself. Life is about creating yourself.”

George Bernard Shaw

“Keep your face towards the sunshine and shadows will fall behind you.”

Walt Whitman

“I may not have gone where I intended to go, but I think I have ended up where I needed to be.”

Douglas Adams

“Be persistent and never give up hope.”

George Lucas

“Life is made of ever so many partings welded together.”

Charles Dickens

“All dreams are within reach. All you have to do is keep moving towards them.”

Viola Davis

“Always go with your passions. Never ask yourself if it’s realistic or not.”

Deepak Chopra

“My wish for you is that you continue. Continue to be who you are, to astonish a mean world with your acts of kindness.”

Maya Angelou

“You can be everything. You can be the infinite amount of things that people are.”

Kesha

“Don’t take yourself too seriously. Know when to laugh at yourself, and find a way to laugh at obstacles that inevitably present themselves.”

Halle Bailey

“The great courageous act that we must all do is to have the courage to step out of our history and past so that we can live our dreams.”

Oprah Winfrey

“When I let go of what I am, I become what I might be.”

Lao Tzu

“Life is what happens to you when you are busy making other plans.”

John Lennon

“Life is like riding a bicycle. To keep your balance, you must keep moving.”

Albert Einstein

“Do one thing every day that scares you.”

Eleanor Roosevelt

“No need to hurry. No need to sparkle. No need to be anybody but oneself.”

Virginia Woolf

“The world you desire can be won. It exists... it is real... it is possible... it’s yours.”

Ayn Rand

“For me, becoming isn’t about arriving somewhere or achieving a certain aim. I see it instead as forward motion, a means of evolving, a way to reach continuously toward a better self. The journey doesn’t end.”

Michelle Obama

“Success is stumbling from failure to failure with no loss of enthusiasm.”

Winston Churchill

“We must let go of the life we have planned, so as to accept the one that is waiting for us.”

Joseph Campbell

You cannot change what you refuse to confront.

“It is during our darkest moments that we must focus to see the light.”

Aristotle

“You may not control all the events that happen to you, but you can decide not to be reduced by them.”

Maya Angelou

“It is better to fail in originality than to succeed in imitation.”

Herman Melville

“I’m not going to continue knocking on that old door that doesn’t open for me. I’m going to create my own door and walk through that.”

W.P. Kinsella

“If you have knowledge, let others light their candles in it.”

Margaret Fuller

“It’s amazing how a little tomorrow can make up for a whole lot of yesterday.”

John Guare

“And when you want something, all the universe conspires in helping you achieve it.”

Paulo Coelho

“You only live once, but if you do it right, once is enough.”

Mae West

“Life does not have to be perfect to be wonderful.”

Annette Funicello

“Life is very interesting…in the end, some of your greatest pains become your greatest strengths.”

Drew Barrymore

“Don’t worry about failure, you only have to be right once.”

Drew Houston

“Spread love everywhere you go. Let no one ever come without leaving happier.”

Mother Teresa

“Always remember that you are absolutely unique. Just like everyone else.”

Margaret Mead

“Whatever we are, whatever we make of ourselves, is all we will ever have—and that, in its profound simplicity, is the meaning of life.”

Philip Appleman

“We make a living by what we get, but we make a life by what we give.”

Winston Churchill

“One of the deep secrets of life is that all that is really worth doing is what we do for others.”

Lewis Carroll

“The biggest adventure you can take is to live the life of your dreams.”

Oprah Winfrey

“Be sure you put your feet in the right place, then stand firm.”

Abraham Lincoln

“If you don’t like the road you’re walking, start paving another one.”

Dolly Parton

“In three words I can sum up everything I’ve learned about life: It goes on.”

Robert Frost

“Before anything else, preparation is the key to success.”

Alexander Graham Bell

“Once you face your fear, nothing is ever as hard as you think.”

Olivia Newton-John

“Ambition is the path to success. Persistence is the vehicle you arrive in.”

Bill Bradley

“We have to dare to be ourselves, however frightening or strange that self may prove to be.”

May Sarton

“The only thing we have to fear is fear itself.”

Franklin D. Roosevelt

“You will face many defeats in life, but never let yourself be defeated.”

Maya Angelou

“The new dawn blooms as we free it. For there is always light if only we’re brave enough to see it, if only we’re brave enough to be it.”

Amanda Gorman

“It is better to be hated for what you are than to be loved for what you are not.”

Andre Gide

“Be yourself; everyone else is already taken.”

Oscar Wilde

“You can’t help what you feel, but you can help how you behave.”

Margaret Atwood

“Be where you are; otherwise you will miss your life.”

Buddha

“It is never too late to be what you might have been.”

George Elliot

“The fear of death follows from the fear of life. A man who lives fully is prepared to die at any time.”

Mark Twain

“There are so many great things in life; why dwell on negativity?”

Zendaya

“Tomorrow is a new day. You shall begin it serenely and with too high a spirit to be encumbered with your old nonsense.”

Ralph Waldo Emerson

“Yesterday is but today’s memory and tomorrow is today’s dream.”

Khalil Gibran

“The future is not something we enter. The future is something we create.”

Leonard I. Sweet

“We pass through this world but once.”

Stephen Jay Gould

“The purpose of life is to live it, to taste experience to the utmost, to reach out eagerly and without fear for newer and richer experience.”

Eleanor Roosevelt

“Dreaming, after all, is a form of planning.”

Gloria Steinem

“Just when you think it can’t get any worse, it can. And just when you think it can’t get any better, it can.”

Nicholas Sparks

“Don’t judge each day by the harvest you reap but by the seeds that you plant.”

Robert Louis Stevenson

“Find out who you are and do it on purpose.”

Dolly Parton

“Keep smiling, because life is a beautiful thing and there’s so much to smile about.”

Marilyn Monroe

“The art of life is to know how to enjoy a little and to endure very much.”

William Hazlitt

“There is no perfection, only life.”

Milan Kundera

“I believe that if you’ll just stand up and go, life will open up for you. Something just motivates you to keep moving.”

Tina Turner

“The simple things are also the most extraordinary things, and only the wise can see them.”

Paulo Coelho

“Let us make our future now, and let us make our dreams tomorrow’s reality.”

Malala Yousafzai

“For the great doesn’t happen through impulse alone, and is a succession of little things that are brought together.”

Vincent Van Gogh

“Life has no limitations, except the ones you make.”

Les Brown

“Live in the sunshine, swim the sea, drink the wild air.”

Ralph Waldo Emerson

“Dreams do not come true just because you dream them. It’s hard work that makes things happen. It’s hard work that creates change.”

Shonda Rhimes

“Failure is a great teacher and, if you are open to it, every mistake has a lesson to offer.”

Oprah Winfrey

“Nothing is impossible. The word itself says ‘I’m possible!’”

Audrey Hepburn

“Life is a daring adventure or it is nothing at all.”

Helen Keller

“Never let the fear of striking out keep you from playing the game.”

Babe Ruth

“If you don’t have any shadows, you’re not in the light.”

Lady Gaga

“The future belongs to those who prepare for it today.”

Malcolm X

“Everything you can imagine is real.”

Pablo Picasso

“Good friends, good books, and a sleepy conscience: This is the ideal life.”

Mark Twain

“Dream big and dare to fail.”

Norman Vaughan

“If you live long enough, you’ll make mistakes. But if you learn from them, you’ll be a better person.”

Bill Clinton

“Living might mean taking chances, but they’re worth taking.”

Lee Ann Womack

“There is no passion to be found playing small—in settling for a life that is less than the one you are capable of living.”

Nelson Mandela

“There are no regrets in life. Just lessons.”

Jennifer Aniston

“Always do your best. What you plant now, you will harvest later.”

Og Mandino

“To succeed in life, you need three things: a wishbone, a backbone, and a funnybone.”

Reba McEntire

“You have to believe in yourself when no one else does.”

Serena Williams

“We are here to add what we can to life, not to get what we can from life.”

William Osler

“It does not matter how slowly you go, as long as you do not stop.”

Confucius

“The future belongs to those who believe in the beauty of their dreams.”

Eleanor Roosevelt

“Coming together is a beginning; keeping together is progress; working together is success.”

Henry Ford

“I’m not going to continue knocking that old door that doesn’t open for me. I’m going to create my own door and walk through that.”

Ava DuVernay

“Next time, ask ‘What’s the worst that will happen?’ Then push yourself a little further than you dare.”

Audre Lorde

Users Viewing This Thread

  • 1 Guest
  1. Privacy Policy
  2. Contact
  3. Legal Notice
Powered by WoltLab Suite™
Style: Ambience by cls-design
Stylename
Ambience
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design