Iused the command, and it kinda worked, but even Nick (rclone's developer) has commented on other posts on this forum about how no-one really knows what's going on or why it sometimes doesn't work. For example, I tried the DELETE command directly in google's developer portal (link above) and the trash did not empty. Same with the the cleanup command. It's not the fault of rclone, it's Google's bad implementation of a simple delete idea.
But, I did find a solution that worked for me (be careful, however, as you can use a lot of API requests and get rate limited.) Use your own secret/key and I would recommend using a separate secret/key/project from the one you use for your production rclone setup.
--drive-use-trash=false: Also critical, as it doesn't use the drive trash when you delete the files. By default, a google drive remote will send deleted files to the google drive trash. We obviously want to empty the trash, so the false flag will bypass this default option.
The cleanup command was implemented into rclone to help.
I used the command, and it kinda worked, but even Nick (rclone's developer) has commented on other posts on this forum about how no-one really knows what's going on or why it sometimes doesn't work.
As mentioned, I do use it, but after running the command on cron jobs for almost a week, my drive trash was still massive, with thousands of files. It only removed about 2% of my trash after a week. But, after running the command in my post, I deleted the 98% in about 2 minutes.
Edit: To further clarify my original post, the inability to empty the trash via the cleanup/delete API command is not rclone's fault. I followed Google's instruction set on the developer portal. It completed with a good response, but all the files remained. So it's definitely not rclone's fault, as the problem is repeatable outside of rclone. My command posted above is more of a workaround, simply enumerating and deleting files while bypassing the drive files.
@ncw, I figured that has to do with it. I just got impatient and I gave this a shot. Worked quickly and effectively. Do you think you could create a --force-cleanup flag for the cleanup command? So something like this:
Can you, please, try to create an empty folder, send it to trash and see if you can delete it? (Because I think that, in my case, rclone deleted all the files contained in those folders first, so the folders are sitting just empty on my trash)
Hi..do you mind explaining this line pls
"cleanremotes accepts a command line filter now. e.g. ./cleanremotes tv will only clean remotes that have tv in them"
Did you mean all the remote names having a word called tv in them?
The problem may be the offline file cache for the user is corrupted. I had a similar issue with a user recently. After a lot of troubleshooting, we figured out that she was only seeing cached versions of the network drive even though the drive share was set not to allow offline caching. Resetting her offline file cache fixed the issue.
In this article we will discuss some of the DNS settings that each workstation must be configured to in order to communicate within a computer network. DNS is one of the most important services that run within a network or even in the Internet. The...
sounds like you need to set alt DNS ip in the tap driver for the VPN in advance settings (control panel>adapter settings> go to vpn TAP driver> properties>adavnaced>input your dns there) then you can do \servername\foldername and not have to do \serverIP\foldername
At first, I thought it would be unnecessary to have unused mounts. However, I occasionally think that issues such as static electricity or dust might cause problems because of the empty space, necessitating empty bays being filled.
On new servers those are are filled with either empty drive-trays (and you would place your drive in the tray to populate the slot) or more likely with filler blanks (and the vendor sells you drives ready to use as a single unit already attached to their version of hot swap tray)
As far as I know it is not immediately harmful to leave hot swap bays empty , but it will result in a sub optimal airflow and cooling and you may get some dust build up in any of the exposed connectors which might be something to worry about when you do want to populate those empty slots.
If the server has hot swap bays, then yes, they need to be filled as there would be an open hole in the case. This is also the case for PICe slots that are empty. For example, if you were to remove a NIC, you'd want to put the plate back in place so that hole isn't open. This would even be the case with a workstation
Basically, if the drive bays are hot swappable then they need to be filled. If they are internal then they don't. This is the case whether it's a server or a workstation because what happens is that it can cause problems with airflow and also allow dust to get into the case. Those things aren't the end of the world but they are both something to avoid as they can lead to problems.
I have a 2Tb hard drive and a 1Tb hard drive connected to my wdtv but all of a sudden today my wdtv decides that there are no files on the 2Tb drive. I ejected the drive and put it in my laptop which showed all the folders and films on the drive. I then did an error check on the drive and windows says no errors found. Plugged it back into the wdtv and it scans and shows the drive as being connected but still no media on the drive.
TL;DR: Computer was forces shut down, came back to an empty drive (the other partition of that same disk is fine) but the properties window says its 899GB / 1TB used, tried chkdsk and all can't seem to fix it.
When I turned it on, my PC gave me the checkdisk screen before the login screen which was weird since the drive is three-four months old (Seagate Barracuda ST2000DM008, if that matters at all) and I hadn't experienced this before. Coming to the point, after logging in I tried running a game from Steam and it asked me where to download it.
Please help me out and point me how to fix it because I have some very important data on it which I have not backed up anywhere and I cannot fathom downloading all those games again since I don't have super fast internet.
if nothing of the above works I'm afraid you have to bu a new SSD, though reinstalling windows should solve everything software related, So you if your pc is as new as you say you can probably complain to the manufacturer and get a refund if reinstalling windows doesn't work
Use File Manager to repair: Open File Manager> select the name of your hard drive> right click, select Properties> "Tools"> "Error Checking"> "Check"> Wait for the run to complete> "Repair this Drive"> Finish .
Repair using CMD Line: Win + R> Type cmd in the command box to open the CMD window> Type wmic> Enter> Type disk drive to get status> Enter again.It is difficult for CMD to determine the condition of each hard drive. If you want to get detailed information, you can use CrystalDiskInfo or other reliable tools to check it.
Given the stated failure I suspect there was a failure when writing something at the root of the file system. Simpler tools try to walk the directory structure and since they can't even start down that path they see nothing. The only way to find the data is search the whole drive for things that look like a file system.
Personally, I have used -
tt.com/ successfully twice in related situations (in one case I had a failed RAID card, the data was there but the partition wasn't where Windows expected it, in the other a failed card had zeroed the first sector of every drive in the array.) It also has a very nice feature that the trial mode shows you exactly what it can do. (It just won't actually recover anything over 64k.) I'm sure there are other such tools since I made my evaluation long ago but I do not know them.
+1 , would be great to be able to have Unraid handle the removal of a drive, that is shrink the array. unBalance is a great tool but it does not handle the fact that unRaid can still write to the disk during the process. If Unraid handled the process it could be a one click solution where the system:
I agree. I used unbalance too but had to dig in the manual and forums how to remove the disk without issues in a second step. I think a one click solution for the whole process would be better and I think this is quite essential for a NAS software. In Stablebit Drivepool (where the drivepool of several disks can be compared to UNRAIDs array) there is such a function to remove a drive from the pool (i.e. array in UNRAID language). The files are distrubuted to the other drives and when this is finished the drive ist taken out of the pool and is "unassigned".
That's right. A one-click to remove the disk from an array. This is exactly what I want to do with my oldest and smallest disk in my array that starts to log errors. I don't want to replace it, I just want it gone. It's a 640Gb drive while others are 3Tb+.
Anyone who writes an all in one script would need to put in MASSIVE effort to make the procedure as safe and idiot proof as possible, and still end up with a support headache from people complaining about how long the procedure takes. It's a lot of effort for almost zero reward.
unRAID is being billed as an appliance that gives you enterprise features for less money, and does lots of things without requiring as much user knowledge as a home-spun setup using a more common distro. If you're saying a regular user should be totally ok with using the terminal zero a drive with dd, then you're kind of missing the point.
3a8082e126