Not able to mount a few LDM NTFS partitions

Hello fellow Garuda users.

I have a 2TB HDD which is formatted as a LDM NTFS partitions(It has 5 partitions). I had, in the past, managed to mount them using ldmtools.

So I figured that would work this time too.
I will try to give a summary of what I did sequentially (I may make some errors because I have been trying for a while).

  • ran ntfsfix on the drive.(I got confused and thought it was ldmtools :sweat_smile:) but nothing changed and I was still not able to mount.
  • Then I used ntfs-3gs (following an article from the internet.) but it had absolutely no impact(at least I believe so).
  • I finally ran sudo ldmtools create all

This seemed to work and I was able to see my partitions in Dolphin, but when I tried to mount them through Dolphin, I was unable to mount 2 partitions.

╭─[email protected] in ~ took 1s
╰─λ lsblk
NAME                                 MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda                                    8:0    0   1.8T  0 disk
├─sda1                                 8:1    0     1M  0 part
├─sda2                                 8:2    0    15M  0 part
├─sda3                                 8:3    0   1.8T  0 part
├─ldm_vol_TUSHAR-DESKTOP-Dg0_Volume1 253:0    0 527.3G  0 ldm
├─ldm_vol_TUSHAR-DESKTOP-Dg0_Volume2 253:1    0 306.7G  0 ldm  /run/media/tusharhero/Volume 2
├─ldm_vol_TUSHAR-DESKTOP-Dg0_Volume3 253:2    0 271.1G  0 ldm  /run/media/tusharhero/Volume 3
├─ldm_vol_TUSHAR-DESKTOP-Dg0_Volume4 253:3    0 359.1G  0 ldm
└─ldm_vol_TUSHAR-DESKTOP-Dg0_Volume5 253:4    0     3G  0 ldm  /run/media/tusharhero/New Volume
sdb                                    8:16   0 111.8G  0 disk
├─sdb1                                 8:17   0   300M  0 part /boot/efi
├─sdb2                                 8:18   0 102.7G  0 part /srv
│                                                              /var/cache
│                                                              /var/tmp
│                                                              /var/log
│                                                              /root
│                                                              /home
│                                                              /
└─sdb3                                 8:19   0   8.8G  0 part [SWAP]
zram0                                254:0    0   5.7G  0 disk [SWAP]

I am talking about Volume1 and Volume4. These just refuse to mount. I tried to mount it using the mount command.

╭─[email protected] in ~ took 3s
╰─λ sudo mount /dev/mapper/ldm_vol_TUSHAR-DESKTOP-Dg0_Volume1 /mnt/a
[sudo] password for tusharhero:
mount: /mnt/a: wrong fs type, bad option, bad superblock on /dev/mapper/ldm_vol_TUSHAR-DESKTOP-Dg0_Volume1, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.

The same happens with Volume4.

Here is the dmesg output(trimmed)

[ 2190.985270] kauditd_printk_skb: 1 callbacks suppressed
[ 2190.985272] audit: type=1101 audit(1673278373.639:265): pid=4689 uid=1000 auid=1000 ses=3 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="tusharhero" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[ 2190.985390] audit: type=1110 audit(1673278373.639:266): pid=4689 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[ 2190.987574] audit: type=1105 audit(1673278373.642:267): pid=4689 uid=1000 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[ 2190.988730] audit: type=1106 audit(1673278373.643:268): pid=4689 uid=1000 auid=1000 ses=3 msg='op=PAM:session_close grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[ 2190.988766] audit: type=1104 audit(1673278373.643:269): pid=4689 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[ 2192.665854] audit: type=1101 audit(1673278375.319:270): pid=4714 uid=1000 auid=1000 ses=3 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="tusharhero" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[ 2192.666078] audit: type=1110 audit(1673278375.319:271): pid=4714 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[ 2192.668597] audit: type=1105 audit(1673278375.322:272): pid=4714 uid=1000 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[ 2192.670141] audit: type=1106 audit(1673278375.324:273): pid=4714 uid=1000 auid=1000 ses=3 msg='op=PAM:session_close grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[ 2192.670174] audit: type=1104 audit(1673278375.324:274): pid=4714 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[ 2201.239319] kauditd_printk_skb: 5 callbacks suppressed
[ 2201.239322] audit: type=1101 audit(1673278383.893:280): pid=4762 uid=1000 auid=1000 ses=3 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="tusharhero" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[ 2201.239626] audit: type=1110 audit(1673278383.893:281): pid=4762 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[ 2201.244274] audit: type=1105 audit(1673278383.898:282): pid=4762 uid=1000 auid=1000 ses=3 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'

I am not brave enough to try to read that. :face_holding_back_tears:

This is all information I could provide. If I missed some info please inform me. I have really important data in those partitions. :frowning:

Edit:
I ran fschk too but to mention it. according to this. My data is gone. Any way to recover my data?

garuda-inxi:

System:
Kernel: 6.1.4-zen2-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=e01c77a9-8744-4c85-afee-cef1f429bd62 rw [email protected]
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
resume=UUID=f9b0b8af-d574-4661-a0d5-4e2a9f483bd3 loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.26.5 tk: Qt v: 5.15.8 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASUSTeK model: PRIME A320M-K v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 5220
date: 09/12/2019
CPU:
Info: model: AMD Ryzen 3 3200G with Radeon Vega Graphics bits: 64 type: MCP
arch: Zen/Zen+ note: check gen: 1 level: v3 note: check built: 2019
process: GF 12nm family: 0x17 (23) model-id: 0x18 (24) stepping: 1
microcode: 0x8108109
Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 384 KiB
desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 4x512 KiB L3: 4 MiB
desc: 1x4 MiB
Speed (MHz): avg: 1256 high: 1258 min/max: 1400/3600 boost: enabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1257 2: 1256
3: 1254 4: 1258 bogomips: 28745
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
vendor: ASUSTeK driver: amdgpu v: kernel arch: GCN-5 code: Vega
process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
ports: active: HDMI-A-1 empty: DP-1 bus-ID: 07:00.0 chip-ID: 1002:15d8
class-ID: 0300 temp: 35.0 C
Display: x11 server: X.Org v: 21.1.6 with: Xwayland v: 22.1.7
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: LG (GoldStar) FULL HD
serial: <filter> built: 2016 res: 1920x1080 hz: 75 dpi: 102 gamma: 1.2
size: 480x270mm (18.9x10.63") diag: 551mm (21.7") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
API: OpenGL v: 4.6 Mesa 22.3.2 renderer: AMD Radeon Vega 8 Graphics
(raven LLVM 14.0.6 DRM 3.49 6.1.4-zen2-1-zen) direct render: Yes
Audio:
Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio
vendor: ASUSTeK PRIME B450M-A driver: snd_hda_intel v: kernel pcie: gen: 3
speed: 8 GT/s lanes: 16 bus-ID: 07:00.1 chip-ID: 1002:15de class-ID: 0403
Device-2: AMD Family 17h/19h HD Audio vendor: ASUSTeK PRIME B450M-A
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 07:00.6 chip-ID: 1022:15e3 class-ID: 0403
Sound API: ALSA v: k6.1.4-zen2-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.63 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 05:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp5s0 state: down mac: <filter>
Device-2: Realtek RTL8188EUS 802.11n Wireless Network Adapter type: USB
driver: r8188eu bus-ID: 1-8:4 chip-ID: 0bda:8179 class-ID: 0000
serial: <filter>
IF: wlp1s0f0u8 state: up mac: <filter>
Bluetooth:
Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
driver: btusb v: 0.8 bus-ID: 1-3:2 chip-ID: 0a12:0001 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 1.93 TiB used: 526.91 GiB (26.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WD20EZAZ-00GGJB0 size: 1.82 TiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
rev: 0A80 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: A-Data model: SU650 size: 111.79 GiB
block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD
serial: <filter> rev: 831a scheme: GPT
Partition:
ID-1: / raw-size: 102.69 GiB size: 102.69 GiB (100.00%)
used: 6.99 GiB (6.8%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 608 KiB (0.2%) fs: vfat dev: /dev/sdb1 maj-min: 8:17
ID-3: /home raw-size: 102.69 GiB size: 102.69 GiB (100.00%)
used: 6.99 GiB (6.8%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
ID-4: /var/log raw-size: 102.69 GiB size: 102.69 GiB (100.00%)
used: 6.99 GiB (6.8%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
ID-5: /var/tmp raw-size: 102.69 GiB size: 102.69 GiB (100.00%)
used: 6.99 GiB (6.8%) fs: btrfs dev: /dev/sdb2 maj-min: 8:18
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 5.71 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
ID-2: swap-2 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/sdb3 maj-min: 8:19
Sensors:
System Temperatures: cpu: 35.2 C mobo: N/A gpu: amdgpu temp: 35.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 249 Uptime: 22m wakeups: 0 Memory: 5.72 GiB
used: 2.62 GiB (45.8%) Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.0 Packages: pm: pacman pkgs: 1174
libs: 311 tools: octopi,paru Shell: fish v: 3.5.1 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.24
Garuda (2.6.14-1):
System install date:     2023-01-09
Last full system update: 2023-01-09
Is partially upgraded:   Yes
Relevant software:       snapper NetworkManager mkinitcpio
Windows dual boot:       No/Undetected
Failed units:

For data recovery, look into Photorec. It bypasses any filesystem and scans for data itself.

1 Like

How do I mount my partitions? I don't have other storage devices.

Correcting errors with Windows partitions is best done from within Windows, not from Linux. If you are no longer using Windows on this computer, then you really should be using a Linux file system on your drive. Linux cannot do maintenance operations such as defragmentation on a Windows drive, and it's error correcting capabilities are rather rudimentary when it comes to Windows partitions. You should really scan this drive for errors from a Windows computer and correct any issues detected by Windows.

From my experience you can only get away with using Windows partitions for so long on a Linux computer before you run into errors that cannot be corrected. If this happens the drive will become inaccessible and you will have a hard time recovering the data.

A single character that is used in file names in Linux, (but is not permissible in Windows) is all it takes to corrupt an NTFS drive. File naming conventions are very different between Linux and Windows and this can cause a lot of problems. If you mount your NTFS drive with the proper flags in fstab it can help prevent issues, but it's still a problem waiting to happen IMO. Others will tell you it's fine to use NTFS with Linux, but that's only because they haven't encountered corruption that is unrecoverable, (yet). Sooner or later you will regret it if you use NTFS on a computer that runs only Linux, and dual booting introduces more issues than it resolves for inexperienced users. NTFS and Linux don't make good bedfellows, so you're best to bite the bullet and buy a new drive to copy your essential files you can recover over onto. Backup drives for redundant storage are essential, as no drive lasts forever. Hopefully you can still recover your essential data from this problematic drive.

That's my perspective, (ignore it if you like to live dangerously) , but it usually ends up biting you in the ass if you push your luck for too long.

5 Likes

So, this disk doesn't contain any data, does it?

I mean any partition of this disk is not used yet?

It does :cry:

But how do I recover the data now? Is it still there?

That topic is related to LVM, not logical disk management so it is irrelevant. I don't know how to mount your partitions. IMO before losing more data, get another HDD, back up whatever you currently have and then deal with unmountable partitions.

Okay :frowning:

The data should still be there, but I would highly recommend you stop using the drive and attempt file recovery with testdisk and another drive ASAP . Unfortunately, testdisk is not a GUI program and it takes a bit of skill to use it to recover data.

3 Likes

thank you all for trying to help.

I will just sleep for now as its too much stress to handle.

1 Like

Okay, I read your post thoroughly, and would ask you to give links of articles that you followed.
I don't know which articles are those, and can't comment at all without knowing what they said

I just installed it. But I will try it tom.

Okay I will look through my history and link the articles.

Also, have a look at Archwiki

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

And read it carefully.
If you don't understand anything, just search it on any search engine

1 Like

You cannot use testdisk safely without having another separate drive to copy the recovered data to first.

2 Likes

Ah so I need to get an hard drive first. Okay, until that I will i just not touch it at all.

Regarding dual boot, there is a windows driver for btrfs which worked quite well for me, when I tried it.

No please.