ionice – renice you IO activity for the process.

2015-04-13 1 min read Learning

ionice is utility provided by the package util-linux. Description of util-linux:

Description : The util-linux package contains a large variety of low-level system
utilities that are necessary for a Linux system to function. Among
others, Util-linux contains the fdisk configuration tool and the login
program.

 

With the help of this utility, you can set the scheduler priority for your IO scheduling upto RealTime, but be careful that can make other process sluggish. Example use:

Continue reading

List all the rpms by size – quick way to find out what is eating your disk space in root partition

2010-10-13 1 min read Bash Fedora

Here is a quick command to check the list of installed packages by their size in reverse order. Very useful if you want to remove unwanted rpms just to clean up some space on your disk:

  <td>
    <div class="text codecolorer">
      rpm -q -a --qf "%10{SIZE}\t%{NAME}\n" | sort -k1,1nr |more
    </div>
  </td>
</tr>
1

Sample output:

78070452    kernel
78060477    kernel
50708634    jre
50316408    libgcj
48581593    wireshark
47778643    gimp
47674675    jre
47303084    qt-x11
45838912    otrs
45657248    chromium-libs
42070128    wxPython

Continue reading

gnome-disk-manager – the easier way to manage disks in Gnome with Palimpsest

2010-05-25 1 min read Fedora GNOME Linux

I had been using quite different set of tools to this but this is really good. Just install the gnome-disk-manager with

sudo yum install gnome-disk-manager

The interface is very clean and easy to understand and is it very very fast when compared to the other Graphical utilities.

Here are some screenshots to take you through.

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_001.jpe"><img class="alignnone size-full wp-image-1204" title="screenshot_001" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_001.jpe" alt="screenshot_001" width="806" height="626" />

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_002.jpe"><img class="alignnone size-full wp-image-1205" title="screenshot_002" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_002.jpe" alt="screenshot_002" width="806" height="626" />

Continue reading

Disk identification by UUID in Fedora.

2010-05-19 2 min read GNOME Linux

Yesterday I managed to delete my complete /usr directory and thus had to re-install my OS but I learned something new yesterday which I didn&#8217;t know earlier or actually never bothered to find out.br /br /All the partitions are mounted by udev using the UUID or label now. Finding the label of setting the label is easy but that was not the case with UUID (at least till you dont know how to do it). So finally I set my foot to search it. Heres some of the things that I found:br /br /bblkid/b – Gives you a list like below for all your partitions:br //dev/sda6: UUID=&#8221;8D8A-6CF1&#8221; TYPE=&#8221;vfat&#8221; LABEL=&#8221;Backup&#8221; br /So this is sufficient to modify your fstab to refer to the UUID or label instead of the drive. So whats the change in fstab. If the earlier entry looks likebr //dev/sdb6nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; /media/Bkup3nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; vfatnbsp;nbsp;nbsp; uid=500,nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 0 0br /then you can change this to :br /UUID=&#8221;8D8A-6CF1&#8221;nbsp;nbsp; /media/Bkup3nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; vfatnbsp;nbsp;nbsp; uid=500,nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 0 0br /What is the benifit:br /———————br /When you re-format your Hard Disk there is a likely possibility that the dev name could well change and thus completely changing the mount points for all your fstab entries. This is really a pain if you have 10 or more partitions like the way I have. So if you use label or UUID then they never change and your mount points remain the same.br /br /Effective use: Use autofs package to automatically mount all your partitions. Autofs mounts the package at /media/LABEL, so before you hit to start your autofs label all your disks.br /br /Other ways to find the disk labels and UUID&#8217;s:br /ls /dev/disk/by-uuid –gt; simplest way. :)br /br /Will get back to this later with more details.br /br /

Continue reading