LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-14-2021, 09:29 PM   #46
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486

command line
"df"

Also, you probably do not want to use the whole disk as output for photorec. Us the partition as shown.

Last edited by computersavvy; 06-14-2021 at 09:31 PM.
 
Old 06-16-2021, 08:16 AM   #47
ScatteredThunder
Member
 
Registered: May 2021
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
Also, you probably do not want to use the whole disk as output for photorec. Us the partition as shown.
Why not?

Hey I just ran "sudo badblocks -v" on the failing drive and it resulted in 20 bad blocks. How much would that be in MiB/GiB you think?

Also, I tried to set Ubuntu not to write to those bad sectors using "sudo fsck -l badsectors.txt /dev/sdb" but e2fsck is giving me errors:

What does that mean?

Last edited by ScatteredThunder; 06-19-2021 at 05:17 PM.
 
Old 06-16-2021, 11:07 AM   #48
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
fsck cannot be safely run on a device in use. In other words, the file system must not be mounted. Additionally, it can only be used on a device that has a partition and formatted file system since it runs at the file system level. badblocks runs at the hardware device level.

20 bad blocks is not a significant quantity, space wise, but any device that exhibits bad blocks will likely continue to get worse and realistically should be retired soonest.

I suggest you read the man pages for badblocks and for e2fsck since it is possible for e2fsck to actually do a badblock scan with the appropriate options and mark the sectors as unusable. I don't know how that works for a btrfs system, but don't recall that you are using btrfs.
 
Old 06-16-2021, 12:08 PM   #49
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,545

Rep: Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608Reputation: 2608
Here ScatteredThunder, we are at 48 posts and still, I gather, no substantive effort has been made to recover the disk. In case you didn't notice, I unsubscribed from this thread because it was going nowhere fast, and you were all questions but were taking no real action. The guys here are being very patient.

I can understand that if this is your first time round with linux disk recovery and you're being careful. You can't recover anything without known good storage space. Re-stitching together output from photorec is hard going indeed. I advise against it unless you absolutely need that data. How many days would you spend on recovering it? I'll tell you how this is going to end:
  1. You're going to give the drive to professionals, and pay money. They will get some stuff.
  2. You're going to buy extra storage, and take the best advice offered. If the disk is still mountable, rsync may be a good option for restoring things. I don't hold out much real hope with the 'dd' approach. In theory - yes; In practice, no.
  3. You're going to accept that you've lost your data. Put it down to experience.
 
Old 06-16-2021, 02:32 PM   #50
ScatteredThunder
Member
 
Registered: May 2021
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Here ScatteredThunder, we are at 48 posts and still, I gather, no substantive effort has been made to recover the disk. In case you didn't notice, I unsubscribed from this thread because it was going nowhere fast, and you were all questions but were taking no real action. The guys here are being very patient.

I can understand that if this is your first time round with linux disk recovery and you're being careful. You can't recover anything without known good storage space. Re-stitching together output from photorec is hard going indeed. I advise against it unless you absolutely need that data. How many days would you spend on recovering it? I'll tell you how this is going to end:
  1. You're going to give the drive to professionals, and pay money. They will get some stuff.
  2. You're going to buy extra storage, and take the best advice offered. If the disk is still mountable, rsync may be a good option for restoring things. I don't hold out much real hope with the 'dd' approach. In theory - yes; In practice, no.
  3. You're going to accept that you've lost your data. Put it down to experience.
You subscribed to this thread?

I am not a Linux expert, and this is my first attempt at data recovery.

Sure the guys here are being patient, did I ever complain about anything?

Fortunately, if recovery unsuccessful I won't be losing sensitive data. The moment I saw bad blocks in that drive I immediately started moving storage around.

But I will continue trying to recover data from that drive so I can learn, if anything this serves as experience.

Again, thanks to computersavvy and michaelk. You have been helpful!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
e2label: Superblock checksum does not match superblock while trying to open /dev/sdb3 Couldn't find valid filesystem superblock. Pen guin Linux - Newbie 26 07-05-2020 11:03 AM
External floppy -- Can't Read Superblock ericlindellnyc Linux - Newbie 8 10-07-2018 01:32 PM
CDROM can't read/can't read superblock microomran Red Hat 1 07-05-2007 03:29 AM
"Can't Read Superblock" when mounting a second hard drive Maeltor Linux - Software 7 01-18-2007 01:13 PM
error mounting ext3 filesystem... mount: /dev/hdd1: can't read superblock versaulis Linux - Software 5 11-26-2006 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:23 PM.

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