Wrong fs type, bad option, bad superblock on a harddisk missing codepage or helper program, or other error
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Wrong fs type, bad option, bad superblock on a harddisk missing codepage or helper program, or other error
I'm on KDE Manjaro and I'm getting this error suddenly on my 4TB external harddisk whenever trying to mount in Dolphin.
Code:
An error occurred while accessing 'Akari', the system responded: The requested operation has failed: Error mounting /dev/sdg1 at /run/media/daaishi/Akari1: wrong fs type, bad option, bad superblock on /dev/sdg1, missing codepage or helper program, or other error
I don't really remember what fs type it is but I'm sure it was either ntfs or btrfs, one or the other.
It used to work the other day when I backed up some of my files.
Suddenly, it doesn't let me mount the harddisk.
Checking KDE Partition Manager and GParted, it still has more than 1TB of free space and it is in BTRFS.
Am I screwed?
Searching around, I don't want to try using mkfs because it would erase the data it has.
I tried using these commands and gave me the same error:
Code:
[daaishi@ayumin ~]$ sudo mount -t btrfs /dev/sdg1 /run/media/daaishi/Akari
mount: /run/media/daaishi/Akari: wrong fs type, bad option, bad superblock on /dev/sdg1, missing codepage or helper program, or other error.
[daaishi@ayumin ~]$ sudo mount -t auto /dev/sdg1 /run/media/daaishi/Akari
mount: /run/media/daaishi/Akari: wrong fs type, bad option, bad superblock on /dev/sdg1, missing codepage or helper program, or other error.
When I tried using NTFS:
Code:
[daaishi@ayumin ~]$ sudo mount -t ntfs /dev/sdg1 /run/media/daaishi/Akari
NTFS signature is missing.
Failed to mount '/dev/sdg1': Invalid argument
The device '/dev/sdg1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Is there anything I can do to still be able to get my data or better yet, let it be mounted and be used again?
I tried now fsck:
Code:
[daaishi@ayumin ~]$ sudo fsck /dev/sdg1
fsck from util-linux 2.36.1
If you wish to check the consistency of a BTRFS filesystem or
repair a damaged filesystem, see btrfs(8) subcommand 'check'.
[daaishi@ayumin ~]$ sudo mount -o recovery,ro /dev/sdg1 /run/media/daaishi/Akari
mount: /run/media/daaishi/Akari: wrong fs type, bad option, bad superblock on /dev/sdg1, missing codepage or helper program, or other error.
[daaishi@ayumin ~]$ sudo mount -o recovery /dev/sdg1 /run/media/daaishi/Akari
mount: /run/media/daaishi/Akari: wrong fs type, bad option, bad superblock on /dev/sdg1, missing codepage or helper program, or other error.
[daaishi@ayumin ~]$ sudo mount -o ro /dev/sdg1 /run/media/daaishi/Akari
mount: /run/media/daaishi/Akari: wrong fs type, bad option, bad superblock on /dev/sdg1, missing codepage or helper program, or other error.
[daaishi@ayumin ~]$ sudo btrfs check --repair /dev/sdg1
enabling repair mode
WARNING:
Do not use --repair unless you are advised to do so by a developer
or an experienced user, and then only after having accepted that no
fsck can successfully repair all types of filesystem corruption. Eg.
some software or hardware bugs can fatally damage a volume.
The operation will start in 10 seconds.
Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting repair.
Opening filesystem to check...
bad tree block 1971159416832, bytenr mismatch, want=1971159416832, have=0
ERROR: failed to read block groups: Input/output error
ERROR: cannot open file system
[daaishi@ayumin ~]$
Edit: Should've used btrfs rescue chunk-recover first before btrfs check. Oh no!
Code:
[ayumin daaishi]# btrfs rescue chunk-recover /dev/sdg1
Scanning: DONE in dev0
Check chunks successfully with no orphans
Chunk tree recovered successfully
[ayumin daaishi]# btrfs rescue super-recover /dev/sdg1
All supers are valid, no need to recover
[ayumin daaishi]# mount -o recovery /dev/sdg1 /run/media/daaishi/Akari
mount: /run/media/daaishi/Akari: wrong fs type, bad option, bad superblock on /dev/sdg1, missing codepage or helper program, or other error.
[ayumin daaishi]# mount -o ro /dev/sdg1 /run/media/daaishi/Akari
mount: /run/media/daaishi/Akari: wrong fs type, bad option, bad superblock on /dev/sdg1, missing codepage or helper program, or other error.
[ayumin daaishi]# mount -o recovery,ro /dev/sdg1 /run/media/daaishi/Akari
mount: /run/media/daaishi/Akari: wrong fs type, bad option, bad superblock on /dev/sdg1, missing codepage or helper program, or other error.
[ayumin daaishi]# sudo btrfs fi show /dev/sdg1
[sudo] password for daaishi:
Label: 'Akari' uuid: 9906e5f8-9a9d-49d3-8a6c-3f4576153a1c
Total devices 1 FS bytes used 2.01TiB
devid 1 size 3.64TiB used 2.09TiB path /dev/sdg1
dmesg -w output when running 'mount -o usebackuproot /dev/sdg1 /run/media/daaishi/Akari/'
Code:
[36378.660377] BTRFS warning (device sdg1): 'usebackuproot' is deprecated, use 'rescue=usebackuproot' instead
[36378.660379] BTRFS info (device sdg1): trying to use backup root at mount time
[36378.660380] BTRFS info (device sdg1): disk space caching is enabled
[36378.660380] BTRFS info (device sdg1): has skinny extents
[36382.937004] sd 6:0:0:0: [sdg] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=4s
[36382.937006] sd 6:0:0:0: [sdg] tag#0 Sense Key : Medium Error [current]
[36382.937007] sd 6:0:0:0: [sdg] tag#0 Add. Sense: Unrecovered read error
[36382.937009] sd 6:0:0:0: [sdg] tag#0 CDB: Read(16) 88 00 00 00 00 00 e3 99 68 e0 00 00 00 20 00 00
[36382.937011] blk_update_request: critical medium error, dev sdg, sector 3818481888 op 0x0:(READ) flags 0x1000 phys_seg 2 prio class 0
[36386.539698] sd 6:0:0:0: [sdg] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=3s
[36386.539701] sd 6:0:0:0: [sdg] tag#0 Sense Key : Medium Error [current]
[36386.539702] sd 6:0:0:0: [sdg] tag#0 Add. Sense: Unrecovered read error
[36386.539704] sd 6:0:0:0: [sdg] tag#0 CDB: Read(16) 88 00 00 00 00 00 e3 b9 68 e0 00 00 00 20 00 00
[36386.539705] blk_update_request: critical medium error, dev sdg, sector 3820579040 op 0x0:(READ) flags 0x1000 phys_seg 2 prio class 0
[36386.539745] BTRFS error (device sdg1): failed to read block groups: -5
[36386.542858] BTRFS error (device sdg1): open_ctree failed
[daaishi@ayumin ~]$ sudo smartctl -a /dev/sdg
[sudo] password for daaishi:
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.10.7-3-MANJARO] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Elements / My Passport (USB, AF)
Device Model: WDC WD40NMZW-11GX6S1
Serial Number: WD-WX21D86A6FVX
LU WWN Device Id: 5 0014ee 6b201966a
Firmware Version: 01.01A01
User Capacity: 4,000,753,472,000 bytes [4.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Form Factor: 2.5 inches
TRIM Command: Available, deterministic
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-3 (minor revision not indicated)
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sat Jan 30 05:23:21 2021 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 2684) seconds.
Offline data collection
capabilities: (0x1b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 22) minutes.
SCT capabilities: (0x30b5) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 198 198 051 Pre-fail Always - 230
3 Spin_Up_Time 0x0027 253 253 021 Pre-fail Always - 5150
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
194 Temperature_Celsius 0x0022 127 095 000 Old_age Always - 25
SMART Error Log Version: 1
ATA Error Count: 1
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 1 occurred at disk power-on lifetime: 2542 hours (105 days + 22 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
04 41 d6 53 4f c2 00 Error: ABRT
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
b0 d6 01 98 4f c2 00 00 00:00:10.111 SMART WRITE LOG
b0 d5 01 80 4f c2 00 00 00:00:10.092 SMART READ LOG
ec 90 01 00 00 00 00 00 00:00:10.091 IDENTIFY DEVICE
ec 90 06 30 a5 fb 00 00 00:00:10.090 IDENTIFY DEVICE
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
Selective Self-tests/Logging not supported
[daaishi@ayumin ~]$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.