Test Your Storage Drive’s Read Speed

One of the most frequent things you’ll do is read data from disk, so why not test your storage drive’s read speed? In this article, we’ll use an application we’ve used before. This shouldn’t be a very complicated article.

We store data on drives, or disks if you prefer. Most of us don’t use disks as our main storage devices. We do use disks for backups or storing large amounts of data, but we largely use SSDs these days. Some of us even use NVMe M.2 SSDs to store our data. The latter is currently the quickest you’re likely to encounter as a consumer.

The old spinning platters we used (though we’ve used lots of forms of magnetic storage) are typically referred to as HDDs (Hard Disk Drives). The SSDs (Solid State Drives) have no moving parts and are much faster. The NVMe M.2 SSDs are faster still.

If you’re suffering from some bottleneck, you might want to diagnose that. You might just be curious. It is also possible that you just purchased new hardware and want to see if the storage device reaches the advertised speed.

The tool we’ll be using is hdparm. This works fine with USB thumb drives, HDDs, regular SSDs, and even NVMe SSDs. It’s a complex application with a lot of options. I’ve covered some features before.

How To: Show Your Hard Drive Specifications In The Terminal

So then, let’s learn about this hdparm…

hdparm:

It should be noted that this hdparm application should be installed by default. It should also be mentioned that hdparm is a terminal-based application. You can verify that hdparm is installed with the following command:

If you then check the man page (with man hdparm) you’ll see that hdparm is described quite nicely like this:

hdparm – get/set SATA/IDE device parameters

If hdparm is not installed, you can surely find it in your package manager. 

As you can see, hdparm is the right tool for the job assuming you want to test your storage drive’s read speed. It’s also the right tool for a bunch of other jobs, but we’ll just be covering the read speed today.

Test Your Storage Drive’s Read Speed:

As I mentioned above, this hdparm application is something you use in your terminal. I suspect my regular readers will have guessed that. If you’re new to the terminal, more often than not you can open your default terminal by pressing CTRL + ALT + T.

With your terminal open, let’s identify your storage drives with this command:

You’re interested in the bits that start with /dev/<drive_ID> as those are the drives you’ll be able to test. 

NOTE: You should run these tests several times and average them, and you should do so while the system is otherwise idle. That will give you the peak results.

We’re interested in two flags, as they represent two tests. The -t flag tests the read cached. The -T flag tests the drive’s buffered read timings. You’ll often find the first test is fairly similar throughout the different drives and that the cached test shows the most differences. If those two terms, cached and buffered, confuse you, here’s a link about the differences between cache and buffer as far as the hdparm application goes.

You’ll need elevated permissions for this, so the command looks like this:

Or, as an example for many of you, the command might look like this:

That command will test both the cached read speed and the buffered read speed. These tests are important because you’re using a smart operating system that puts things into the cache and buffer that are likely to be read from the drive. So, the command listed will test both. You can split them up of course.

I decided to get you some examples:

Some Quick Read Speed Tests:

This is the internal SSD on a desktop:

Next is a USB 2.0 device plugged into that desktop:

Then we have an external HDD plugged into a USB 2.0 port on that desktop:

For comparison, this is an NVMe M.2 SSD:

As you can see, the internal SSD is quite fast. The thumb drive is the next quickest. This is followed by the external drive that’s just a spinning platter drive. 

Then, of course, you can see that the NVMe M.2 SSD is so much faster. That’s not even the fastest SSD out there. There are faster NVMe M.2 SSDs that don’t cost a lot of money. The prices have come down these days. You can even get a PCIe card that lets you mount an NVMe M.2 SSD if your motherboard doesn’t already support it.

Closure:

Should you want to get some drive benchmarks, you can certainly use hdparm to test your storage drive’s read speed. This isn’t something complicated and most anyone can figure it out. All you need to do is follow the directions carefully and in order. I do try to explain things as I go along.

There’s a lot more to the hdparm application. I encourage you to check the man page. There are probably another half-dozen articles that can be written about hdparm, so you’ll likely see this application again in the future. I doubt I’ll do another one too soon, as I like to space things out and not get too repetitive. 

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Install Flatpaks In Lubuntu

This shouldn’t be a very long article and will apply to other distros, but this is how you install Flatpaks in Lubuntu. This seems like a good article to write as it’s something tucked into my notes and something I’ve not written about before.

This article applies to Lubuntu. It may apply to other distros, especially those in the Lubuntu family. In some cases, such as Linux Mint, recent versions come with Flatpak support. In those cases, you don’t need to do anything special, you can start using Flatpaks as soon as you’d like.

What Are Flatpaks:

Flatpak is a utility for software deployment. It was once known as xdg-app but has used the Flatpak name for going on a decade. This is not something new, even though it has recently grown in popularity. They’re pretty handy.

The thing that makes Flatpaks special is that they run in a sandbox. That means they don’t interact with other software on your system, they run in their own isolated memory space. This is good for security.

They’re also good for easy installation. Not only do they run in an isolated environment, they are self-contained. With Flatpak being what it is, you don’t have to worry about dependencies.

If a Flatpak does need to integrate with the system, this will be set by the developer. The advanced user can change those permissions, though that may cause breakage should you restrict the access levels.

There’s also a central repository that you can use. While you can get a Flatpak from anywhere, and you can add your own repositories, the most common use will be from a central repository which does things like providing updates to the packaged software. 

This is good for developers who want to distribute their software while not having to do so for the various package managers. Rather than a .deb or .rpm version, they can upload and update a Flatpak that’s stored in a centralized repository.

Pretty neat!

Install Flatpaks In Lubuntu:

For the sake of this article, Flatpak is the software type and the delivery mechanism, while Flatpaks are the applications installed via Flatpak. Make sense? I hope so because that’s what I’ve got.

I should probably have mentioned that earlier in the article…

Anyhow, to install Flatpak you’ll need an open terminal. As you’re using Lubuntu, you can open your default terminal by pressing CTRL + ALT + T on your keyboard.

With your terminal now open, let’s install Flatpak so that you can install all the Flatpaks your heart desires. To do that, run this command to install Flatpak:

That will install Flatpak, but you will then want to enable the Flatpak repository. That’s another easy command that you can cut and paste:

Next, you’ll need to reboot. Yes, this one should have a reboot to work properly. Run this command in the terminal:

That’s all you need to do.

Installing Flatpaks:

Now you have enabled Flatpak and you’ve added the default Flatpak repository. You can head to the centralized repository and start browsing for interesting software. You do that here:

Flathub, the Flatpak Repository

I’ll give you an example, to make it easier…

Let’s say you want to install ONLYOFFICE as a Flatpak.

Well, you browse/search for it and end up at the ONLYOFFICE repo page.

Once you’re there, you’ll see an “Install” option in the upper right section of the page. There’s a down-arrow next to it, which is the easiest method. Click that and run the command prompt in your terminal.

In this case, that command prompt would be:

You can then run the application with this command:

No, you shouldn’t need to run the program through the terminal. Because you rebooted, added Flatpaks should appear in your application menu in the appropriate category section. 

Also, it’s a bit more of an interactive process when you’re installing Flatpaks through the terminal. You’ll be given a few options along the way, though I just accept the defaults (by pressing the Y key) and call it good.

You’ll also notice that the applications are much larger. If you have slower internet, you’ll notice this. This is because the Flatpaks are isolated and come with the required dependencies. Because of this, the packages are quite a bit larger.

Once in a while, I’ve noticed that the application won’t appear until a reboot happens. If you run the terminal command once, that seems to help it, and then appears in the application menu. It’s not perfect, at least not here, but it’s definitely ‘good enough’ and it’s a great way to get sandboxed software that doesn’t require hunting around for dependencies.

Closure:

So, that’s how you install Flatpaks in Lubuntu. It’s also probably how you install Flatpaks in ElementaryOS, Kubuntu, Xubuntu, etc… However, if you’re installing Flatpaks in Ubuntu there’s an extra step you can take that lets you integrate Flatpaks better with the GNOME desktop environment.

If you’re using Ubuntu, you can add this command before the reboot step:

I believe that will add Flatpaks to your regular software store, that is the GUI one where you’d go to add software. I’m not sure because I don’t use Ubuntu, but that’s what the command looks like it will do. I’d normally not share any code I haven’t used myself, but I took the command from Flatpak’s site, which makes me think it’s correct.

Anyhow, Flatpaks are easy to install and run more securely. If your OS changes underneath, this won’t matter. The software comes with the appropriate dependencies. Once you’re more familiar with the software, you can change the permissions if you want. I’ve yet to find a single reason why I’d want to modify the permissions – but it’s possible.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Short: Clear Linux Mint Notifications

This is another short article, as I continue exploring the format, and is simply about how to clear Linux Mint notifications. You can do so graphically, or you can do so with a keyboard.

I should be specific. This is for Linux Mint Cinnamon Edition.

When you get an email, when you have a notice from your email client, or have scheduled some system prompt, you might get a notification. These notifications show up in your system tray.

They look like this:

Notifications from Linux Mint.
See? I even drew an arrow for you! In this case, there are three!

These notifications show up with regularity if you have a lot of email accounts that get constant notifications. They may show up for other reasons.

If you want to use a GUI, just click the notification icon and clear it. That’d look like this image below, and it’s nice and simple:

you can use a GUI to clear notifications from Linux Mint.
This is probably how most of you will clear notifications from Linux Mint.

On the other hand, if you’re pretty sure there are no notifications worth reading, you can always just clear them out with the keyboard.

Clear Linux Mint Notifications With The Keyboard:

If you want to clear Linux Mint notifications with the keyboard, it’s remarkably simple. It isn’t made clear, thus you get this short-form article.

To clear those notifications you simply press the following:

SHIFT + SUPER + C

Now, if you’re unsure, the ‘Super’ key is often labeled to be the ‘Windows Key’. It may say ‘WIN’ on it or it may have the Windows logo emblazoned on it. With your ‘standard’ US keyboard layout, it’s the key on the left between the CTRL and ALT keys.

This could, on Apple keyboards, also be labeled as the CMD key.

But, the ‘super key’ came first. It was an MIT (GO BEAVERS!) thing. If you don’t have anything better to do, read about the Super Key on Wikipedia. The WinKey and CMD key came later in life.

Anyhow, now you can clear Linux Mint Notifications with your keyboard!

Closure:

I’m not sure if I like this short format. I normally have quite a bit to say, even if it’s mundane. There’s a lot to be said about the tools we use. At the same time, there are plenty of meaningful tips that just don’t warrant writing a full article.

So far, exactly one person has opined on the matter and they claimed to like the short articles. A few days later, they also offered the opinion that they liked the longer articles. Given their comments, I’m going to have to assume they also like the regular articles and just like my articles. I’m okay with that, but it’s not exactly information I can act on other than to just keep doing what I’ve been doing.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Yet Another Way To Check Filesystem Space Use

Many tools do the same thing in Linux and this is just another way to check filesystem space use. This one isn’t all that special, it’s just another way. If you want to check your filesystem usage (basically, how much free space you have used on your storage devices) this article can help you with that.

This shouldn’t be a long article. I’ve written others on the topic. It’s safe to assume that you know what a filesystem is. It’s the system your hardware uses to store data if you don’t know. There are many types, from Ext3 to ExFAT. They are all filesystems used to store data.

It should go without saying that you can fill up your storage space and might want to know how much space you have available. Well, if you want to find that information, this is an article for you!

This is another application. There are others.

Monitor Disk Usage With GDU
Show Disk Usage With ‘ncdu’
How To: Check Disk Usage With ‘df’

Those are just a few applications that will let you monitor your filesystem’s usage. I’m sure I’ve covered others.

This pydf is a Python script, but we’ll be using Lubunt and installing pydf just like we’d install any other application, albeit in the terminal. I will point out that pydf has a colored output, which is nice.

I can’t say that this pydf is available in other distros, but it’s available in Lubuntu. As Lubuntu is Ubuntu, that means it’s available in Ubuntu. It is also likely available in Debian. I think you’ll find that pydf is also available in the downstream distros like Linux Mint. I did provide a link above that will take you to the project page.

Check Filesystem Space Usage:

As I’ve done the work in Lubuntu, these directions will be for Lubuntu. You can adapt them easily. In Lubuntu, you can open the terminal by pressing CTRL + ALT + T on your keyboard. That will open the default terminal.

With your terminal now open, you can install pydf with the following command:

If you want to check the man page (say with man pydf), you’ll find that there isn’t one. If you’d like to view the pydf’s help file, try this command:

Once you’ve done that, you’ll see that using pydf is quite simple. If you just want to run the program to check filesystem space use, then just run it in the terminal like so:

If you want the output in ‘human-readable’ format, you can add a -h flag where bits are divided by 1024, or -H which means bits are divided by 1000. The choice is up to you.

Likewise, if you want to see even the zero-byte filesystems (the special filesystems that you don’t work directly with), you’d run this command:

Additionally, there’s a -l flag that limits the output to just the local filesystems. If I combine them for my preferred output, I get this:

Here’s an example output:

As you can see, there are a bunch of loop devices which are Snaps, which is perfectly normal for many Ubuntu-based systems. You can also see that I’ve used slightly more than half of my drive space and clever observers would notice that the drive is an NVMe SSD.

Closure:

So, that was a quick and easy article about how you can check filesystem space use, specifically in Lubuntu but easily applied to other distros. There are many ways to accomplish this task in Linux, which means this is just one among many such tools. It shouldn’t take too long to learn how to use pydf if that’s the tool you want to use.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Gather Storage Disk Information With ‘smartctl’

This will be a fairly universal article, useful for various distros, for those who want to gather storage disk information with smartctl. This is not a very taxing article, and more could be written, but we’ll simply be using smartctl to gather basic storage device information.

Habit means I want to type ‘hard disk’. I’ll refrain from doing so. I guess I could call them ‘storage drives’ but I’m just going to call them ‘storage disks’, or ‘disk’ when I am referring to the singular.

This isn’t going to get you information about the health of your storage disks or anything like that. Depending on the disk, it will give you information about things like the physical size, trim status, serial number, RPM (for spinning disks), and things like that.

The tool we’ll be using is smartctl, but that’s installed by installing smartmontools. This is going to be an easy install for many distros and I’ll try to detail that as best as I am able.

smartctl:

The tool we’ll be using is smartctl and it’s a terminal-based application. This tool is useful for a variety of things. We’ll just be gathering basic information about our storage drives. 

If you had smartctl installed already, you could check the man page. Doing so would reveal that the application is described like so:

smartctl – Control and Monitor Utility for SMART Disks

I suppose this could be considered controlling the drives (they’re not all disks anymore) but it’s definitely the tool for the job. Trust me on this! I wouldn’t steer you wrong, at least not intentionally. Oh, I do make mistakes, but they’re mostly harmless.

We’ve previously used this tool. Here’s a couple of articles for you:

How To: Check A Disk For Errors
How To: Use S.M.A.R.T. To Check Disk Health

So, in the weirdness of weirdness, if you want to use smartctl, you have to first install smartmontools. So, let’s cover that…

smartmontools:

First, you’re going to need to install smartmontools. We’ll cover how to do this, but it will be done via the terminal. You can use your GUI installer or you can (more often than not) just press CTRL + ALT + T and your default terminal will open.

With your terminal now open, pick the correct command to match your distro:

Debian/Ubuntu/etc:

OpenSUSE/SUSE/etc:

RHEL/CentOS/etc:

Arch/Manjaro/etc:

If you use a mainstream distro, one of the above commands should install smartmontools and give you access to smartctl. There are other distros out there, but I think I’ve covered those appropriately.

Find Storage Information In Linux:

From here on out, the rest is pretty easy. With smartmontools installed, you can check the man page with this command:

The flag we’re interested in would be the -i flag.

Before we go any further, we must first identify the disks we want to learn more about. For that, we’ll run the following command: 

Here’s an example output:

We’re not interested in partitions. We’re just interested in physical disks. (Now that I’m this far through the article, I should have stuck with ‘drives’ instead of disks.) 

If you pay attention to the output, you’ll see that the information we’re after is stuff like sda, sdb, or sdc. Those are all in the /dev/ directory which means that we can check storage disk information with this syntax:

Or, to provide an example…

This is a pretty good way to gather storage disk information. Here’s an example of the output from the previous command:

See? All sorts of information is available behind a simple terminal command! This is even something you can memorize in just a few minutes.

Closure:

I’m not sure when you’ll want to know this information, but it’s information and it is information that’s easily available to you. You simply need to install an application and run the commands listed above. I’m sure you can figure this out. 

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Subscribe To Our Newsletter
Get notified when new articles are published! It's free and I won't send you any spam.
Linux Tips
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.