Tag Archives: hard disk

Precious Web reference to configure Ubuntu and mount Pogoplug as “local”disk

It’s a pity that Pogoplug dismissed its official application for Linux some years ago. It was really useful and easy to install. But, as usual, Linux geeks discovered how to solve the matter and mount Pogoplug drives as “local” disks on Linux. I already wrote about this topic in a previous post in 2012.

But recently, after I installed Ubuntu 14.04 LTS,  I had some problems with Pogoplug and I realized that the way I previously adopted was not able to mount Pogoplug as local disk. I searched on Internet and I found a good post  that is really self explicative about this topic. With a bunch of minutes I was able to connect again Pogoplug to my computer as local disk and, after some tests, I must say that the solution described by Linerd its really effective and stable. 

Good work Linerd!



Advanced use of – Find -: a handy command line tool for Linux

This post is basically directed towards new users of Linux which are not much familiar with command prompt. This is a small but comprehensive article about ‘GNU find’ .
Find Your Lost Files!
Let’s start from a simple example:
Suppose you want to search for a file named ‘master.txt’ in your home directory.
Open the Terminal and issue the following command:
find . -name “master.txt”
‘find’ will immediately show the results.  If ‘find’ does not show any result, this means that the file, in our case, ‘master.txt’, does not exist.  It is not always the case that you want to find something in you home directory.  The lost/desired file may be anywhere in your computer.  Suppose you want to find a file named ‘space-01.jpg’ and you only know that is located somewhere in /usr directory. You can find it by issuing following command in Terminal:
find /usr -name “space-01.jpg”
and ‘find’ will tell you that this is located under /usr/share/backgrounds.
Using Wildcards
Maybe you want to search for a file but you don’t know its exact name?  Don’t worry!  You can still locate the file using ‘GNU find’ and wildcard will help you in this regard. Wildcards are a way of searching files when you don’t know much about your desired file.
One of the commonly used wildcard is asterisk (*).  Lets consider an example to better understand the things.
Suppose you want to search a file named ‘Jumping_Flowers’ but you only remember the ‘Jumping‘ part of the file name.  So issue the following command in Terminal:
find . -name “Jumping*”
And it will display all the files starting with the word ‘Jumping’.  You can use asterisk (*) anywhere with a file name.  For example:
find . -name “*Jumping*”
And it will display all the files which contain the word ‘Jumping’.
Here are some more examples of use of a wildcard:
find . -name “Jumping*Flowers*”
find . -name “*Jumping*Flowers.mp3”
Searching For Different File Types
Sometimes you are not looking for some specific file but you are looking for a group of files.  For example, you may be looking for all the .txt files in your home directory.  To find all the .txt files, you will give the following command in Terminal:
find . -name *.txt
In case of mp3 files, the above command will be:
find . -name *.mp3
When You Want to Search with Respect to Time
If you want to search for files by the last time they were accessed, you can use -amin flag with ‘find’.  In this case you have to put a minus (-) sign before the time.  The time here is in minutes.  In order to search for .doc files which were accessed in last 10 minutes, you will give the following command:
find . -amin -10 -name “*.doc”
Similarly, to search for .doc files which were modified in last 20 minutes, you will use -mmin option as follows:
find . -mmin -20 -name “*.doc”
Search For Files which are Eating Your Hard Disk
There may be files on your system which are not only huge in size but also located obscure places.  You may also may not know when they were last accessed.  You have to use -size option with ‘find’ to locate them.
Let’s see how we can do this:
find . -size +100M
It will list all those files which are greater than 100 Megabytes.  You can replace ‘M’ with ‘G’ (for Gigabyte) or with ‘k’ (for Kilobyte)
Copy, Move, or Delete Unwanted Files on the Fly
Copy – ‘find’ can also be used to copy or backup your files.  You can use ‘find’ to copy certain files from one location to other with one simple command.
Suppose you want copy all of your mp3 songs from your home directory to your Windows Partition.  Enter the following command in Terminal:
find . -name “*.mp3” -exec cp {} /path/to/Windows_Drive \;
And all of your mp3 files will be copied to the desired Drive/Folder.
Move – There may be situations that you quickly want to move all of your document files from your Hard Disk to your USB to keep them safe.  To move all of your documents from your home directory to your USB, you will issue the following command:
find . -name “*.doc” -exec cp {} /path/to/USB \;
Delete – Suppose there are a lot of .tmp files and you want to get rid of them at once.  Again ‘GNU find’ is at your service and does the work for you.  Issue the following in Terminal and all of the .tmp files are gone…
find . -name ‘*.tmp’ -exec rm {} \;
Which Files are Owned by You and Which Are Not?
There may be a situation when you want to know that which files in some other directories (or even in your home directory) are owned by some other user of your computer.
Suppose there is another user named ‘blackstar’ with whom you are sharing your PC.  Now you want to know that which .doc files in Windows Directory is owned by this user ‘blackstar’.  You can do this by issuing the following command:
find /path/to/Windows_Drive -user blackstar -name “*.doc”
Just replace ‘blackstar’ with your username to search on your system.
Direct the Output of ‘find’ to a File
You can save the results of your ‘find’ command to a text file which will allow you to examine the results in detail at some later time (or to create playlist of your songs).  For this purpose a greater than (>) sign is used (referred to as “piping the command”).
Suppose you want to save the list of all the mp3 songs in your home directory to a text file (which you can later share with your friend), you can do this by:
find . -name “*.mp3” > mp3.txt
It will save the complete path to all of your mp3 songs in the file named mp3.txt. AddThis mp3 link

How to free some hard disk space and substitute Acrobat Reader without giving up any features

This week, in our Freeware Page, we posted some thoughts on pdf readers. Some days ago I had some problems with my office Windows XP PC because the hard disk space was ending. As usual, I cleaned up the disk using CCleaner and I earned ca. 200MB of space and proceed to compress  the hard disk. Unfortunately, this strategy did not solve my problems so I decided to have a deep look into the numbers of Kb each program occupied on the HD and I was surprised in noticing that Acrobat Reader needs more than 200MB of HD space to work. Then I focus my attention on Foxit Reader and I discovered that it occupied more or less 7MB of HD space. Obviously I disinstall Acrobat Reader and earned ca. 190MB of hard disk. Today, I am not able to affirm that I solved all my problems with my PC but I am confident that, with an intelligent use of CCleaner, I will able to go ahead for another couple of months without contacting the administrator for a new HD and stop my work for (sic) at least a couple of days. Something to think about…. AddThis mp3 link

How to easily check HD health using a cross platform software: GSmartControl 0.8.3

GSmartControl is a multiplatform (Windows, OS X, Linux) freeware drive health inspection tool which is very useful in all that case when you think something is not working perfectly on your HD. Today, in our Linux Page (in Spanish) we have posted a brief comment about this software which basically is the graphical user interface for smartct. The program is very intuitive and easy to use; it automatically detects all your internal HDs (with some external USB disks we had some problems because they were detected as unknown) and let you decide if you want to activate the SMART feature. This particular feature let you “predict certain kinds of failures with certain chance of success” so you have a better chance to avoid HD crashes and all the consequent data loss. If you prefer, clicking on the “Enable Auto Offline Data Collection” the HDs will be tested every four hours without impacting your CPU performance. I would like to focus your attention that GSmartControl is very well developed and it is possible to download many “personalized” versions for all the main Linux distributions, OS X and Windows. Last but not least, do not forget that SMART could predict some HD crashes but it is not 100% safe; for this reason we strongly recommend you to backup your PCs, at least every week! AddThis mp3 link