You are not logged in.

#1 2017-05-08 12:19:17

slirx
Member
Registered: 2016-01-24
Posts: 3

Truncated files on SSD

I'm trying to update packages, but receiving many "exists in filesystem" errors:

gst-plugins-base-libs: /usr/bin/gst-device-monitor-1.0 exists in filesystem
gst-plugins-base-libs: /usr/bin/gst-discoverer-1.0 exists in filesystem
gst-plugins-base-libs: /usr/bin/gst-play-1.0 exists in filesystem
gst-plugins-base-libs: /usr/include/gstreamer-1.0/gst/allocators/allocators.h exists in filesystem
gst-plugins-base-libs: /usr/include/gstreamer-1.0/gst/allocators/gstdmabuf.h exists in filesystem
gst-plugins-base-libs: /usr/include/gstreamer-1.0/gst/allocators/gstfdmemory.h exists in filesystem
gst-plugins-base-libs: /usr/include/gstreamer-1.0/gst/app/app.h exists in filesystem
gst-plugins-base-libs: /usr/include/gstreamer-1.0/gst/app/gstappsink.h exists in filesystem
gst-plugins-base-libs: /usr/include/gstreamer-1.0/gst/app/gstappsrc.h exists in filesystem

and so on.

These files indeed exists, but their size is 0 bytes:

$ ls -l /usr/include/gstreamer-1.0/gst/app/gstappsrc.h
-rw-r--r-- 1 root root 0 Feb 23 21:51 /usr/include/gstreamer-1.0/gst/app/gstappsrc.h
$ ls -l /usr/bin/gst-play-1.0
-rwxr-xr-x 1 root root 0 Feb 23 21:51 /usr/bin/gst-play-1.0
$ ls -l /usr/bin/gst-device-monitor-1.0
-rwxr-xr-x 1 root root 0 Feb 23 21:51 /usr/bin/gst-device-monitor-1.0

I'm using SSD.
Several days ago I upgraded packages, but after reboot .xinitrc was truncated. The same behaviour.
Earlier I used HDD and this never happened.
What can cause such data corruptions and how to fix it?


Here is my /etc/fstab:

UUID=fa8a6efb-0701-4991-9ee7-b9e4b4e336bf	/         	ext4      	rw,relatime,data=ordered	0 1
/dev/sdb5 /data ext4 defaults 0 0

fstrim.timer status:

$ sudo systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
   Loaded: loaded (/usr/lib/systemd/system/fstrim.timer; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:fstrim
$ uname -r
4.10.13-1-ARCH

Offline

#2 2017-05-08 13:34:40

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Truncated files on SSD

Check the SSD smart attributes and see if any point to a failure. Do a memtest. Have you forcibly shut down your machine before the problem happened?


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2017-05-08 18:05:34

slirx
Member
Registered: 2016-01-24
Posts: 3

Re: Truncated files on SSD

R00KIE wrote:

Check the SSD smart attributes and see if any point to a failure.

smartctl doesn't show any errors:

Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%       640         -
# 2  Short offline       Completed without error       00%       638         -
R00KIE wrote:

Have you forcibly shut down your machine before the problem happened?

Yes, unfortunately I have. But after that I rebooted several times and .xinitrc was fine.

Offline

#4 2017-05-08 20:56:21

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Truncated files on SSD

I was not talking about the smart self-test logs, I was talking about the actual smart attribute values.

Word of advice, just in case something is planning to break down, make sure you have backups.

Boot with the arch iso and do memtest. If everything checks out do a forces fsck on the partition. After that you may have to use pacman from the iso to reinstall the broken packages.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB