Timeshift Snapshots removed due to Ext HDD in/out error?

First, I have checked the drive with smartmon tools and it is not a hardware issue. The other day, I could not delete some of the images made by Clonezilla as it kept telling me I did not have permission to the drive. So changed the drive’s permissions to allow that. Whereas before it was owned by /root:

Now I see that Timeshift, which was also using the drive (and driving me crazy with its constant mounting to make the snapshots and not unmounting from /run/timeshift… once completed), has all the folders for snapshots there, but each says 0 bytes, nothing in them.

When I ran the following command, here is the output indicating input/output error:

do  find / -iname 'timeshift'
[sudo] password for myviolinsings:          
/var/log/timeshift
/root/timeshift
/etc/timeshift
/run/lock/timeshift
find: ‘/run/user/1000/gvfs’: Permission denied
find: ‘/run/user/1000/doc’: Permission denied
/run/timeshift
find: ‘/proc/5056/task/5056/net’: Invalid argument
find: ‘/proc/5056/net’: Invalid argument
find: ‘/media/myviolinsings/Linux Acer ES2’: Input/output error
/usr/bin/timeshift
/usr/share/doc/timeshift
/usr/share/timeshift

That drive mounted at /media/myviolinsings/Linux Acer ES2 is my ext HDD that I use for all of my /home & image backups for MX Linux.

My question is this; if I changed the permission to be able to remove Clonezilla images (which take up a lot of space), is that what is causing issues with TS? And if so, how would I change that so that TimeShift will continue making snapshots?

Oy-vey, I need a better method of making system snapshots onto ext HDD, not something that takes over ownership and causes me issues. I pray that the snapshots are not really gone, but what else would cause them to not show up where they have always been?

Thanks,
Sheila

1 Like

Completely uninformed guess: do you need to escape the blanks in “Linux Acer ES2” ?

2 Likes

Nice guess.
I think you may find Sheila will get away with the blanks in the File Manager gui, but on the CLI she will have to put the filename in single quotes.

Sheila, you should change that drive back to root ownership. Use sudo or be root if you want to delete CZ images.
Do all backups as root… othewise they will not be able to access some files.

I know… you cant start the File Manager as root… you have to use the CLI…

2 Likes

I don’t understand why the ext HDD now shows /root drive does that mean /root owns it?:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0   4.5T  0 disk 
├─sda1        8:1    0   1.2T  0 part 
└─sda2        8:2    0   3.3T  0 part 
nvme0n1     259:0    0 931.5G  0 disk 
├─nvme0n1p1 259:1    0   511M  0 part /boot/efi
├─nvme0n1p2 259:2    0 650.2G  0 part /
├─nvme0n1p3 259:3    0   512M  0 part /media/EFI_SYSTEM2
└─nvme0n1p5 259:4    0 280.3G  0 part /media/myviolinsings/406d8c92-eb3f-4642-8532-fe14c97261cd
root@mx--acer:~# ls -l /dev/sda2
brw-rw---- 1 root disk 8, 2 Feb  6 19:08 /dev/sda2
root@mx--acer:~# ls -l /dev/sda
brw-rw---- 1 root disk 8, 0 Feb  6 19:08 /dev/sda

Let me check something else.

Sheila

1 Like

Question:

I don’t remember the other access for sure, but I think it was /root read/write and then me as user group, but read only?

I just wasn’t sure if when I chown -R I only use one level to change that from me to /root. Then the rest of the levels will still allow me to access read/write to the drive?

chown -R root /media/myviolinsings/‘Linux Acer ES2’

NOT

chown -R root:root /media/myviolinsings/‘Linux Acer ES2’

UPDATE:
I tried to use
chown -R root:myviolinsings /media/myviolinsings/‘Linux Acer ES2’

But that command also gave me input/output error. Either I am messing up the command syntax or there is another issue involved besides TS.

Sheila

1 Like

I dont understand ‘/root drive’
Do you mean it is called /root ?

Root would normally own filesystems on a backup drive

2 Likes

I mean the ouput I posted:

brw-rw---- 1 root disk 8, 2 Feb  6 19:08 /dev/sda2
root@mx--acer:~# ls -l /dev/sda
brw-rw---- 1 root disk 8, 0 Feb  6 19:08 /dev/sda

But it’s a moot point for now as I can’t chown without getting same input/output error message that TS gave me.

I am running the smartctl on it now, but that will take awhile. It took awhile when I ran it the other day to ensure that error message does not mean the drive is failing. I do not have, on hand, another 4 TB drive to move things to, and that’s even if I can since everytime I try to copy something from the drive, with me as owner, I get the Input/output error message.

Here’s the short output test results:

Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 656) minutes.
SCT capabilities: 	       (0x30b5)	SCT Status supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   253   253   021    Pre-fail  Always       -       4016
  4 Start_Stop_Count        0x0032   082   082   000    Old_age   Always       -       18488
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   078   078   000    Old_age   Always       -       16104
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       325
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       254
193 Load_Cycle_Count        0x0032   181   181   000    Old_age   Always       -       57984
194 Temperature_Celsius     0x0022   118   103   000    Old_age   Always       -       34
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   100   253   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

Sheila

2 Likes

The disk is ok
I get it now, you meant root not /root

2 Likes

So if the disk is ok, why am I getting input/output errors when properties show I am the owner with r/w permissions? Why can’t I even copy those files/images to another drive without that error?

Sheila

2 Likes

Because the cause is not the disk or the filesystem permissions

  • check your usb cable
  • try another usb port
  • try copying using a live usb or garuda… if that works the problem is in your OS … maybe even the same problem that is messing with your sound
3 Likes

I never even thought of that. I will boot into Garuda and see what’s up and try a live session. Cause I just made a new 350GB partition on the ext SSD and I could at least copy my /home partition to that for safety and the latest CZ image of MX.

Thanks,
Sheila

2 Likes

Would you believe this worked? SHEESH! Timeshift now sees the drive, I can right click and cut or copy files on it…LOL. AND all of the old snapshots are back (I knew they weren’t gone)

Whew!
Sheila

3 Likes

OK something positive at last.
You have to reinstall that MX

3 Likes

Maybe export a list of installed packages, just for reference when installing the new system:
apt list --installed
(No sudo needed for that).
Maybe
apt list --installed | grep -v auto
That theoretically excludes automatically installed packages.

3 Likes

@Sheila_Flanagan ,
Do you want to do a radical experiment?

Do an inline upgrade of MX to the same version.
That should do the equivalent of a fresh install, but without losing all your installed apps.
Be prepared for it to fail… I have never done an inline upgrade with MX, but there is a tool.

I will not be surprised if you are too busy

1 Like

Not too busy as I am off work for the weekend. But you are saying there is a tool–in MX Tools? What is it called?

1 Like

In looking for the tool, I just saw that MX has a snapshot utility. I don’t need TS anymore!

I really should take a look at all of these…LOL.

Sheila

1 Like

Yes, it makes an .iso file. I think you could restore from that. Test it.

1 Like

Use zstd - best compromise (compression size vs speed)?

1 Like

I cant find the tool

The upgrade instructions are here
https://mxlinux.org/wiki/system/upgrading-from-mx-21-to-mx-23-without-reinstalling/

but you need the tool that saves all your apps.
I read about it somewhere… will keep looking

2 Likes