LinuxQuestions.org
Review your favorite Linux distribution.
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 11-24-2017, 02:07 PM   #1
hGi'mD
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Rep: Reputation: 0
e2fsck fails to fix ext4 file system after recovery to new USB flash drive


I've a Linux distro that I boot from a USB flash drive. Recently the drive failed to boot. I've tried e2fsck to fix it and it failed.

So I've used gddrescue to recover the USB flash drive to a "new" (different) flash drive of the exact same model type and capacity. The recovery was 100% successful; no errors.

$ sudo ddrescue -f -r5 /dev/sdb /dev/sdc logfile
GNU ddrescue 1.21
Press Ctrl-C to interrupt
ipos: 8011 MB, non-trimmed: 0 B, current rate: 327 kB/s
opos: 8011 MB, non-scraped: 0 B, average rate: 5483 kB/s
non-tried: 0 B, errsize: 0 B, run time: 24m 21s
rescued: 8011 MB, errors: 0, remaining time: n/a
percent rescued: 100.00% time since last successful read: 0s
Finished

Then I used GParted to to Check the new drive and e2fsck failed (again).

Attached:
GParted Information
GParted Check details
Attached Files
File Type: txt gparted_details.txt (4.4 KB, 13 views)
File Type: txt gparted_information.txt (2.4 KB, 8 views)
 
Old 11-25-2017, 01:58 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,876

Rep: Reputation: 134Reputation: 134
What Distro are you using?
 
Old 11-25-2017, 02:09 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,997

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
If the filesystem is broken that badly, reformat and restore.
 
Old 11-25-2017, 03:03 AM   #4
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,876

Rep: Reputation: 134Reputation: 134
Maybe the USB Stick is defective.
 
Old 11-25-2017, 06:18 PM   #5
hGi'mD
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Keruskerfuerst View Post
What Distro are you using?
Open Media Vault, version 2.x; Debian based
 
Old 11-25-2017, 06:20 PM   #6
hGi'mD
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Keruskerfuerst View Post
Maybe the USB Stick is defective.
Used gddrescue to recover to a new USB stick. Recovery was 100% successful. Ran GParted Check against new USB stick. Repair failed, see attachments of original post.

Thanks
 
Old 12-06-2017, 11:20 AM   #7
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 365

Rep: Reputation: 135Reputation: 135
A copy of bad bits to a new drive will still have bad bits. GDDRESCUE just copies the data whether it is good or bad.
 
Old 12-06-2017, 02:02 PM   #8
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: AntiX
Posts: 1,987

Rep: Reputation: Disabled
Maybe read up about 'super blocks' to rescue your drive.

http://linfo.org/superblock
 
Old 12-07-2017, 02:47 AM   #9
hGi'mD
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks gentlemen!

I've deployed a new installation and rsync'ed from backup. All worked out well.
 
  


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
[SOLVED] Which File System for External USB Hard Drive - NTFS or EXT4? Steve R. Linux - Hardware 3 11-18-2013 08:24 AM
Is it safe to format USB flash to ext4 or ext4? joham34 Linux - Newbie 2 01-08-2011 12:58 PM
fsck.gfs2 outputs "RG recovery impossible; I can't fix this file system" king_hippo Linux - General 0 09-01-2009 03:36 PM
USB Flash Drive, write protect, and flash file system questions storkus Linux - Hardware 4 12-01-2008 05:32 AM
[SOLVED] Suse 9.3 fails mounting usb flash drive enrico_dvchp Linux - Newbie 4 07-04-2006 05:34 PM

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

All times are GMT -5. The time now is 11:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration