Monday, November 15, 2010

chkdsk on linux ??

So, if your boot log or the out put message of mount is telling you to boot in to windows and run chkdsk for ntfs partition, then do not worry, here is the solution for that. In linux, you can find many cli commands for ntfs partition, the only thing is they should be installed.
Problem Statement: $mount /dev/sda5 /media/folder
...
boot from windows and run chkdsk .............

If you are getting some error like this then , go to terminal, and

$ntfsfix /dev/sda5

All done, now try to mount the ntfs partition or reboot !!

You can also try many other utilities for ntfs partition by typing $ntfs<tab><tab> it will show many commands, e.g.

ntfs-3g           ntfs-3g.secaudit  ntfscat           ntfscluster       ntfscp            ntfsinfo          ntfsls            ntfsresize
ntfs-3g.probe     ntfs-3g.usermap   ntfsclone         ntfscmp           ntfsfix           ntfslabel         ntfsmount         ntfsundelete

now choose any and run 
$<command> --help OR $man <command name>

e.g.
$ntfsfix --help  OR $man ntfsfix

But it is really weired to see that linux is telling us to use windows for disk checking.
I hope soon they will change this :)

Sunday, November 7, 2010

How to change Plymouth Theme OR How to change Boot theme in Fedora ?

In fedora, the themes which we see at the boot is controlled by plymouth. Here is a step by step tutorial for changing the boot theme:

Step 1: go to the terminal and run (under su or sudo)
$yum install plymouth-plugin* plymouth-theme*

Step 2: Now we got some extra themes, lets check out which one we got:
$ ls -1 /usr/share/plymouth/themes/
charge
details
fade-in
script
solar
spinfinity
text

Step 3: Time to activate one of them (I like solar)
$plymouth-set-default-theme solar

Step 4: After setting the default theme, we will have to update the initrd by:
$/usr/libexec/plymouth/plymouth-update-initrd

This will take a little time. After this , reboot and see the difference.