Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 435  / 3 Years ago, sun, may 23, 2021, 8:19:00

I just did this



VBoxManage export foo_to_be_export --output bar.ova


But then I forgot to setup the default path. However, it shows it's 100%. I couldn't find this image now.



I tried



sudo find / -name bar.ova
sudo find . -name bar.ova


and none finds anything.



The first one seems to take forever (8 mins already...) so I just stopped it.



Does anyone know the default path? How can I find out?


More From » virtualbox

 Answers
7

Doing find on / will search everything on your computer, including any mounted drives. To prevent this from happening, run:



find / -xdev -name bar.ova


By the way, you only need to run it with sudo if you ran the VBoxManage --export ... command with sudo. Otherwise, it's extremely unlikely that VBoxManage could have created a file somewhere you can't read from. You'll get plenty of "access denied" messages running find on / without sudo ...but that's not really a problem. If you want to log the results (but not error messages) to a file in your home directory, you can do this:



find / -xdev -name bar.ova | tee -a ~/find-results.log


If you have a separate partition for /home (which only happens if you set it up that way when you install Ubuntu, or deliberately migrate /home to a separate partition after installation), then find on / with -xdev won't search /home (which contains your home directory). The simplest and easiest solution to this is to do a separate find operation on /home:



find /home -xdev -name bar.ova


Or just on your home directory in /home, if you don't think you could've put it in another user's home directory:



find ~ -xdev -name bar.ova


You may want to leave off -xdev in these cases, though it's possible you (or other users) have FUSE or GVFS shares mounted inside home directories. (It's also possible a file got saved into one of those shares...)



With -xdev, when running find on /, it will still take a while, but it will complete eventually.



Something else you may want to try is to run sudo updatedb, wait for that to finish, and then run locate bar.ova.


[#37784] Monday, May 24, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tonhorn

Total Points: 196
Total Questions: 118
Total Answers: 95

Location: Vanuatu
Member since Fri, May 13, 2022
2 Years ago
tonhorn questions
Tue, May 10, 22, 12:01, 2 Years ago
Sat, Dec 18, 21, 06:23, 2 Years ago
Thu, Jun 16, 22, 04:03, 2 Years ago
Fri, Apr 1, 22, 05:23, 2 Years ago
;