LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-30-2021, 08:51 AM   #1
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Rep: Reputation: Disabled
Post A disk read error occurred.


Hello,
My system is dual boot (Debian and Windows 7). On Windows OS, I worked with Eraser (https://eraser.heidi.ie/) and wanted to select a Flash Drive, but mistakenly, selected Drive C. System hanged and when I rebooted the system manually then, the system show me below error:

Click image for larger version

Name:	a-disk-read-error-occured.jpg
Views:	26
Size:	7.5 KB
ID:	35960

I booted my system with Ubuntu Live CD and tried to fix it, but all of my partitions are removed:

Click image for larger version

Name:	Screenshot from 2021-03-30 13-35-25.png
Views:	25
Size:	36.6 KB
ID:	35961

Are they removed really? Why Linux can't boot? How to fix it?

Thank you.
 
Old 03-30-2021, 09:01 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Partition table is just a small chunk of data in the beginning of drive, in case of MBR it is located in the first sector. You erase the first sector and there won't be any partitioning left. The data on your drive would still be intact, if you write this partition table back all partitions and files will reappear. If you deleted more than the first sector then the damage is greater and some files will be lost for good.
 
Old 03-30-2021, 09:08 AM   #3
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Partition table is just a small chunk of data in the beginning of drive, in case of MBR it is located in the first sector. You erase the first sector and there won't be any partitioning left. The data on your drive would still be intact, if you write this partition table back all partitions and files will reappear. If you deleted more than the first sector then the damage is greater and some files will be lost for good.
How to write partition table back?
 
Old 03-30-2021, 09:36 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,966

Rep: Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332Reputation: 7332
you can try a recovery tool like ddrescue.
 
Old 03-30-2021, 09:44 AM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
The tool to restore partition table is testdisk. There are many tutorials about its usage.
 
Old 03-30-2021, 10:32 AM   #6
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you can try a recovery tool like ddrescue.
Can it fix my system boot without data loss? If yes, then how?
 
Old 03-30-2021, 10:32 AM   #7
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
The tool to restore partition table is testdisk. There are many tutorials about its usage.
I can't install it on Ubuntu Live
 
Old 03-30-2021, 10:43 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Many (most?) liveCD's already have it, no need to install.

Edit: ddrescue is useful in case of drive failure, as it tries to read bad sectors. In your case photorec is more useful to try and recover files.

Last edited by Emerson; 03-30-2021 at 10:50 AM.
 
Old 03-30-2021, 10:51 AM   #9
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Many (most?) liveCD's already have it, no need to install.
My Ubuntu version is:
Code:
Linux ubuntu 4.10.0-19-generic #21-Ubuntu SMP Thu Apr 6 17:03:14 UTC 2017 i686 i686 i686 GNU/Linux
It doesn't have testdisk tool.
 
Old 03-30-2021, 11:05 AM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
GRML, SystemRescue, there's more. Take an old (small) USB flash drive and dedicate it to rescue software.
 
Old 03-30-2021, 11:16 AM   #11
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
I used "Rescatux" live CD and my problem solved. I booted it on a USB and fixed my system.

Last edited by n00b_noob; 03-30-2021 at 11:18 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot start Linux Mint, message ; tpm error (7) occurred attempting to read a pcr value . ornulv Linux - Newbie 7 02-22-2018 03:32 AM
[SOLVED] An error occurred while mounting disk partition adkPrasanna Slackware 7 03-16-2016 11:05 AM
[SOLVED] openstack dashboard login error "Error: An error occurred authenticating. Please try" tchofo Linux - Virtualization and Cloud 2 10-30-2015 02:26 AM
a disk read error occurred kellogs Linux - Software 11 12-29-2010 05:22 AM
Starting MySQL OLD Error : imeout error occurred trying to start MySQL Daemon Fr33B5D Linux - Software 9 10-28-2006 06:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration