Can't mount hard drive after system crash

Hello.
My system crashed because I have accidentally overloaded ram and cpu, I restarted my system and my second drive is detected but not mountable, here is the error message:

An error occurred while accessing ‘Home’, the system responded: The requested operation has failed: Error mounting /dev/sda2 at /run/media/res0nance/Data: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error

How to do it?


What did your Whoogle search on the ERROR DESCRIPTION yield?

You can not post your garuda-inxi?

Not even from the live ISO?

4 Likes

Please don’t say NTFS.

7 Likes

After you fix your drive issue you should really assess what yielded in your crash so you will know how not to reproduce it. :slight_smile: Personally I am very interested in knowing what happened so that the RAM and CPU overloaded and made your system crash, I would want to learn from your [bad] experience.

1 Like

Just had too many things open and I think that nohang killed a vital process because I still haven't configured it yet.

I searched and it led me to a unix stack exchange ubuntu issue without a fix.
Here is the garuda-inxi:

Graphics:
Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] driver: i915 v: kernel
Device-2: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 510.54
Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: intel,nvidia
unloaded: modesetting,nouveau gpu: i915,nvidia resolution: 1920x1080
OpenGL: renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
v: 4.6.0 NVIDIA 510.54
Audio:
Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel
Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel
Device-3: Razer USA RZ19-0229 Gaming Microphone type: USB
driver: hid-generic,snd-usb-audio,usbhid
Sound Server-1: ALSA v: k5.16.16-zen1-1-zen running: yes
Sound Server-2: PipeWire v: 0.3.48 running: yes

╭─res0nance@penis in ~ took 335ms
╰─λ man inxi

╭─res0nance@penis in ~ took 4s
╰─λ inxi -A -G
Graphics:
Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] driver: i915 v: kernel
Device-2: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 510.54
Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: intel,nvidia
unloaded: modesetting,nouveau gpu: i915,nvidia resolution: 1920x1080
OpenGL: renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
v: 4.6.0 NVIDIA 510.54
Audio:
Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel
Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel
Device-3: Razer USA RZ19-0229 Gaming Microphone type: USB
driver: hid-generic,snd-usb-audio,usbhid
Sound Server-1: ALSA v: k5.16.16-zen1-1-zen running: yes
Sound Server-2: PipeWire v: 0.3.48 running: yes

╭─res0nance@penis in ~ took 304ms
╰─λ garuda-inxi
System:
Kernel: 5.16.16-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=a5e2e2df-0d5c-4bb8-b258-cf884294fc62 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3
Desktop: KDE Plasma v: 5.24.3 tk: Qt v: 5.15.3 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: LENOVO product: 90JL00KTIX v: Legion T530-28ICB
serial: Chassis: type: 3 serial:
Mobo: LENOVO model: 36E7 v: SDK0J40700 WIN 3258131453720
serial: UEFI: LENOVO v: O3LKT17A date: 10/23/2018
CPU:
Info: model: Intel Core i5-8400 bits: 64 type: MCP arch: Coffee Lake
family: 6 model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xEC
Topology: cpus: 1x cores: 6 smt: cache: L1: 384 KiB
desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB L3: 9 MiB
desc: 1x9 MiB
Speed (MHz): avg: 3870 high: 3993 min/max: 800/4000 scaling:
driver: intel_pstate governor: performance cores: 1: 3993 2: 3987 3: 3898
4: 3933 5: 3480 6: 3930 bogomips: 33599
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
Type: mds mitigation: Clear CPU buffers; SMT disabled
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: disabled, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] vendor: Lenovo
driver: i915 v: kernel ports: active: none empty: HDMI-A-1 bus-ID: 00:02.0
chip-ID: 8086:3e92 class-ID: 0380
Device-2: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: Micro-Star MSI
driver: nvidia v: 510.54 alternate: nouveau,nvidia_drm pcie: gen: 3
speed: 8 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:1c82 class-ID: 0300
Display: x11 server: X.Org v: 1.21.1.3 compositor: kwin_x11 driver: X:
loaded: intel,nvidia unloaded: modesetting,nouveau alternate: fbdev,nv,vesa
gpu: i915,nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 81 s-size: 602x343mm (23.70x13.50")
s-diag: 693mm (27.28")
Monitor-1: DP-0 res: 1920x1080 dpi: 82 size: 598x336mm (23.54x13.23")
diag: 686mm (27.01") modes: N/A
OpenGL: renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
v: 4.6.0 NVIDIA 510.54 direct render: Yes
Audio:
Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel
v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
chip-ID: 8086:a348 class-ID: 0403
Device-2: NVIDIA GP107GL High Definition Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 01:00.1 chip-ID: 10de:0fb9 class-ID: 0403
Device-3: Razer USA RZ19-0229 Gaming Microphone type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-4:4 chip-ID: 1532:0511
class-ID: 0300 serial:
Sound Server-1: ALSA v: k5.16.16-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Intel Dual Band Wireless-AC 3165 Plus Bluetooth driver: iwlwifi
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0
chip-ID: 8086:3166 class-ID: 0280
IF: wlp3s0 state: up mac:
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: 3000 bus-ID: 04:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp4s0 state: down mac:
Bluetooth:
Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
bus-ID: 1-14:6 chip-ID: 8087:0a2a class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address:
Drives:
Local Storage: total: 1.03 TiB used: 52.66 GiB (5.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix
model: HFM128GDHTNG-8310B size: 119.24 GiB block-size: physical: 512 B
logical: 512 B speed: 15.8 Gb/s lanes: 2 type: SSD serial:
rev: 80070C00 temp: 38.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WD10EZEX-08WN4A0 size: 931.51 GiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial:
rev: 1A02 scheme: GPT
Partition:
ID-1: / raw-size: 118.95 GiB size: 118.95 GiB (100.00%)
used: 52.66 GiB (44.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 576 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 118.95 GiB size: 118.95 GiB (100.00%)
used: 52.66 GiB (44.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 118.95 GiB size: 118.95 GiB (100.00%)
used: 52.66 GiB (44.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 118.95 GiB size: 118.95 GiB (100.00%)
used: 52.66 GiB (44.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 7.64 GiB used: 2.5 MiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 27.8 C pch: 59.0 C mobo: N/A gpu: nvidia
temp: 53 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 29%
Info:
Processes: 259 Uptime: 10m wakeups: 0 Memory: 7.64 GiB
used: 2.71 GiB (35.5%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.2.0 Packages: 1790 pacman: 1783 lib: 538 flatpak: 7 Shell: fish
v: 3.3.1 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.14
Garuda (2.5.6-2):
System install date: 2022-03-23
Last full system update: 2022-03-26
Is partially upgraded: No
Relevant software: NetworkManager
Windows dual boot: Probably (Run as root to verify)
Snapshots: Snapper
Failed units:

I will try the live one rn.

Edit: The live USB is stuck on boot so I can’t check.

Try mounting the NTFS drive in fstab using the ntfs-3g flag.

see my example below:

UUID=7C1A71921A714A62 /mnt/7C1A71921A714A62 ntfs-3g nofail,noatime,rw,user,uid=1000,gid=1000,dmask=022,fmask=133,windows_names,auto 0 0

Obviously, you need to substitute your drives UUID in my example.

Mounting using ntfs-3g flag in /etc/fstab appears to work.

man fstab

Be sure to copy a backup of fstab before editing:

sudo cp /etc/fstab  /etc/fstab.bak
2 Likes

I'm sorry, I didn't understand what command to run.

https://wiki.archlinux.org/title/fstab

https://wiki.archlinux.org/title/NTFS-3G

Linux fstab mount drive ntfs-3g

man fstab
3 Likes

If you are using an NTFS drive and it will not mount, then install the ntfs-3g package if it is not already installed. If you are not comfortable modifying fstab, then you can mount the drive manually.

You can use a command similar to below to mount your NTFS drive:

sudo mount -t ntfs-3g /dev/sdXY /mnt/ntfs-junk

You can use the command sudo blkid -o list to find your NTFS drive's designation to substitute for "XY" in the above command. Please post the output of the blkid -o list command.

Then substitute your NTFS drive's designation into the command. For example if your NTFS drive is sda1 then the command to use would be:

sudo mount -t ntfs-3g /dev/sda1 /mnt/ntfs-junk

YMMV, but you at least won't need to modify fstab to try mounting your NTFS drive this way. If the drive you are having issues accessing is not formatted as NTFS then you can disregard all my prior posts.

2 Likes

Alright, I tried executing

sudo mount -t ntfs-3g /dev/sda2 /mnt/4E92D99992D9863D

But the terminal replied with:

mount: /mnt/4E92D99992D9863D: mount point does not exist.

I also tried to run what you asked me to do before:

UUID=4E92D99992D9863D /mnt/4E92D99992D9863D ntfs-3g nofail,noatime,rw,user,uid=1000,gid=1000,dmask=022,fmask=133,window-names,auto 0 0

And the terminal replied with

find-the-command: “/mnt/4E92D99992D9863D” is not found locally, searching in repositories…

error: No repo files found. Please run `pkgfile --update’.
find-the-command: command not found: /mnt/4E92D99992D9863D
fish:
UUID=4E92D99992D9863D /mnt/4E92D99992D9863D ntfs-3g nofail,noatime,rw,user,uid=1000,gid=1000,dmask=022,fmask=1
33,window-names,auto 0 0
^

You do not run this command. It is a load line for your drive that must be added to /etc/fstab. Unfortunately, this will likely not work as well if the mount command didn’t.

You should try to correct the drives errors in Windows. If that doesn’t work, your last option is to use testdisk to repair the partition tables or recover any data you require.

You still have not posted your full drive information from the above command. Your damaged drive may or may not show up with this command, but it would be good to have the output posted.

2 Likes

Oh sorry I forgot to add that, here is the drive that i can’t mount.

/dev/sda2 ntfs Data (not mounted) 4E92D99992D9863D

While is is the full output

device fs_type label mount point UUID

/dev/nvme0n1p2 btrfs (in use) a5e2e2df-0d5c-4bb8-b258-cf884294fc62
/dev/nvme0n1p1 vfat NO_LABEL /boot/efi 7964-EEA5
/dev/sda2 ntfs Data (not mounted) 4E92D99992D9863D
/dev/sda1 (not mounted)
/dev/zram0 swap zram0 [SWAP] e9a4b78d-b535-4b2c-a8fa-46835c455b79

The mount command didn't work because you tried mounting to a non-existing directory. Try this

sudo mkdir /mnt/ntfs-broken
sudo mount -t ntfs-3g /dev/sda2 /mnt/ntfs-broken
2 Likes

The terminal replied with

mount: /mnt/4E92D99992D9863D: unknown filesystem type ‘ntfs-3g’.

Did you install the ntfs-3g package?

sudo pacman -S ntfs-3g

Post input & output please.

sudo pacman -S ntfs-3g
[sudo] password for res0nance:              
resolving dependencies...
looking for conflicting packages...
:: ntfs-3g and ntfsprogs-ntfs3 are in conflict (ntfsprogs). Remove ntfsprogs-ntfs3? [y/N] y

Packages (2) ntfsprogs-ntfs3-2021.8.22-9 [removal]  ntfs-3g-2021.8.22-1

Total Download Size:   0,54 MiB
Total Installed Size:  1,76 MiB
Net Upgrade Size:      0,22 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
ntfs-3g-2021.8.22-1-x86_64            557,4 KiB  1363 KiB/s 00:00 [------------------------------------] 100%
(1/1) checking keys in keyring                                     [------------------------------------] 100%
(1/1) checking package integrity                                   [------------------------------------] 100%
(1/1) loading package files                                        [------------------------------------] 100%
(1/1) checking for file conflicts                                  [------------------------------------] 100%
(2/2) checking available disk space                                [------------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Performing snapper pre snapshots for the following configurations...
==> root: 33
:: Processing package changes...
(1/1) removing ntfsprogs-ntfs3                                     [------------------------------------] 100%
(1/1) installing ntfs-3g                                           [------------------------------------] 100%
:: Running post-transaction hooks...
(1/7) Reloading device manager configuration...
(2/7) Arming ConditionNeedsUpdate...
(3/7) Foreign/AUR package notification
=> No foreign/AUR packages found.
(4/7) Orphaned package notification...
nm-connection-editor 1.26.0-1
(5/7) Checking for .pacnew and .pacsave files...
.pac* files found:
/etc/paru.conf.pacnew
Please check and merge
(6/7) Performing snapper post snapshots for the following configurations...
==> root: 34
(7/7) Syncing all file systems...

Try again this:

Executing the first command makes the terminal reply by telling me that the directory already exists: mkdir: cannot create directory ‘/mnt/4E92D99992D9863D’: File exists
While the second command leads to this error message:

$MFTMirr does not match $MFT (record 3).
Failed to mount '/dev/sda2': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details

Why does the response ask me to boot into windows and run a command on there, is there any way to do it without windows?

It looks like there isn't. But you can run the mentioned command from an install/recovery media so having Windows installed is not necessary.