You are not logged in.

#1 2024-04-30 07:44:13

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

[SOLVED]Storage hdd files not showing even with ls commands

I was saving something on my hard drive when i noticed that my files disappeared
I clicked on the storage icon on the left side "using dolphin as a file manager" and saved
when i opened it i only found the file i saved and everything else disappeared
I tried everything but couldn't find them

ls ls -a ls -al

ctrl+h alt+dot and show hidden file button from the GUI
restarting the PC didn't help either

I checked gparted to see the partition there was only one "/dev/sdb1"
when i double clicked it it showed me a warning

"
WARNING:
Forced to continue.
Failed to read vcn 0x23 from inode 5: Input/output error
Failed to open $Secure: No such file or directory
Failed to mount '/dev/sdb1': No such file or directory
"

However the files are still there i can access them if i changed the adress from the adress bar or i use cd command
I'm using Arch Linux x86_64 with KDE

Last edited by M1s3ry (2024-05-08 14:07:55)

Offline

#2 2024-04-30 08:39:56

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED]Storage hdd files not showing even with ls commands

Check the systemd journal/dmesg for what happened to the device - IO erros sure doesn't sound good.
Is this a usb-attached drive?
Might just be https://wiki.archlinux.org/title/Power_ … utosuspend

Offline

#3 2024-04-30 08:53:21

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

Re: [SOLVED]Storage hdd files not showing even with ls commands

How do i do this?
+it's sata not usb

Offline

#4 2024-04-30 08:53:42

mpan
Member
Registered: 2012-08-01
Posts: 1,220
Website

Re: [SOLVED]Storage hdd files not showing even with ls commands

Hello. Me and, likely, other people will ask to use the terminal, as GUI tools rarely offer any useful information. What they show is also hard to translate between different tools.

The initial issue resembles a file system mount disappearing, but the mount point remaining in place and the file manager using it instead.

You didn’t tell anything about your setup: how are drives organized, what partitions are on them, what file system it was. The error you provided suggests NTFS on “/dev/sdb1” with either the filesystem or the device itself broken. But is this the file system in question?

Given the above assumptions are true, put the drive into a Windows machine and use Microsoft’s chkdsk to repair the file system. Do not use ntfsfix from ntfs-3g.⁽¹⁾ Chdsk may cause further damage; if the file system contains some important information, which you don’t have backups of, and you plan to use recovery tools afterwards, it may be worth making a byte-to-byte copy of the entire disk or partition. The simplest method is with `cp`:

sudo cp /dev/sdb1 backup.img

There are some specialized disk cloning solutions too.
____
⁽¹⁾ It’s meant to let Linux users, who can’t use Windows, to circumvent various conditions to read contents. But this isn’t done by repairing anything, but savagely overwriting various things that prevent mounting. It may cause data loss and the file system is not guaranteed to be safely writable after that.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#5 2024-04-30 09:06:18

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED]Storage hdd files not showing even with ls commands

How do i do this?

https://wiki.archlinux.org/title/System … ss_as_user
https://wiki.archlinux.org/title/System … ing_output

sudo journalctl -b

Alternatively

sudo dmesg

If your root filesystem dropped out this will likely fail because the binaries are not longer available to be run.

Offline

#6 2024-04-30 09:47:44

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

Re: [SOLVED]Storage hdd files not showing even with ls commands

i have two drives
sata ssd for the system "it has 4 partitions boot,swap,root,home"
and sata hdd for storage it has one partition
the file system for the storage is ntfs


i can reach the file open/edit/move them in the terminal or the GUI file manager "dolphin"
but i can't see them anywhere even ls -a not listing them
"i can use cd command or i can change the file directory from the adress bar in the file manager to reach them"

also i had a hidden files it didn't disappear when this happened it did not get affected
only shown files disappeared

Offline

#7 2024-04-30 10:01:41

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

Re: [SOLVED]Storage hdd files not showing even with ls commands

seth wrote:

Alternatively sudo dmesg

is there anything specific to look for?
i found this about my hard drive "storage hdd"

"
[    2.353273] scsi 4:0:0:0: Direct-Access     ATA      SAMSUNG HD322HJ  1118 PQ: 0 ANSI: 5
[    2.353639] sd 4:0:0:0: [sdb] 625140335 512-byte logical blocks: (320 GB/298 GiB)
[    2.353648] sd 4:0:0:0: [sdb] Write Protect is off
[    2.353650] sd 4:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    2.353664] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.353682] sd 4:0:0:0: [sdb] Preferred minimum I/O size 512 bytes
[    2.405362]  sdb: sdb1
[    2.405519] sd 4:0:0:0: [sdb] Attached SCSI disk
[    2.664976] ata6: SATA link down (SStatus 0 SControl 330)
[    2.666283] Freeing unused decrypted memory: 2028K
[    2.666703] Freeing unused kernel image (initmem) memory: 3432K
[    2.666705] Write protecting the kernel read-only data: 30720k
[    2.667130] Freeing unused kernel image (rodata/data gap) memory: 1416K
[    2.724534] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[    2.724538] rodata_test: all tests were successful
"

Offline

#8 2024-04-30 14:36:02

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED]Storage hdd files not showing even with ls commands

Please use [code][/code] tags. Edit your post in this regard.
Any kind of device or bus (pci or ata) error, general IO errors, filesystem errors…
In doubt you'll have to post the entire output

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#9 2024-05-01 20:35:52

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

Re: [SOLVED]Storage hdd files not showing even with ls commands

Sorry i'm late

seth wrote:

In doubt you'll have to post the entire output

it gave me this link
http://0x0.st/XXA-.txt

Offline

#10 2024-05-01 20:59:31

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED]Storage hdd files not showing even with ls commands

You're running networkmanager and dhcpcd concurrently and they knock each other out.

There're on first glance no obvious device errors, is this actually supposed to cover a concerned incident?
The only thing is ntfs3, you could try whether you're getting the same w/ ntfs-3g, https://wiki.archlinux.org/title/NTFS-3G

Offline

#11 2024-05-02 21:25:13

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

Re: [SOLVED]Storage hdd files not showing even with ls commands

when i try to mount my partition using the terminal

sudo mount /dev/sdb1 /mnt/harddisk1

or

sudo mount /run/media/m1s3ry/421C7CEB622E464C

"that's where it shows me where it's mounted when i use df command"


it says

"Failed to read vcn 0x23 from inode 5: Input/output error
Failed to open $Secure: No such file or directory
Failed to mount '/dev/sdb1': No such file or directory"

eventhough it shown when i use

lsblk

however if i tried to open from the file manager it shows that its mounted to /run/media/m1s3ry/421C7CEB622E464C on the adress bar

Offline

#12 2024-05-03 12:20:56

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED]Storage hdd files not showing even with ls commands

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

lsblk -f
mount
df -h

Offline

#13 2024-05-03 22:07:29

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

Re: [SOLVED]Storage hdd files not showing even with ls commands

lsblk -f

Output

mount

Output

df -h

Output

Offline

#14 2024-05-04 07:33:42

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED]Storage hdd files not showing even with ls commands

At least at that point sdb1 was (still) mounted at /run/media/M1s3ry/421C7CEB622E464C as ntfs3 filesystem
Are you trying to re-mount it at this point? Why?
What's the output of

stat /dev/sd*

when this happens?

df and lsblk suggest the drive is basically empty, have you accidentally written data into the mountpoint (ie. w/o the drive actually being mounted)?

Edit: since this all looks a bit odd, maybe it's a bug in ntfs3 - try https://wiki.archlinux.org/title/NTFS-3G

Last edited by seth (2024-05-04 07:34:50)

Offline

#15 2024-05-05 10:46:02

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

Re: [SOLVED]Storage hdd files not showing even with ls commands

seth wrote:

What's the output of

stat /dev/sd*

when this happens?

Output


seth wrote:

have you accidentally written data into the mountpoint (ie. w/o the drive actually being mounted)?

that's mostly what happened because when i tried to save the file i clicked on the drive icon and clicked save quickly and that's where the problem started


seth wrote:

Are you trying to re-mount it at this point? Why?

when i tried to mount it to another point it gave me an error
"
Failed to read vcn 0x23 from inode 5: Input/output error
Failed to open $Secure: No such file or directory
Failed to mount '/dev/sdb1': No such file or directory
"
so i tried to mount it to the point it was mounted in to see if it would mount
and it gave me the same error above

edit:trying to mount it with ntfs-3g gave me the same error above
the only way i could mount it is using the file manager

Last edited by M1s3ry (2024-05-05 10:51:18)

Offline

#16 2024-05-05 11:14:26

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED]Storage hdd files not showing even with ls commands

  File: /dev/sdb1
  Size: 0         	Blocks: 0          IO Block: 4096   block special file
Device: 0,5	Inode: 183         Links: 1     Device type: 8,17
Access: (0660/brw-rw----)  Uid: (    0/    root)   Gid: (  995/    disk)
Access: 2024-05-05 13:37:19.707526339 +0300
Modify: 2024-05-05 13:37:19.707526339 +0300
Change: 2024-05-05 13:37:19.707526339 +0300
 Birth: 2024-05-05 12:53:03.173492153 +0300

So the device is perfectly there.

You're not mounting anything with a file manager and if it has a feature to mount something for you, it's gonna utilize the regular mount calls.

sudo umount /run/media/M1s3ry/421C7CEB622E464C
ls /run/media/M1s3ry/421C7CEB622E464C
sudo mount /run/media/M1s3ry/421C7CEB622E464C

Offline

#17 2024-05-05 11:21:23

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

Re: [SOLVED]Storage hdd files not showing even with ls commands

the output of

sudo mount /run/media/M1s3ry/421C7CEB622E464C

"
mount: /run/media/M1s3ry/421C7CEB622E464C: can't find in /etc/fstab.
"

Offline

#18 2024-05-05 11:28:39

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED]Storage hdd files not showing even with ls commands

sudo mount /dev/sdb1 /mnt
ls mount
sudo umount /dev/sdb1 /mnt

Offline

#19 2024-05-05 11:44:03

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

Re: [SOLVED]Storage hdd files not showing even with ls commands

sudo mount /dev/sdb1 /mnt

Output:
"
Failed to read vcn 0x23 from inode 5: Input/output error
Failed to open $Secure: No such file or directory
Failed to mount '/dev/sdb1': No such file or directory
"

ls mount

Output:
"
cannot access 'mount': No such file or directory
"

 sudo umount /dev/sdb1 /mnt

Output:
"
umount: /dev/sdb1: not mounted.
umount: /mnt: not mounted.
"

Offline

#20 2024-05-05 11:49:36

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED]Storage hdd files not showing even with ls commands

"ls mount" was bad copypasta on my part but doesn't matter.

To be clear:

mount | grep sdb1

is empty?

sudo mount /dev/sdb1 /mnt

then fails w/ that error but

stat /dev/sdb

still shows the device present as

  File: /dev/sdb1
  Size: 0         	Blocks: 0          IO Block: 4096   block special file
Device: 0,5	Inode: 183         Links: 1     Device type: 8,17
Access: (0660/brw-rw----)  Uid: (    0/    root)   Gid: (  995/    disk)

?

If all of the above is true, try

sudo ntfs-3g /dev/sdb1 /mnt

instead of "sudo mount /dev/sdb1 /mnt"
If that still fails, run

sudo partprobe /dev/sdb
stat /dev/sdb1

Offline

#21 2024-05-05 12:11:51

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

Re: [SOLVED]Storage hdd files not showing even with ls commands

yes all the above is true but

 stat /dev/sdb1

gave me this output

  File: /dev/sdb1
  Size: 0         	Blocks: 0          IO Block: 4096   block special file
Device: 0,5	Inode: 183         Links: 1     Device type: 8,17
Access: (0660/brw-rw----)  Uid: (    0/    root)   Gid: (  995/    disk)
Access: 2024-05-05 15:04:21.865482122 +0300
Modify: 2024-05-05 15:04:21.865482122 +0300
Change: 2024-05-05 15:04:21.865482122 +0300
 Birth: 2024-05-05 12:53:03.173492153 +0300
sudo ntfs-3g /dev/sdb1 /mnt

gave me the same error

Failed to read vcn 0x23 from inode 5: Input/output error
Failed to open $Secure: No such file or directory
Failed to mount '/dev/sdb1': No such file or directory
sudo partprobe /dev/sdb

did nothing

stat /dev/sdb1

gave me the same output

  File: /dev/sdb1
  Size: 0         	Blocks: 0          IO Block: 4096   block special file
Device: 0,5	Inode: 183         Links: 1     Device type: 8,17
Access: (0660/brw-rw----)  Uid: (    0/    root)   Gid: (  995/    disk)
Access: 2024-05-05 15:04:21.865482122 +0300
Modify: 2024-05-05 15:04:21.865482122 +0300
Change: 2024-05-05 15:04:21.865482122 +0300
 Birth: 2024-05-05 12:53:03.173492153 +0300

Offline

#22 2024-05-05 12:14:29

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED]Storage hdd files not showing even with ls commands

What does

sudo ntfsfix --no-action /dev/sdb1

report?

Offline

#23 2024-05-05 12:28:14

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

Re: [SOLVED]Storage hdd files not showing even with ls commands

Output:

Mounting volume... Failed to read vcn 0x23 from inode 5: Input/output error
Failed to open $Secure: No such file or directory
FAILED
Attempting to correct errors... 
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Failed to read vcn 0x23 from inode 5: Input/output error
Failed to open $Secure: No such file or directory
Remount failed: No such file or directory

Offline

#24 2024-05-05 12:31:28

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED]Storage hdd files not showing even with ls commands

It's not the device, just the filesystem and you'll have to fix that w/ "chkdsk" on windows (unless you're ready to nuke the filesystem)

Offline

#25 2024-05-05 12:35:44

M1s3ry
Member
Registered: 2024-04-30
Posts: 18

Re: [SOLVED]Storage hdd files not showing even with ls commands

will nuking the file system delete the files on the drive?
+what could've caused this?

Offline

Board footer

Powered by FluxBB