Feeds:
Posts
Comments

Archive for the ‘Essentials for Newbies’ Category

Caja is a great file-manager, but one unfortunate limitation is that you can’t customise the toolbar in the Preferences dialogue. However, you can in fact add new buttons, and remove unwanted ones, as I’ve illustrated in a bunch of tutorials.

While I’ve shown you how to add all sorts of super-useful buttons, like Copy/Cut/Paste, Delete, Create New Folder, Empty Trash, and Open New Window/Tab (click here for the full list of toolbar buttons you can add to Caja), here are the sundry button options – certainly not must-have buttons, but there if you want them. (Rename could be a useful button for many, but there’s a reason it’s here, so read below).

I’ve separated the buttons into their own sections, with the code for each there, so first read below on how to add buttons to Caja’s toolbar, and you can paste the appropriate code into the config file.

How to Add Toolbar Buttons to Caja

It comes down to specifying toolitems in the config file caja-navigation-window-ui.xml, and wherever you paste the code will determine where the button ends up. For example, if you add the code for your custom button after the entry for the Home button, that’s where it will end up; if you add it after all the default buttons, it will end up on the right end of the toolbar. So you can add your buttons where you want, reorder them as you please, and even get rid of unwanted ones.

First off, open the file for editing with the following command:

pluma admin:///usr/share/caja/ui/caja-navigation-window-ui.xml

The second half of the file deals with the toolbar, so locate the button you want to put your custom ones after. Hit Enter at the end of that line, and paste the code from the section(s) below into the empty paragraph beneath it, making sure to preserve the indent. For example, if you wanted to add the button between Home and Computer, you would hit Enter at the end of the line for Home, then paste the line of code.

Now just choose which button(s) you want to add, copy the code from below, and put them in the position on the toolbar that you desire. Once you’ve added your custom button(s), save the file, then reload Caja (either by manually closing all windows, or running caja -q in the terminal, then opening Caja again). Your new toolbar button(s) will be there and ready to use!

Caja Preferences Button

Most of us wouldn’t have much use for a button to open Caja’s Preferences (Edit > Preferences), but if you’re someone who could use this, then the code is:

<toolitem name="Preferences" action="Preferences"/>

Go to Templates Folder Button

Another button most of us wouldn’t have a use for opens the Templates folder, which is where the templates for File > Create Document (and the sub-menu in the context-menu) reside, but it’s available for those who want it. The code is:

<toolitem name="Go to Templates" action="Go to Templates"/>

Backgrounds and Emblems Button

A potentially useful button for some of you is the Backgrounds and Emblems… button – maybe not so much for changing the folder background, but if you’re big on using emblems, it could be handy. But it has a major drawback: it’s a text-only button, and you can’t change the label, so it takes up a lot of toolbar real estate! However, if you’re got room to spare, and want to add this button, the code is:

<toolitem name="Backgrounds and Emblems" action="Backgrounds and Emblems"/>

Rename File/Folder Button

While renaming a file or folder is as easy as right-clicking it and choosing Rename… – or, even easier, hitting the F4 key – you can in fact add a button for it to the toolbar.

However, unlike with any other button – including the largest text-only button for Backgrounds and Emblems – something really strange happens when adding this button: the spacing between all buttons on the toolbar increases dramatically. I can’t get my head around this – no matter if you place it in between existing buttons, or plonk it on the right end of the toolbar, that spacing you can see in the picture above occurs.

It’s for this reason I didn’t create a dedicated tutorial for this button, and placed it at the end of this guide for the sundry buttons. It could be a handy button to have, but it comes at a cost!

However, since this could be a Caja bug that gets fixed at some point, or for some of you is a must-have button worth the widely-spaced toolbar, I’ll include it here. The code to add is:

<toolitem name="Rename" action="Rename"/>

Conclusion

So there you have it. While these are hardly essential for the vast majority of us, they’re available for those who want them, and this completes the list of buttons you can add to Caja’s toolbar. Don’t forget to check out the full list of buttons – some are so handy that you’ll be amazed you managed to live without them!

For info on how to Add or Remove Separators, Reorder Existing Buttons, and Remove Unwanted Buttons, check out this guide!

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

The tutorial above is TOTALLY FREE, and I hope you found it useful! But if this information really made your day, because it rescued you from hours of headache, or allowed you to accomplish something you thought was impossible, then please consider making a donation via PayPal, to buy me a donut, beer, or pizza for my time and effort! Many thanks in advance!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »

Caja – like all modern Linux file managers – lets you bookmark your favourite locations, which you can then quickly access via the Bookmarks menu, or under the Bookmarks section of the sidebar. While most people bookmark the occasional folder and leave it at that (after all, who wants to sift through 40 bookmarks?), others use this to be even more productive. For example, if you’re in the middle of a project that requires you opening the same 6 folders quite often, it makes sense to bookmark them, even if temporarily – once done, you can easily delete the bookmarks by right-clicking them in the sidebar and choosing Remove.

While you can bookmark the folder you’re in via Bookmarks > +Add Bookmark – or hit Ctrl+D – some of you might find it rather handy to have an Add Bookmark button in the toolbar.

But one unfortunate limitation in Caja is that you can’t customise the toolbar in the Preferences dialogue. However, you can in fact add new buttons, and remove unwanted ones, and I’ll show you how.

It comes down to specifying toolitems in the config file caja-navigation-window-ui.xml, and wherever you paste the code will determine where the button ends up. For example, if you add the code for your custom button after the entry for the Home button, that’s where it will end up; if you add it after all the default buttons, it will end up on the right end of the toolbar. So you can add your buttons where you want, reorder them as you please, and even get rid of unwanted ones.

Add “Add Bookmark” Button

First off, open the file for editing with the following command:

pluma admin:///usr/share/caja/ui/caja-navigation-window-ui.xml

The second half of the file deals with the toolbar, so locate the button you want to put your custom one after. Hit Enter at the end of that line, and paste the code below into the empty paragraph beneath it, making sure to preserve the indent. For this example, I’m adding the code right at the end of the toolbar, but you can add it wherever you please.

<toolitem name="Add Bookmark" action="Add Bookmark"/>

Once you’ve added your custom button, save the file, then reload Caja (either by manually closing all windows, or running caja -q in the terminal, then opening Caja again). Your new toolbar button will be there and ready to use!

For info on how to Add or Remove Separators, Reorder Existing Buttons, and Remove Unwanted Buttons, check out this guide!

See also: Full List of Available Caja Toolbar Buttons

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

The tutorial above is TOTALLY FREE, and I hope you found it useful! But if this information really made your day, because it rescued you from hours of headache, or allowed you to accomplish something you thought was impossible, then please consider making a donation via PayPal, to buy me a donut, beer, or pizza for my time and effort! Many thanks in advance!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »

Firefox version 29 has had a nice make-over, but one thing that has greatly annoyed many users is that not only has the Tab bar been moved to the top above the Address bar, but that when going into Customize, there is no longer an option to move it back to where you want.

Move your Firefox Tab Bar back below the Address Bar

Move your Firefox Tab Bar back below the Address Bar

While you can install the Classic Theme Restorer Add-on to do this, you will still need to fidget with its settings to move the Tab bar, and it will revert to the old-style square tabs instead of the nice new rounded ones. But rather than install yet another add-on, which you then have to figure out how to use, and then loose the rounded corners on tabs, you can actually hack one of Firefox‘s config files – userChrome.css – to get your Tab bar to go back to the bottom.

To open your Firefox profile folder where the file is located, just go to Help > Troubleshooting Information, and in the Application Basics section on the config page that appears, next to Profile Directory click the Open Directory button (Show Folder in Windows, and Show in Finder in Mac OS X)

When the folder appears, open the chrome folder, right-click userChrome.css and choose to open it with a text editor. When the file is open, go to the bottom of the document and add the following code (if the end of the document is at the end of a line of code that was already there, then add a couple of blank paragraphs by hitting Enter twice):

#TabsToolbar{-moz-box-ordinal-group:10000!important}

Once you’ve saved and closed the file, go to File > Restart, and when Firefox reloads, the Tab bar will be below the Address bar, not above it.

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »

The WordPress.com stats helper monkeys prepared a 2013 annual report for this blog.

Here’s an excerpt:

The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 450,000 times in 2013. If it were an exhibit at the Louvre Museum, it would take about 19 days for that many people to see it.

Click here to see the complete report.

Read Full Post »

If you’ve upgraded to Ubuntu 13.04, you may have noticed that its file manager, Nautilus, has lost some of its functionality. One of the glaring omissions in the 3.6x versions (the current is 3.6.3) is the Open With sub-menu when right-clicking a selected folder. Previously, you could use it to open a folder with a program, like Movie Player (now called Videos, though technically it’s totem) to open a folder full of video clips, or a folder full of pictures with Image Viewer (or eogEye Of Gnome – to be precise).

In this guide I’ll show you how to do both, but you can of course apply this to any program you want, as long as it has the ability to open a folder starting with the first file. In the case of Image Viewer, it will open the first file within the folder and continue to cycle through the rest as you use your arrow keys; in the case of Videos, it will open the media player with all videos from the selected folder in its playlist, in alphanumerical order.

To get around the missing Open With option, you will first need to install Nautilus Actions. To do so, run the following command in the terminal:

sudo apt-get install nautilus-actions

Once installed, you can use the Nautilus-Actions Configuration Tool to define your own actions (in Unity’s Dash menu, just start typing the name; in Gnome Classic, it will be in Applications > System Tools).

New Menu Item for Image Viewer:

In the Nautilus-Actions Configuration Tool, click the Define a new action button and name that action to what you want to appear in the menu (eg: Open with Image Viewer; whatever name you choose will also appear in the Context label: field in the first tab in the right-pane, Action).

Nautilus-Actions: Adding Image Viewer to Context Menu

Making sure that the new action is selected in the left-pane, in the right-pane go to the second tab – Command – where you define what that menu option will do. For the Path: enter eog (or the full path /usr/bin/eog), for Parameters: enter %b (for first basename), and finally for Working directory: enter %d (for first base directory). While there are a bunch of other tabs in the tool, that is all you should need to do.

Nautilus-Actions: Adding Image Viewer to Context Menu Step 2

If you want to add an icon for that menu option, you will see Icon: in the Action tab, where you can browse for an icon to use.

Nautilus-Actions Icon Chooser

Once you’re finished, click the Save button, and exit the tool. You will find your new action in the Nautilus-Actions actions sub-menu in your context menus.

Nautilus-Actions: Adding Image Viewer to Context Menu (DONE!)

(OPTIONAL: If you also want this action to appear in context menus for locations – in other words, not just the selected folder, but when you right-click an empty area of the folder you’re currently in – check the box next to Display item in location context menu in the Action tab)

New Menu Item for Movie Player (Videos):

In the Nautilus-Actions Configuration Tool, click the Define a new action button and name that action to what you want to appear in the menu (eg: Open with Movie Player or Play Movies in Folder; whatever name you choose will also appear in the Context label: field in the first tab in the right-pane, Action).

Nautilus-Actions: Adding Movie Player/Videos to Context Menu

Making sure that the new action is selected in the left-pane, in the right-pane go to the second tab – Command – where you define what that menu option will do. For the Path: enter totem (or the full path /usr/bin/totem), for Parameters: enter %b (for first basename), and finally for Working directory: enter %d (for first base directory). While there are a bunch of other tabs in the tool, that is all you should need to do.

Nautilus-Actions: Adding Movie Player/Videos to Context Menu Step 2

If you want to add an icon for that menu option, you will see Icon: in the Action tab, where you can browse for an icon to use.

Nautilus-Actions Icon Chooser

Once you’re finished, click the Save button, and exit the tool. You will find your new action in the Nautilus-Actions actions sub-menu in your context menus.

Nautilus-Actions: Adding Movie Player/Videos to Context Menu (DONE!)

(OPTIONAL: If you also want this action to appear in context menus for locations – in other words, not just the selected folder, but when you right-click an empty area of the folder you’re currently in – check the box next to Display item in location context menu in the Action tab).

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »

If you’ve upgraded to Ubuntu 13.04, you may have noticed that its file manager, Nautilus, has lost some of its functionality. One of the glaring omissions in the 3.6x versions (the current is 3.6.3) is the ability to open selected folders in their own windows.

Nautilus 3.6 Options for Selected Folders

Nautilus 3.6 Options for Selected Folders

Currently, the only options available when you right-click selected folders are to create a new folder containing whatever is selected, or to open them in new tabs. The Open option simply mimics the next option, which is to open them in new tabs. The only way at all to open another (single) folder in a new window is if you right-click the breadcrumb in the toolbar.

Right-clicking Pictures lets me choose to Open in New Window

Right-clicking Pictures while in a sub-folder lets me choose to “Open in New Window”

However, there is a way around this: Nautilus Actions. To install it, run the following command in the terminal:

sudo apt-get install nautilus-actions

Once installed, you can use the Nautilus-Actions Configuration Tool to define your own actions (in Unity’s Dash menu, just start typing the name; in Gnome Classic, it will be in Applications > System Tools).

Nautilus-Actions: Open in New Window

In the Nautilus-Actions Configuration Tool, click the Define a new action button and name that action to what you want to appear in the menu (eg: Open in New Window; whatever name you choose will also appear in the Context label: field in the first tab in the right-pane, Action).

Nautilus-Actions: Defining the Action

Making sure that the new action is selected in the left-pane, in the right-pane go to the second tab – Command – where you define what that menu option will do. For the Path: enter nautilus (or the full path /usr/bin/nautilus), for Parameters: enter %b (for first basename), and finally for Working directory: enter %d (for first base directory). While there are a bunch of other tabs in the tool, that is all you should need to do.

If you want to add an icon for that menu option, you will see Icon: in the Action tab, where you can browse for an icon to use.

Nautilus-Actions Icon Chooser

Once you’re finished, click the Save button, and exit the tool. You will find your new action in the Nautilus-Actions actions sub-menu in your context menus.

Nautilus-Actions: Open in New Window

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »

A couple of years or so ago, Ubuntu‘s file manager, Nautilus, gave you the ability to “Safely Remove Drive” when right-clicking an attached USB hard drive (or flash drive), rather than just simply “Unmount” it. The difference between the two is that when you simply unmount a drive, it is still listed as attached (but not mounted) in Nautilus‘s left-pane. For many, seeing the drive completely removed was reassuring, since it could then be unplugged safe in the knowledge there would be no data loss, or physical damage to the device.

However, in the Ubuntu 12.10 upgrade, we lost this option, and now only have “Unmount” and “Eject” (which is exactly the same as “Unmount“, except in the case of CD/DVD drives where it will eject the disc tray).

Device Context-Menu

While “Safely Remove Drive” may yet make a return (it has caused a flood of complaints about this backward move), for now you can do it via the command-line if you really prefer this to simply unmounting.

First, if you’re unsure what the drive’s address is, run the following in the terminal:

mount|grep ^'/dev'

If you only have one internal hard drive, and no other storage devices attached, it should be something like /dev/sdb. To safely unmount and totally remove the drive, enter the following command, replacing /dev/sdb with your own drive’s designation if need be:

udisks --unmount /dev/sdb1 && udisks --detach /dev/sdb

You should now see your drive disappear from the file manager’s left-pane.

Note that in the unlikely event you have a partition other than the first partition on the drive mounting, you will need to change the “1” (ie: sdb1) in the command to reflect that.

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »

If you’ve installed a program for working with specific file types, you might find that Ubuntu‘s file manager Nautilus has no idea about it when you right-click a file and go to Open With, where a list of alternative programs to the default are presented. While in most cases that new app will be found when you choose Other Application… from the context menu, sometimes this isn’t the case.

Back in Gnome 2.x, if the program wasn’t listed, you could choose to add a custom application, which let you specify the command manually. However, this is no longer the case, but there should be another way to rectify this (see also the command-line interface method at the bottom).

In this example, we’ll look at getting Nautilus to recognise PDF Editor (pdfedit) as a viable program when right-clicking PDF documents, since the file manager doesn’t know it exists, and one can no longer just specify pdfedit as a custom command (at least via the GUI).

While you could be forgiven for thinking you’d need to hack a list of applications (for example, ~/.local/share/applications/mimeapps.list), the answer in fact lies in editing the .desktop file of the newly-installed program, and simply inserting three characters into it. Basically, this will allow Nautilus to add it to its context menu (actually, it specifies that the application can be passed a filename, which is what is missing).

All you need is the actual command that runs the program (e.g. pdfedit for PDF Editor), and you should be able to guess the .desktop file’s name (e.g. pdfedit.desktop), and open it for editing with the following command (replacing pdfedit with the appropriate name in your case):

gksudo gedit /usr/share/applications/pdfedit.desktop

(Note that the .desktop files should be in /usr/share/applications, but if not will be in ~/.local/share/applications, so change the path accordingly if you need to. Also, if you cannot correctly guess the .desktop file’s name, you can get the correct name by going to the folder and browsing for it).

[Desktop Entry]
Name=PDF Editor
Comment=PDF Editor
Exec=pdfedit
Icon=/usr/share/pdfedit/icon/pdfedit_logo.png
Type=Application
StartupNotify=false
Terminal=false
Categories=TextTools;Viewer;Graphics;Qt;

Find the Exec= line and you will see the command listed after it. Simply go to the end of the line, hit the spacebar, and add %f, so the line looks like:

Exec=pdfedit %f

(Once again, substitute your command’s name for pdfedit).

Simply save the file when exiting, and you shouldn’t even need to restart Nautilus, let alone log out or totally reboot. You should immediately see the desired program in the list of apps presented in Other Application…, and once you open a file with it, the app should be easily accessible in the list of secondary programs found in Open With.

If you want to make that program the new default for opening the particular filetype, you can now right-click one, choose Properties, go to the Open With tab, click on the app under Recommended Applications, and click the Set as default button.

CLI Method to Change Application & Set Default:

You can easily open a file with another application using the mimeopen command in the terminal. However, if the program isn’t already in the list of recommended applications, you’ll need to make it the default for that filetype first. Simply open a terminal in the folder where the file is and run a command like the following (substituting Recipes.pdf with the appropriate filename and filetype):

mimeopen -d Recipes.pdf

Please choose a default application for files of type application/pdf

1) GIMP Image Editor (gimp)
2) Adobe Reader 9 (AdobeReader)
3) Document Viewer (evince)
4) Other…

use application #4
use command: pdfedit

Simply choose the number that corresponds to Other… (in this case it’s 4), then type the command of the program after use command: (you probably won’t need to specify the path, but if it doesn’t work without it, it should be something like /usr/bin/pdfedit).

After that, you can switch default applications quite easily with the above command, or use the --ask option to just open the file in the desired app without changing the default (note there is no option to choose Other…, which is why you have to use the -d switch first):

mimeopen --ask Recipes.pdf

Please choose an application

1) pdfedit (pdfedit-usercreated-2)
2) GIMP Image Editor (gimp)
3) Adobe Reader 9 (AdobeReader)
4) Document Viewer (evince)

use application #

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

That’s it – hopefully with either of the methods you’re not cursing Nautilus any more, and have more control of your filetypes than your file manager currently provides.

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »

If you’ve attached an external hard drive for backing up your files, or created a new partition for storage, only to find you don’t have the permissions to use it, you’d be understandably frustrated. But it’s actually quite easy to remedy by simply running a command in the terminal in the form of:

sudo chown -R username:username /partition/mount-point

Note that the above isn’t the actual command you’ll be using, as you’ll need to replace each instance of username with your actual username, and also determine your mount-point, which is not the device name (eg: /dev/sdb1).

To find the mount-point, run mount in the terminal, and locate the line that corresponds to the drive or partition in question. If you have never named (or set the label for) it, it will probably look something like:

/dev/sdb1 on /media/bf9a2c45-491a-4778-9d76-47832fe38820

If you have set the label with something descriptive, it should like similar to:

/dev/sdb1 on /media/1Tb Pocket Drive

As you can see, your mount-point will look something like /media/bf9a2c45-491a-4778-9d76-47832fe38820 or /media/1Tb Pocket Drive, so all you need to do now is run a command like one of the following, replacing the relevant info with what is appropriate to you:

sudo chown -R billgates:billgates /media/bf9a2c45-491a-4778-9d76-47832fe38820

sudo chown -R billgates:billgates '/media/1Tb Pocket Drive'

Note that if your custom label contains spaces (e.g. 1Tb Pocket Drive) , you will need to enclose the entire mount-point path in single quotes, but won’t need them if it’s a single word or multiple words joined by hyphens or underscores.

That’s it – you should now be able to do whatever you want with the drive or partition in question, as you’re now the owner.

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

ption]

Read Full Post »

If you’ve attached an external hard drive to your system, then decided to use your partitioner to format it to EXT4 for greater efficiency (or just to match your Ubuntu system), you may have been shocked to find that your empty drive seemed to be missing a few gigabytes when mounted afterwards. And this has nothing to do with the good old binary (base-8) vs decimal (base-10) situation which would see your “750Gb” drive be more like 700Gb (in Windows and earlier versions of Ubuntu – now Mac OS X and Ubuntu have followed hardware manufacturers and use decimal, so that’s more like 738Gb).

This is because Ubuntu (and other Linux distributions) reserve typically around 5% of the space for the root user and system services, so should you run out of hard drive space, the administrator can still log in, and system services continue to run.

However, this is only really needed for your Ubuntu partition, so if you have an external EXT4 drive, or have an EXT4 partition on your internal drive (other than the one your system is on), you are needlessly wasting space (40Gb of the drive in the example). But you can free up that disk space quite easily, without having to re-partition the drive or anything. All it takes is a couple of commands pasted into the terminal.

In the following example, an external hard-drive will have the reserve set to 0 (zero), since this is what most people will need this for. First, we have to determine the device name, as using its mounted name – /media/700Gb Ext4 – won’t suffice. To do so, enter the following into the terminal:

mount|grep ^'/dev'

Look for the line containing your device:

/dev/sdc1 on /media/700Gb Ext4 type ext4 (rw,nosuid,nodev,uhelper=udisks)

… and you can see what it is named (/dev/sdc1 in this case). To free up reserved space, enter the following (replacing /dev/sdc1 with whatever the appropriate device name is, if need be – just make sure you don’t do it to your main drive!):

sudo tune2fs -m 0 /dev/sdc1

You should then be presented with the following message:

Setting reserved blocks percentage to 0% (0 blocks)

To confirm all has gone well, you can right-click an empty area of the folder window for the device and choose Properties, then compare the free space from before and after, or run the following command (once again replacing the device name with the correct one in your case):

sudo tune2fs -l /dev/sdc1 | grep 'Reserved block count'

You should be greeted with the following:

Reserved block count: 0

That’s it – you now have all of your drive to use.

ΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘΘ

Note: if you receive the following error message:

tune2fs: Bad magic number in super-block while trying to open /dev/sdb1
Couldn’t find valid filesystem superblock.

… then the filesystem likely isn’t EXT4 – chances are the drive is actually formatted as NTFS or FAT for use on Windows systems (which would be the case if you’ve bought an external drive, and never did anything other than copy files to it). You would have needed to partition/format the drive to EXT4, so if you didn’t, then you actually don’t need this guide.

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »

Older Posts »