Linux MintThis forum is for the discussion of Linux Mint.
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.
Over the past two weeks I have noticed Mint slowing down. It has got to the stage now Mint is so slow, it takes a long time to start up and running any programs take a very long time to open – Thunderbird, Firefox, Libre Office Writer, to name a few.
I’m having to post this from Windows as Mint is almost unusable. When I’m typing in Mint, sometimes I have to wait while the text on the screen catches up with what I’ve already typed on the keyboard – does that makes sense?
I thought perhaps I needed to defrag the drive, as on Windows I have done before.
I googled ‘defrag linux mint’ which gave conflicting results. Some said it wasn’t necessary at all as Linux was smarter than Windows. Others that told you how to run a defrag program.
Then it went on to say how dangerous it could be to defrag a disk that wasn’t unmounted? That’s when it lost me, I have absolutely no understanding of mounted or unmounted. It sounds like something you do with a picture on the wall.
The defrag program it suggested was e4defrag, but that has to run from terminal. If I do need to defrag, is there a gui option? I really am very uncomfortable using terminal, I just don’t understand one bit what I’m doing in there.
Perhaps there are some other checks I need to do which might show why Mint is running so slow?
If anyone does respond, could you please keep any technical talk to almost zero, I’m not good on that. Thanks.
Defragging probably won't help. Modern Linux file systems manage fragmentation very nicely on the fly; there is always some fragmentation on any file system, but it should not be an issue if you are using a contemporary ext3 or ext4 of a more recent Linux file system. Partially because of this, I am not aware of any GUI defragmentation tools for Linux, though there may be some out there somewhere.
Do you recall what file system you chose at time of install? (If not, the command
Code:
cat /etc/fstab
will display that information).
You can use a tool such as top or htop to see what applications are soaking up your CPU cycles. Open it in a terminal, check the readings, tuck it off to the side, and, as the machine slows down, see what's changed.
You can also save the output to a file with a command such as
Code:
top > [somefilename]
Note that, if you do that, the output of top will not appear in the terminal, as it will be redirected to [somefile].
If would also help to know the make/model of the computer, the CPU type, the amount or RAM, and the desktop environment (e. g., MATE, Cinnamon) you are using. Also, did you make any significant changes to the machine (e. g., install any programs) about the time this started?
That will run forever. Rather than that, open a terminal and run this - it will run for about 10 seconds and create a condensed version of the output in a file top.txt. Post that file here
Defragging probably won't help. Modern Linux file systems manage fragmentation very nicely on the fly; there is always some fragmentation on any file system, but it should not be an issue if you are using a contemporary ext3 or ext4 of a more recent Linux file system. Partially because of this, I am not aware of any GUI defragmentation tools for Linux, though there may be some out there somewhere.
Do you recall what file system you chose at time of install? (If not, the command
Code:
cat /etc/fstab
will display that information).
You can use a tool such as top or htop to see what applications are soaking up your CPU cycles. Open it in a terminal, check the readings, tuck it off to the side, and, as the machine slows down, see what's changed.
You can also save the output to a file with a command such as
Code:
top > [somefilename]
Note that, if you do that, the output of top will not appear in the terminal, as it will be redirected to [somefile].
If would also help to know the make/model of the computer, the CPU type, the amount or RAM, and the desktop environment (e. g., MATE, Cinnamon) you are using. Also, did you make any significant changes to the machine (e. g., install any programs) about the time this started?
OK, this is the result, whatever all the goobledegook means:
Code:
~ $ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda6 during installation
UUID=fc8ebdee-1c9b-4c3f-979d-6c83f11d534d / ext4 errors=remount-ro 0 1
# swap was on /dev/sda7 during installation
UUID=1e6c4cf2-5e03-49b0-9d23-ffe3b8ea8681 none swap sw 0 0
UUID=B03AFBF43AFBB606 /media/watt/Data ntfs rw,auto,users,exec,nls=utf8,umask=003,gid=1000,uid=1000 0 0
I'm running Mint 18.1 Cinnamon 64-bit. I thought that was visible to users, below my name?
As suggested by syg00, I also ran:
Right, I've just looked in the Home folder, and it is in there. I don't know why the other commands didn't seem to find it.
Here's the result of top.txt:
Any time something like that fails, or you get a permission issue, prepend "sudo " - that gives you temporary access to just about everything. It will ask for your (logon) password.
Code:
sudo updatedb
Note you can (and should) post output in [code] tags to retain the layout - you can edit that post above to add them.
Looking at that, firefox is the bad boy - try shutting that down and see if things improve. Small amout of wait for disk as well - probably that torrent causing that.
Any time something like that fails, or you get a permission issue, prepend "sudo " - that gives you temporary access to just about everything. It will ask for your (logon) password.
Code:
sudo updatedb
Note you can (and should) post output in [code] tags to retain the layout - you can edit that post above to add them.
Looking at that, firefox is the bad boy - try shutting that down and see if things improve. Small amout of wait for disk as well - probably that torrent causing that.
Thanks for replying again.
It asked me for my password, but still didn't appear to do anything?
I do normally put pasted text from terminal in [code] tags. I didn't this time as it was from a text file. Perhaps I'm just too pedantic?
I'll try closing Firefox and see what happens, thanks.
Updatedb does as it says - updates the database of filenames. To search for a name in that database, use "locate" as above.
There is a help system called man (manuals) - so "man updatedb" will give info on the command. A little terse in this case. It also has a "see also" to direct you elsewhere. Use "q" to quit - this is the common way to exit terminal commands.
Edit: updatedb only needs to be rerun to pick up new/deleted files. I run it when I remember; say every couple of weeks. It used to thrash the I/O system and system cache, but is better these days - still has an effect on the system tho'.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.