Re: [Dorset] Inconsistent mounting
Not sure why I did not do this earlier, I ran Smartmon test, I can run the two minute test with no problems found, try running the extended test and it always aborts at the 10% mark and when I look at the results there are 8 pre fails in the results. So I am going to bite the bullets and spend my Christmas money on a new USB SSD drive. Thanks you the help and advice Regards Tim H On 07/01/2023 20:44, Tim wrote: On 07/01/2023 12:23, Ralph Corderoy wrote: Hi Tim H, I have an external USB drive Is it spinning rust, which could be slow to spin up, perhaps more so if all power comes from USB? Old style spinney disk with single usb Lead connected to the (powered) docking station [E] Can't find snapshots folder. If it is on a removable drive, please plug it in. Waiting 30 seconds. What happens after it waits thirty seconds for the already-mounted drive? Is there anything in the kernel's ring buffer around that time? sudo -i dmesg -Hx The backup failed again tonight, ran the above command which did not list anything relevant for the time that the backup ran (all UFW Block entries) If I check my backup drive it says it is mounted and if I open the drive (clicking the icon on the desktop) it will display the folders and start the backup So the back-up program starts without intervention. Instead of clicking on the icon, because who knows what that's doing, do something simpler like ls /media/backup/.../snapshots In the 30 seconds it gives you to "reconnect" the drive I ran the above command which gave the following mit@NX1:~$ ls /media/backup/backintime/NX1/root/1/last_snapshot/ backup config fileinfo.bz2 info takesnapshot.log.bz2 The backup then started. I will have to leave the 30 second warning and do nothing to see what happens, but I think it just fails to run based on previous error I have seen when it has not run Any suggestion dmesg is your best next step, I'd have thought. Will investigate Do you need the drive mounted all the time? Could a cron job mount the drive a minute before the scheduled backup and unmount it when it's bound to have finished? The theory being the just-mounted drive will be up and running and ready to respond, not sleeping to save power. As it only does the backups I guess i Could try mounting prior to the backup running. But it does not seem to be a mounting issue more something linked to letting the rest of the OS know it is mounted. Thanks for the input Tim H -- Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Inconsistent mounting
On 07/01/2023 12:23, Ralph Corderoy wrote: Hi Tim H, I have an external USB drive Is it spinning rust, which could be slow to spin up, perhaps more so if all power comes from USB? Old style spinney disk with single usb Lead connected to the (powered) docking station [E] Can't find snapshots folder. If it is on a removable drive, please plug it in. Waiting 30 seconds. What happens after it waits thirty seconds for the already-mounted drive? Is there anything in the kernel's ring buffer around that time? sudo -i dmesg -Hx The backup failed again tonight, ran the above command which did not list anything relevant for the time that the backup ran (all UFW Block entries) If I check my backup drive it says it is mounted and if I open the drive (clicking the icon on the desktop) it will display the folders and start the backup So the back-up program starts without intervention. Instead of clicking on the icon, because who knows what that's doing, do something simpler like ls /media/backup/.../snapshots In the 30 seconds it gives you to "reconnect" the drive I ran the above command which gave the following mit@NX1:~$ ls /media/backup/backintime/NX1/root/1/last_snapshot/ backup config fileinfo.bz2 info takesnapshot.log.bz2 The backup then started. I will have to leave the 30 second warning and do nothing to see what happens, but I think it just fails to run based on previous error I have seen when it has not run Any suggestion dmesg is your best next step, I'd have thought. Will investigate Do you need the drive mounted all the time? Could a cron job mount the drive a minute before the scheduled backup and unmount it when it's bound to have finished? The theory being the just-mounted drive will be up and running and ready to respond, not sleeping to save power. As it only does the backups I guess i Could try mounting prior to the backup running. But it does not seem to be a mounting issue more something linked to letting the rest of the OS know it is mounted. Thanks for the input Tim H -- Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Inconsistent mounting
Hi Tim H, > I have an external USB drive Is it spinning rust, which could be slow to spin up, perhaps more so if all power comes from USB? > [E] Can't find snapshots folder. > If it is on a removable drive, please plug it in. > Waiting 30 seconds. What happens after it waits thirty seconds for the already-mounted drive? Is there anything in the kernel's ring buffer around that time? sudo -i dmesg -Hx > If I check my backup drive it says it is mounted and if I open the > drive (clicking the icon on the desktop) it will display the folders > and start the backup So the back-up program starts without intervention. Instead of clicking on the icon, because who knows what that's doing, do something simpler like ls /media/backup/.../snapshots > Any suggestion dmesg is your best next step, I'd have thought. Do you need the drive mounted all the time? Could a cron job mount the drive a minute before the scheduled backup and unmount it when it's bound to have finished? The theory being the just-mounted drive will be up and running and ready to respond, not sleeping to save power. -- Cheers, Ralph. -- Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
[Dorset] Inconsistent mounting
Hi I am running Linux Mint 21.1 XFCE desktop on an IBM laptop with a docking station (IBM, specific for laptop model range) I have an external USB drive which I use to backup to and is mounted via a line in fstab at bootup UUID=d90c0c04-8484-453f-9286-ab5e40cfe62f /media/backup ext4 rw,errors=remount-ro 0 0 I use Backintime to do my backups, it is schedule to run daily, one problem is that sometimes it complains that it can not find the snapshot [E] Can't find snapshots folder. If it is on a removable drive, please plug it in. Waiting 30 seconds. If I check my backup drive it says it is mounted and if I open the drive (clicking the icon on the desktop) it will display the folders and start the backup Here are the permission for the mount point mit@NX1:~$ ls -l /media total 16 drwxr-xr-x 4 mit mit 4096 Aug 31 2020 backup drwxr-x---+ 3 root root 4096 Dec 29 07:04 mit drwxr-xr-x 2 mit mit 4096 Jun 20 2021 nas drwxr-xr-x 3 mit mit 4096 Jan 1 21:57 spare I have not been able to find any pattern to how often it will miss the snapshot Any suggestion Tim H -- Next meeting: Online, Jitsi, Tuesday, 2023-02-07 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk