I may have left a file on one of my qubes
I do not know which qube it might be on
I have lots of qubes, and I can’t be sure that I won’t miss a qube (I may have a problem)
I would like to know if the file is lost, or if it’s just buried somewhere, before I go through the tedious process of re-creating the thing
Please can y’all let me know how to search across all qubes for a file?
It would need to be from dom0, but I can’t find anything that looks like a “search across all qubes” thing anywhere…
Thunar File Manager only lets me search my current folder for a file
If you want to search across all your qubes for the file (assuming it resides somewhere in /home/user in that Qube, you can paste this into a terminal in dom0, replacing FILENAMEHERE with the name of the file you’re looking for:
If successful, you will see the name of the qube get printed, followed by the location of the file, in red. Otherwise, just the name of the searched qube will get printed.
If you have a list of qubes to search through, it can be simplified to this, replacing QUBENAME# as you see fit:
Warning: this little one-liner script will start each qube sequentially and then shut it down. If you’d rather it did not shut the qubes down, remove the qvm-shutdown "$qube"; part.
Warning 2: You shouldn’t paste stuff that a stranger tells you to into dom0 if you’re not sure how it works :). If you want, you can wait for someone to confirm that I’m not trying to break/hack your system before doing this.
sudo time qubesctl --max-concurrency=2 --all --show-output cmd.run “find -name `‘*file*’”
works as expected across all non-minimal qubes. Thank you
(without sudo, I get: fedora-42-minimal: ERROR (exception No such domain: 'disp-mgmt-fedora-42-minimal'))
Sadly, I did not find my files (), but it worked for other file names, so you get the green tick ()
FYI, I also get
local:
debian-13:
/usr/lib/python3.13/site-packages/salt/utils/jid.py:19: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
return datetime.datetime.utcnow()
/usr/lib/python3.13/site-packages/salt/client/ssh/__init__.py:1595: DeprecationWarning: ‘maxsplit’ is passed as positional argument
stdout = re.split(RSTR_RE, stdout, 1)[1].strip()
for every qube searched, so something might need updating?