Popular Posts

Sunday, October 5, 2014

dstat command with examples

What is dstat ?

dstat is one of the powerful utility in the Linux environment, using it we can get many kinds of performance related statistics to analyse the system performance. system admin generally use this to monitor system's performance.

How to install dstat in rpm based environments ?

yum install dstat

How to use dstat ?

Usage: dstat [-afv] [options..] [delay [count]]
Versatile tool for generating system resource statistics

Dstat options:

  -c, --cpu              enable cpu stats
     -C 0,3,total           include cpu0, cpu3 and total
  -d, --disk             enable disk stats
     -D total,hda           include hda and total
  -g, --page             enable page stats
  -i, --int              enable interrupt stats
     -I 5,eth2              include int5 and interrupt used by eth2
  -l, --load             enable load stats
  -m, --mem              enable memory stats
  -n, --net              enable network stats
     -N eth1,total          include eth1 and total
  -p, --proc             enable process stats
  -r, --io               enable io stats (I/O requests completed)
  -s, --swap             enable swap stats
     -S swap1,total         include swap1 and total
  -t, --time             enable time/date output
  -T, --epoch            enable time counter (seconds since epoch)
  -y, --sys              enable system stats

  --aio                  enable aio stats
  --fs, --filesystem     enable fs stats
  --ipc                  enable ipc stats
  --lock                 enable lock stats
  --raw                  enable raw stats
  --socket               enable socket stats
  --tcp                  enable tcp stats
  --udp                  enable udp stats
  --unix                 enable unix stats
  --vm                   enable vm stats

  --plugin-name          enable plugins by plugin name (see manual)
  --list                 list all available plugins

  -a, --all              equals -cdngy (default)
  -f, --full             automatically expand -C, -D, -I, -N and -S lists
  -v, --vmstat           equals -pmgdsc -D total

  --bw, --blackonwhite   change colors for white background terminal
  --float                force float values on screen
  --integer              force integer values on screen
  --nocolor              disable colors (implies --noupdate)
  --noheaders            disable repetitive headers
  --noupdate             disable intermediate updates
  --output file          write CSV output to file

delay is the delay in seconds between each update (default: 1)
count is the number of updates to display before exiting (default: unlimited)

Sunday, June 15, 2014

How to safely uninstall linux from dual boot windows 7

If you have dual boot OS installed on your system and want to uninstall linux safely from it then here are the easy instructions :

By default GRUB is the boot-loader when you install dual boot OS i.e linux and windows that means without modifying MBR you cannot simply uninstall linux!

Important Note : Please backup your stuff from linux before moving ahead with the steps!


1. Download EasyBCD tool in windows 7 from below link.

http://neosmart.net/Download/Register/1

2. Install EasyBCD and run it as Administrator

3. Go to the option - BCD Deployment ( see highlighted section in below screenshot )




4. Select "Install the Windows Vista/7 bootloader to the MBR" option (highlighted in yellow colour in above screenshot)

5. Click on Write MBR button - This will remove GRUB and install windows 7 boot loader.

6.  Now click on Edit Boot Menu option (Highlighted in red circle in below screenshot)


7. Select Windows 7 ( Red underline in below screenshot )

8. Click on "Skip boot menu" radio button ( highlighted in yellow color in below screenshot )


9. Finally click on "Save Settings" option






10. Congratulations!! You have successfully modified default boot loader from GRUB to windows 7 :)

 11. Now if you want, you can gain your linux disk back to windows by deleting linux partition from windows disk management tool.