Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Another curiosity of my situation is that when this initially occurred, by desktop and folder preferences were all as normal. The only difference was that the folder panel showed Documents, Pictures, Music, Video... etc, with red x. And when I clicked, it said those locations were not available.
In addition, the Trash was still full. In fact there was some salvageable files there. Now, however, perhaps after a reboot, the Trash is empty. I definitely did not empty the Trash.
The only difference was that the folder panel showed Documents, Pictures, Music, Video... etc, with red x. And when I clicked, it said those locations were not available.
Yep, that's what the Red 'X' means - whatever the icon points to is now corrupt or missing.
Re Trash; it may be in a cfg setting, but I would never use/trust Trash, if my system even has that (not in front of it right now).
Just make backups regularly and assume(!) trash will be emptied during a reboot ...
If it's not, it'll eventually fill the disk ...
As you've discovered, deleting stuff needs to be planned carefully.
You can usually delete oldest log files under /var/log/... , but still research each one first.
Using a gui is tricky because each app has its own rules and you'd need a someone who knows that specific tool..
(I don't use gui apps for this)
Can I (highly) recommend you just open up a std terminal session, where the cmds are more universal?
Quick n dirty / temp soln is to cd into /var/log (as root/sudo) and remove some of the oldest dirs/files. eg if you have 5 'alternatives.X.log' entries, I'd del the oldest 3, keeping the newest 2.
You can check the dates with 'll' but the ones with the lowest nums (8, 9, 10) would normally be the oldest.
Rinse and repeat for others.
HOWEVER, the best soln is to edit (as root) the log rotation cfgs in /etc/logrotate.d/ and have the system keep it under control for you, or you'll be back in this same position, eventually.
As an example
Code:
cat bootlog
/var/log/boot.log
{
missingok
daily
copytruncate
rotate 7 # <--- this says how many to keep; edit to eg 2
notifempty
}
Here's just a simple thing to check.
If you were clicking folders a lot while you were looking around, it's ASTONISHINGLY easy to accidentally click-move-drop a whole folder into another without even realising it. I've done it many times. Your HOME folder could be in a subfolder somewhere. Searching for something like .Desktop file could find it.
HTH
A
If that is what was done then the use of
Code:
find /home -name USERNAME
may reveal it. Although much less likely for it to be outside of /home it could also be done starting the search from the root ( / ) folder
Note that your post has no formatting.
To show us what things look like on the screen and to make it more readable please consider posting text inside code tags so the data is more easily seen and recognized. It also helps if the actual command is the first line posted.
I added the code tags to your quote above so you might see the difference.
RECAP
Okay - here's a rundown on what has happened so far.
1. I wanted to clear up disk space. So I searched for ways to purge old linux packages and software. I didn't want to blindly delete stuff that I felt I didn't need.
2. The last time I deleted stuff, and moved things between partitions, Windows stopped working. Added to that, I have since had to load Linux by entering the following code:
Code:
set root=(hd0,4)
linux /boot/vmlinuz-x-xx-.x-xx-generic /root=/dev/nvmexxxx
initrd /boot/initird.img-x.xx.x-xx-generic
boot
3. A couple of weeks back I tried some commands, which I found on some reputable forums. As far as I can recall I used:
Code:
sudo apt-get autoremove
I manually uninstalled packages using the Software Manager.
Code:
sudo apt-get autoclean
Code:
sudo apt-get clean
Code:
jounrnalctl --disk-usage
-(possibly).
Code:
sudo apt-get purge "*flatpak*"
-(i think, although I thought it was snap, not flatpak).
4. I executed photorec. Recovered quite a lot of files, many encrypted. Although a lot are website and app elements.
5. I ran Boot Repair in an attempt to regain access to my media.
6. At this point, I believe that my Home folder is a new home folder and not the original one.
6. In an attempt to free up some space for recovery, I move this file: 'crtmpserver', to a memory stick. I put it in a folder called 'RETURN TO media mint 510adab1-194c-4502-80e3-a0a468ca2366 var log', so that I knew where to put it back.
7. At some point I think I renamed the UUID of one of the partitions, so the partition listed above no longer exists.
8. I've tried moving boot files to the first partition.
CONCLUSION
Now I have two issues.
Linux won't boot, no matter what I do.
I can access the encrypted folders but it:
(a) just gives me access to the new home folder.
(b) when it mounts the encrypted folder at /tmp/xxxxxx, the folder is empty.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.