If file system is dirty, can I safely delete files in .Trashes folder of an external HDD to speed up fsck?

I got a brand new HDD, formatted in exFAT, I was moving folders to it and it happened that something got corrupted when I opened more threads to copy files there.

I know the directory that faulted (it got stucked, maybe for hundred thousands files in it). I tried to remove it (was moved on .Trash folder on mac).

But could not erase files. So I unplugged the HDD, thinking no process was running.


sudo fsck_exfat -q /dev/disk1s2 

reports file system dirty

sudo fsck_exfat -gd /dev/disk1s2 

I see that it goes through the long list of files listed in the ./Thrashes/

folder of the external HDD

I wonder if I could do:

rm -r ./Thrashes/* 

to remove all files in thrash, and run again fsck to make the process faster.

Or is it better to avoid and let fsck complete, since file system is dirty ?

I also occasionally see lines:

Read      offset = 0x000005200000  length = 0x040000 

Does it mean is an error, or simply an information ?

this is the log I got:

sudo fsck_exfat -gd /dev/disk1s2 Opening /dev/rdisk1s2 (S,"Checking volume.",0) (S,"Checking main boot region.",0) 7813556224 total sectors; 512 bytes per sector FAT starts at sector 32768; size 131072 sectors 15260532 clusters starting at sector 163840; 262144 bytes per cluster Root directory starts at cluster 11 Read      offset = 0x000001000000  length = 0x001000 (S,"Checking system files.",0) Read      offset = 0x000005240000  length = 0x040000 (S,"Volume name is %1$  @.",1) luigi4T Found active bitmap; first cluster 2, length 1907567 (S,"Checking upper case translation table.",0) Read      offset = 0x000005200000  length = 0x040000 Found upcase table; starting cluster 10, length 5836 (S,"Checking file system hierarchy.",0) Directory / File      /._.Trashes Directory /.Trashes Directory /.fseventsd Directory /.Spotlight-V100 Directory /.TemporaryItems Directory /20190318 BackUp File      /.com.apple.timemachine.donotpresent File      /._.com.apple.timemachine.donotpresent File      /._.TemporaryItems File      /.apdisk File      /._.apdisk Read      offset = 0x000005280000  length = 0x040000 Directory /.Trashes/501 File      /.Trashes/._501 Read      offset = 0x000005300000  length = 0x040000 File      /.fseventsd/fseventsd-uuid File      /.fseventsd/0000000002073ca7 File      /.fseventsd/0000000002089d5c ... # files I'd like to remove from Thrashes folder, *before* running a files system check again ... File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm2219_9_Assassinio_per_cause_naturali.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm2219_imm_Assassinio_per_cause_naturali.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm221_0_Accordi_sul_palcoscenico.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm221_10_Accordi_sul_palcoscenico.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm221_1_Accordi_sul_palcoscenico.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm221_2_Accordi_sul_palcoscenico.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm221_3_Accordi_sul_palcoscenico.jpg File      /.Trashes/501/WatchDiscovery 10.01.36 AM/backup Jan 21, 2012/Posters_cleaned/mm221_4_Accordi_sul_palcoscenico.jpg 

…. ….

If matters, mac OS version 1.9.5

Question Folder but no Start-Up Options

I came home to my Mac Book Pro (late 2009) showing me the blinking question mark folder.

I followed all the instructions online (Reset NVRAM, SMC) but neither boot screen (pressing alt during/before start-up) nor internet recovery (cmd+R during/before start-up) show me anything. They just lead to an empty grey start up screen.

I attached an external Hard drive with a bootable Mac OS X that I used on this computer before but it achanges nothing – boot screen doesn’t show.

Any ideas?

Jenkins create Folder with REST API in groovy skript

i am trying to create a Folder in Jenkins using a groovy script. For that i use an REST API call. My starting point is was basically a curl command:

curl -XPOST "http://userName:YourApiToken@JenkinsURL:Port/createItem?name=FolderName&mode=com.cloudbees.hudson.plugins.folder.Folder" -H "Content-Type:application/x-www-form-urlencoded" 

I got this from https://gist.github.com/marshyski/abaa1ccbcee5b15db92c and found later out that it also works if you put the user into the URL. Using this line in the Windows cmd works perfectly and generates me a new Folder in my Jenkins.

Now i try to do the same thing but from a groovy script. For that i use the following code:

import groovyx.net.http.*  def post = new URL("https://userName:YourApiToken@JenkinsURL:Port/createItem?name=FolderName&mode=com.cloudbees.hudson.plugins.folder.Folder").openConnection(); post.setRequestMethod("POST") post.setDoOutput(true) post.setRequestProperty("Content-Type", "application/x-www-form-urlencoded") def postRC = post.getResponseCode(); println(postRC); if(postRC.equals(200)) {     println(post.getInputStream().getText()); } 

I got this basically from Groovy built-in REST/HTTP client? (i have heard apache Http is deprecated)

Long story short i did not manage to create a folder with the given groovy script. I always get an 403 response (I run the script from windows cmd and inside jenkins with the script console). I also played around with Jenkins-crumb but that seems not necessary because the above cmd command already worked.

So the question is does anyone know what i am missing? why is the groovy script not working but the curl command is? Or has anyone a different approach on how to generate a Folder in Jenkins from a groovy script?

Deleting photo from a desktop folder synced with Drive Backup and Sync deletes from Google Photos?

I have found what I believe is a bug in Google Photos and Google Backup and Sync.

UPDATE: I got this tweet from Google which basically answers the question, though I think it’s still unintuitive at best. If I download a photo from Google Photos to a random synced folder, not explicitly to a folder synced to Google Photos, I would not expect the activity of that new child image file to supersede and control what happens to the original back in Google Photos. I still think people should at least know. I can’t be the only dumb-dumb doing this.

In short, I backup just about my whole computer with Backup and Sync. When I download photos from Google Photos to my computer (which will be a synced folder under Backup and Sync because I backup my whole computer), and then delete them when I’m done, they get deleted from Google Photos. This is bad from at least a UI/UX perspective, and is really bad for my workflow where I have to attach images from my phone to emails written in Outlook.

Note that I was only able to produce it when deleting multiple photos. One seemed to be OK somehow (unless that was an error as well).

Has anyone found this problem? Do you have solutions or intuitive workarounds? Can some of you try this out to prove it to yourselves and see that I’m not crazy? I really think this could be a really big deal for a lot of people and we just don’t know because the photo disappears after we’ve used it.

There are a few typical responses when I bring this up, so here are the standard answers:

  • Tell Backup and Sync to not delete everywhere.
    • When Backup and Sync asks if it should delete a file after you’ve deleted it on your machine, it only asks if it should delete it from Google Drive and not “everywhere.” And certainly not explicitly in Google Photos.
    • I want my backup to reflect the state of my computer. So when I delete a file from my desktop, I want it deleted from the backup of my desktop. If I need an old version, I can dig that up separately in the Trash folder on Google Drive.
  • You said you wanted to email the photo. Share the photo directly from Google Photos, then.
    • I may need to send the photo through Outlook on my work account.
    • Emailing the photo was one example. Perhaps I downloaded the file to crop it for a profile picture.
  • Why do you want to delete the file if you are saving it on Google Photos.
    • Perhaps I downloaded the file simply to crop it for a profile picture. I don’t need to keep the file on my computer forever, especially if I think it’s on Google Photos.
  • Create a special un-synced folder for downloading photos.
    • OK, this is becoming too much. Shouldn’t deleting a photo on your own computer simply not cause you to lose the photo forever everywhere (especially on a service that does not share the same evident folder hierarchy)?

This can’t be just me. Here are a few use cases I’ve thought up or have impacted me directly. These all assume that we backup all or most of our computer through Backup and Sync.

  • Insurance photos: You take photos or your smashed-up car with your phone after an accident. When you get home, you download the album through Google Photos to email them to your insurance agent. When you’re done, you delete the files off your computer. When you follow up in a month and the agent asks you to re-send the pictures, they turn out to be gone.
  • Profile Pic: You have a photo, originally taken with your phone, that you want to crop and use as a profile pic. You download a couple files to test, crop them with desktop photo editing software, and delete the source files since you don’t need them now. It turns out that they all disappear at that delete step.
  • Inspection Reports: If you use your phone from time to time to take work photos, you should be able to download some photos, put them in a report, and delete them so they don’t clutter your computer (or your backup for that matter).
    • I know I had more but I can’t think of them at the moment.

For your information, here is a Google Photos Community thread on it. There is a lot of discussion there.

When I double click a folder in Windows Explorer it opens Visual Studio

Windows 10 x64. When I double click a folder in Windows Explorer it opens Visual Studio.

It doesn’t happen all the time and not always for a given folder.

It happens usually like this.

I am working away in Windows Explorer, then when I double click a given folder I get an error message dialog “An internal error occurred”.

Then I double click the folder again and nothing happens.

Then I click off the folder and on it and can go in.

Then I back out and with the same original folder if I right click several times in a row, the context menu changes each time. Sometimes it has the default action for that folder as 7Zip, then Visual Studio, then no default action, just copy and paste options on the context menu.


Mail going to Spam folder on Gmail, Outlook

I have two digitalocean servers, for hosting websites and send corporate mail (not mass mail, not spam, only message for our clients).

When i trying to send email to Gmail, all email going to Spam folder. Below is Gmail headers

Delivered-To: perepelitsawebproduction@gmail.com Received: by 2002:a2e:5417:0:0:0:0:0 with SMTP id i23csp2822418ljb;         Tue, 19 Mar 2019 04:49:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPcFCzBJEhaHR3DQE1eNy4yhKC0PWF7p/A4IAgf1daRpWZEd+SKMp4g0ov1tHj3ReYPHxx X-Received: by 2002:a1c:7211:: with SMTP id n17mr3164416wmc.32.1552996168677;         Tue, 19 Mar 2019 04:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552996168; cv=none;         d=google.com; s=arc-20160816;         b=LQzBDLZS4qTQod8kFp2WA4kiyEzuIIAi2kGfYnNudHBOe7fl1ZRF7fo2zyTKNxGkgT          Y5rHehl4LzU2XwlVmlI7ZQ2WnRDgN3xOfXHhpzBV5U77ajrd4uPBcd8MSOjcp8UJmu3O          Oe1Yz3mPZ7G8Qdk1axNfP69LXuyLCM9EKyXHWbKOpIEuZgAo7gvIEmbMLELe/VmyS0/A          88OKNfbdmHNPzk1TKshXLdqco6ScHFa/y1UklerUH8lAk6vR0WczgKGfigRkamoT9bjq          NjmiICZY0zJwSfWgAH1Z/0gcqYTzp2DzYDu+zbVU7kV5zYEkyPp84m6eqwu9XHZN2giT          fkMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;         h=message-id:user-agent:subject:to:from:date          :content-transfer-encoding:mime-version:dkim-signature;         bh=32gIWEEwDne7ip/RLaTkRtKLU4bNEWZtDCtjLBDQzD0=;         b=TM7acqMcXMfH4X5mFohFpKlMZjgmvs523pYqNPKeOpMTuZW2f+/SD4rIqIYzbq4JHp          Ynoi1Dixis4YfQ4YyfVHn6xCVSLITTxkyPb/VhGyCXKwZEGYUfREWPOJJNYO9/CqzUWh          3I+q+VQtHU/I+gy+AP3gHVveeOougxsHInOJl+qoWAyEqZwglSo35QgqOzLmyCHYA1pV          gF1+0T8h5SNhRzMUp9mjEm9RPE/cvmFUG3jKGbjHTP1HID6/J8gA1dWbtZN7fcXoI8Pm          PYNAB9laU4yOkPZxNUiBACTIpWnFDUiqrR7U40mmQdKd/VPIHBQMC32PBMgu3RRLOQC/          OeZA== ARC-Authentication-Results: i=1; mx.google.com;        dkim=pass header.i=@moveiton.net header.s=mail header.b=IpPqJXiX;        spf=pass (google.com: domain of anton@moveiton.net designates as permitted sender) smtp.mailfrom=anton@moveiton.net;        dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=moveiton.net Return-Path: <anton@moveiton.net> Received: from server.moveiton.net (server.moveiton.net. [])         by mx.google.com with ESMTPS id h22si1404699wmc.82.2019.         for <perepelitsawebproduction@gmail.com>         (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);         Tue, 19 Mar 2019 04:49:28 -0700 (PDT) Received-SPF: pass (google.com: domain of anton@moveiton.net designates as permitted sender) client-ip=; Authentication-Results: mx.google.com;        dkim=pass header.i=@moveiton.net header.s=mail header.b=IpPqJXiX;        spf=pass (google.com: domain of anton@moveiton.net designates as permitted sender) smtp.mailfrom=anton@moveiton.net;        dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=moveiton.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=moveiton.net; s=mail; h=Message-ID:Subject:To:From:Date: Content-Transfer-Encoding:Content-Type:MIME-Version:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;      bh=32gIWEEwDne7ip/RLaTkRtKLU4bNEWZtDCtjLBDQzD0=; b=IpPqJXiXP/Idqw0TGh70IaPzD e6oW9ouSZwQupP5OVyoYVxG2wbOitDfF1i/uFhsyUBwx4Tn1IlEKygJT2dEH6IUI9uZeLI7CmllGU H9uDQdtUP2wZQQBjrssxtNvuj65XxXus5jmOealcf3REOLFQ+yKLUaVV100za5ynI8k54=; Received: from [] (helo=server.moveiton.net) by server.moveiton.net with esmtp (Exim 4.91) (envelope-from <anton@moveiton.net>) id 1h6DFH-00069y-MZ for perepelitsawebproduction@gmail.com; Tue, 19 Mar 2019 13:49:27 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 19 Mar 2019 13:49:27 +0200 From: anton@moveiton.net To: perepelitsawebproduction@gmail.com Subject: test User-Agent: Roundcube Webmail/1.4-rc1 Message-ID: <6b6b28890536868518317eca5aa3da1f@moveiton.net> X-Sender: anton@moveiton.net 

As i understand, SPF / Dmarc / Dkim is checked and passed successfully. Can you advice whats wrong?

DNS situation is next:

  • MX record going to mail.domain.com
  • Server hostname is server.domain.com
  • PTR is going to server.domain.com
  • In /etc/host I checked, server.domain.com

Whatsapp’s “WhatsApp Video” folder not visible from my PC

I’m using Whatsapp on Nexus 5 (Android 6.0.1) and several folders used by Whatsapp are not visible when accessed from a Windows 10 PC (connected through USB in MTP, file transfer mode).

From my PC “Whatsapp/Media” shows: include 6 folders while when accessed from the phone itself using my storage explorer I see 4 additional items:

  • .Statuses
  • Whatsapp Animated Gifs
  • Whatsapp Audio
  • Whatsapp Video

No .nomedia files inside those directories. Any suggestions?

In Windows 10 can ProgramData/…/SystemData Folder be emptied of contents without consequence?

  • Would like to know if I can safely delete the contents of the C:\ProgramData\Microsoft\Windows\SystemData folder, all folders and files there in.
  • It seems that these folders may be auto generated, and mainly are named by User Account Security Identifier’s, so deleting them may be harmless.
  • Or at least is it safe to delete all files with the del /s star dot star command leaving the sub-folder structure.
  • The purpose is to flush the cache for the lock-screen stored at this location so that the default images at C:\Windows\Web\Screen will come into effect.

Example Code; delete folders and file contents:

RD C:\ProgramData\Microsoft\Windows\SystemData /S /Q 

Example Code; Delete only files within folders:

Del /s /q C:\ProgramData\Microsoft\Windows\SystemData\*.* 

Current Research:

How do you delete all the files but not the directories in a folder?

SU – Retrieve Custom Windows 10 Lock Screen Image

SU – How to override the default Windows 10 lock screen image for all users?

Pastebin – Set Lockscreen for windows 10

ss64 – RD

ss64 – Del

Exclude specific folder from SP sync

After much online research, I believe the answer will be “no,” but I wanted to exhaust all avenues just in case. My question is, can you exclude a specific folder within a doc lib from being synced? The use-case is that there is the same folder within several of our sites who’s contents are GIGANTIC and maxes out memory once a user syncs locally. I know that, once you sync, you can pick and choose which folders to continue syncing from the systray’s “settings,” but is there a way to turn it off this giant folder prior to actually syncing to avoid memory issues? Thank you in advance.