Files in hard disk deleted

so my files are already gone right?

Not necessarily

2 Likes

with things like that, the first thing i tend to do is live boot and see if you can read the partition from there. Only takes a minute to do and then you'll know if further, more drastic action is required.

1 Like

This command is very wrong. If this is the exact command you entered in terminal, it is expected to fail.
If this is wrong, post the exact command.

6 Likes

im beginner to linux. if there's no certain solution.Should i reinstall os ?

1 Like

Is one of your drives an NTFS formatted (Windows) drive?

If so disconnect it from your computer.

This is looking like an NTFS bug, see:

4 Likes

I think it is just missing a space. :joy:

Probably will still have to replace ntfsprogs with ntfs-3g because of the bug TBG mentioned.

3 Likes

See this post:

Install the ntfs-3g package:

sudo pacman -Syu ntfs-3g

Then try mounting your drive as follows:

sudo mount -t ntfs-3g /dev/sda1 /mnt/windows_garbage
5 Likes

i think that the files are corrupt because

  1. hard drive is dead fix: buy new one
1 Like

More likely the filesystem. NTFS is very fragile and improper mounts/dismounts can "break" it.

I think this is probably unnecessary. A more realistic worst case scenario would be having to use the disk repair utility from Windows to restore the filesystem.

5 Likes

NTFS sucks lol. I wonder why Microsoft refuse to use something better but maybe because of compatibility reasons with old versions of Windows. Would be nice to run Windows on ext4 though. Or even btrfs

1 Like

Windows with BTRFS would be a match made in heaven... "Microsoft broke my shit again, guess a snapshot it is"

3 Likes

Yeah if only that was possible. Tbh though I break Linux like daily almost and haven't had Windows fully break beyond repair in years. Probably because I can't do stupid stuff as much as they limit you a lot haha.

1 Like

If it is an NTFS drive that is broken, try mounting it in Windows and doing a scan/repair on it through Windows.

If you cannot get it to mount at all, then you could try using testdisk to repair the drive or recover the files you want to save.

4 Likes

I think from the Linux side of the fence, NTFS causes nothing but grief. For a Windows user, it is a robust and useful filesystem. Unfortunately for us, a lot of the usefulness of NTFS is baked in to the elaborate software padding that Windows (only) provides.

We all kind of scoff at NTFS and consider it a lesser filesystem, but in its day it was revolutionary. It was the first journaling filesystem available to casual users (some seven or eight years before ext3), and also the first to roll out other features we now take for granted like encryption and compression.

Nowadays a lot of the cool features of NTFS are secreted away behind Microsoft's walled garden. Windows users can enjoy a filesystem that detects and repairs errors automatically--sometimes without the users awareness--which is a far cry from the frequently broken, featureless filesystem visible to us Linux users.

6 Likes

there's many error occuring in my laptop now first booting seems doesn't work properly sometimes it doesnt boot and appear just black screen.

when i try to install ntfs-3g this error appear:

error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
:: Synchronizing package databases...
core                                  154,9 KiB   239 KiB/s 00:01 [------------------------------------] 100%
extra                                1717,4 KiB  1277 KiB/s 00:01 [------------------------------------] 100%
community                               6,5 MiB  3,05 MiB/s 00:02 [------------------------------------] 100%
multilib                              171,0 KiB   274 KiB/s 00:01 [------------------------------------] 100%
chaotic-aur                          1641,7 KiB   469 KiB/s 00:03 [------------------------------------] 100%
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: GPGME error: No data
error: failed to synchronize all databases (unexpected error)```

Probably mirror servers issue. Recreate your mirrorlists.
See also

4 Likes

now when i try to update system:

:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
chaotic-aur is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (25) at-spi2-core-2.44.0-2  candy-icons-git-r820.87d7052-1  firedragon-98.0.2-1
garuda-update-2.2.1-1  grub-2:2.06-5  imagemagick-7.1.0.29-1  knewstuff-5.92.0-2
kvantum-theme-sweet-git-r249.6b49e53-1  ldb-2:2.5.0-1  lib32-util-linux-2.38-1
libevdev-1.12.1-1  libnetfilter_conntrack-1.0.9-1  libnma-1.8.36-1  libsysprof-capture-3.44.0-1
libwacom-2.2.0-1  luajit-2.1.0.beta3.r395.ge2c312e0-1  nftables-1:1.0.2-1  openconnect-1:8.20-2
plymouth-git-22.02.122.r30.g88c54ff-1  python-3.10.4-1  smbclient-4.16.0-2
sweet-cursor-theme-git-r249.6b49e53-1  sweet-kde-git-r249.6b49e53-1  util-linux-2.38-1
util-linux-libs-2.38-1

Total Download Size:   115,73 MiB
Total Installed Size:  380,28 MiB
Net Upgrade Size:       -0,37 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
smbclient-4.16.0-2-x86_64               6,7 MiB  1434 KiB/s 00:05 [------------------------------------] 100%
grub-2:2.06-5-x86_64                    6,7 MiB  1365 KiB/s 00:05 [------------------------------------] 100%
python-3.10.4-1-x86_64                 11,9 MiB  1534 KiB/s 00:08 [------------------------------------] 100%
util-linux-2.38-1-x86_64                2,4 MiB   826 KiB/s 00:03 [------------------------------------] 100%
imagemagick-7.1.0.29-1-x86_64           2,8 MiB   915 KiB/s 00:03 [------------------------------------] 100%
knewstuff-5.92.0-2-x86_64            1937,7 KiB  2,09 MiB/s 00:01 [------------------------------------] 100%
openconnect-1:8.20-2-x86_64           816,5 KiB  2,52 MiB/s 00:00 [------------------------------------] 100%
lib32-util-linux-2.38-1-x86_64        385,0 KiB  2005 KiB/s 00:00 [------------------------------------] 100%
nftables-1:1.0.2-1-x86_64             367,4 KiB  1846 KiB/s 00:00 [------------------------------------] 100%
util-linux-libs-2.38-1-x86_64         360,4 KiB  1991 KiB/s 00:00 [------------------------------------] 100%
luajit-2.1.0.beta3.r395.ge2c312e...   319,3 KiB  1565 KiB/s 00:00 [------------------------------------] 100%
libnma-1.8.36-1-x86_64                310,3 KiB  1916 KiB/s 00:00 [------------------------------------] 100%
sweet-cursor-theme-git-r249.6b49...   268,5 KiB  30,1 KiB/s 00:09 [------------------------------------] 100%
sweet-kde-git-r249.6b49e53-1-any        4,5 MiB   221 KiB/s 00:21 [------------------------------------] 100%
plymouth-git-22.02.122.r30.g88c5...  1064,9 KiB  74,1 KiB/s 00:14 [------------------------------------] 100%
candy-icons-git-r820.87d7052-1-any   1363,5 KiB  92,0 KiB/s 00:15 [------------------------------------] 100%
at-spi2-core-2.44.0-2-x86_64          263,1 KiB  1708 KiB/s 00:00 [------------------------------------] 100%
ldb-2:2.5.0-1-x86_64                  215,0 KiB  1272 KiB/s 00:00 [------------------------------------] 100%
libwacom-2.2.0-1-x86_64               105,8 KiB  1103 KiB/s 00:00 [------------------------------------] 100%
libevdev-1.12.1-1-x86_64               62,8 KiB   640 KiB/s 00:00 [------------------------------------] 100%
libnetfilter_conntrack-1.0.9-1-x...    49,0 KiB   521 KiB/s 00:00 [------------------------------------] 100%
libsysprof-capture-3.44.0-1-x86_64     45,2 KiB   502 KiB/s 00:00 [------------------------------------] 100%
garuda-update-2.2.1-1-any               6,0 KiB  1763   B/s 00:03 [------------------------------------] 100%
kvantum-theme-sweet-git-r249.6b4...    25,5 KiB  5,75 KiB/s 00:04 [------------------------------------] 100%
firedragon-98.0.2-1-x86_64             72,8 MiB  1161 KiB/s 01:04 [------------------------------------] 100%
Total (25/25)                         115,7 MiB  1819 KiB/s 01:05 [------------------------------------] 100%
(25/25) checking keys in keyring                                   [------------------------------------] 100%
(25/25) checking package integrity                                 [------------------------------------] 100%
error: util-linux-libs: signature from "Christian Hesse <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/util-linux-libs-2.38-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: libsysprof-capture: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/libsysprof-capture-3.44.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: util-linux: signature from "Christian Hesse <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/util-linux-2.38-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libnetfilter_conntrack: signature from "Sébastien Luttringer <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/libnetfilter_conntrack-1.0.9-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: nftables: signature from "Sébastien Luttringer <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/nftables-1:1.0.2-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package(PGP signature)).
Do you want to delete it? [Y/n] y
error: at-spi2-core: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/at-spi2-core-2.44.0-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: candy-icons-git: signature from "Nico Jensch (Chaotic-AUR) <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/candy-icons-git-r820.87d7052-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libevdev: signature from "Andreas Radke <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/libevdev-1.12.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libwacom: signature from "Andreas Radke <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/libwacom-2.2.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: firedragon: signature from "Nico Jensch (Chaotic-AUR) <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/firedragon-98.0.2-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] ^C
Interrupt signal received```

i tried to update ring:
```sudo pacman -Sy archlinux-keyring && pacman -Syyu```
but same error

This link from jonathan should help with getting the keys refreshed:

3 Likes

thank you :smiley: i was about to reinstall os XD now i'll just try to solve my disk problem

1 Like