<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-34067111</id><updated>2011-12-15T08:43:24.162+06:00</updated><title type='text'>unix study</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://unixstudy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34067111/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://unixstudy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>lavluda</name><uri>http://www.blogger.com/profile/03798556826100069177</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://photos1.blogger.com/blogger/1125/2570/1600/Me.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-34067111.post-116728358677331204</id><published>2006-12-28T11:26:00.000+06:00</published><updated>2006-12-28T13:53:36.680+06:00</updated><title type='text'>A simple way 2 fix DMA problem of HDD in windows XP</title><content type='html'>Windows XP has a somewhat &lt;span style="font-weight: bold;"&gt;bad&lt;/span&gt; (IMHO) feature &lt;br /&gt;that sets off the DMA of hard drives and CD/DVD drives when it gets CRC error in &lt;br /&gt;reading the filesystem. This frequently happens when you are having subsequent power &lt;br /&gt;cuts or if you have a bad sectors in your drive. And thus PC crawls when we want &lt;br /&gt;to access data from that drive, as OS then retrieves data in PIO mode. &lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;This problem has been bugging me for some time. So hacked my way into &amp;quot;regedit&amp;quot; &lt;br /&gt;and finally made this script. This script deletes the registry entry that Windows &lt;br /&gt;uses to calculate what addressing mode to use when accessing the drives. So upon &lt;br /&gt;running the script, just &lt;span style="font-weight: bold;"&gt;rebooting &lt;/span&gt;PC will &lt;br /&gt;force windows re-detect the drive resulting in restoration of UDMA mode 5 for the &lt;br /&gt;hard drive.&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;Here is the code&lt;br&gt;&lt;br /&gt;&lt;div id="mb_0"&gt;&lt;br /&gt; #####################&lt;br&gt;&lt;br /&gt; REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0001 &lt;br /&gt; /v &amp;quot;MasterIdDataCheckSum&amp;quot; /f &lt;br&gt;&lt;br /&gt; &lt;br&gt;&lt;br /&gt; REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0001 &lt;br /&gt; /v &amp;quot;SlaveIdDataCheckSum&amp;quot; /f &lt;br&gt;&lt;br /&gt; &lt;br&gt;&lt;br /&gt; REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0002 &lt;br /&gt; /v &amp;quot;MasterIdDataCheckSum&amp;quot; /f&lt;br&gt;&lt;br /&gt; &lt;br&gt;&lt;br /&gt; REG DELETE HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0002 &lt;br /&gt; /v &amp;quot;SlaveIdDataCheckSum&amp;quot; /f &lt;br&gt;&lt;br /&gt; #####################&lt;br&gt;&lt;br /&gt; &lt;br&gt;&lt;br /&gt; Put this code fragment inside a text file and rename it to&lt;br /&gt; &lt;span style="font-weight: bold;"&gt;&amp;quot;dma_restore.bat&amp;quot; &lt;/span&gt;or something like &lt;br /&gt; it. Make sure you change the extension to &lt;span style="font-weight: bold;"&gt;&amp;quot;.bat&amp;quot;&lt;/span&gt;. &lt;br /&gt; Upon running the file, you may see some errors like &amp;quot;&lt;span&gt;&lt;span&gt;Error: the &lt;br /&gt; system was unable to find the specific registry key or value&amp;quot;. Do not worry &lt;br /&gt; about it. Just &lt;span style="font-weight: bold;"&gt;&lt;br /&gt; &lt;span style="font-weight: bold;"&gt;r&lt;/span&gt;eboot&lt;/span&gt; and your PC should be &lt;br /&gt; fine in the next run.&lt;/span&gt;&lt;/span&gt;&lt;br&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34067111-116728358677331204?l=unixstudy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixstudy.blogspot.com/feeds/116728358677331204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34067111&amp;postID=116728358677331204' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34067111/posts/default/116728358677331204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34067111/posts/default/116728358677331204'/><link rel='alternate' type='text/html' href='http://unixstudy.blogspot.com/2006/12/simple-way-2-fix-dma-problem-of-hdd-in.html' title='A simple way 2 fix DMA problem of HDD in windows XP'/><author><name>Abu Zaher Md. Faridee</name><uri>http://www.blogger.com/profile/08765247048559775593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_qZgIETMJjmk/SG0ZicbNQvI/AAAAAAAAAMY/mv69n9Lb9LE/S220/n738731256_848096_8704.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34067111.post-116140630690389846</id><published>2006-10-21T10:51:00.000+06:00</published><updated>2006-10-24T08:09:10.163+06:00</updated><title type='text'>Take care of your hard disks with hdparm</title><content type='html'>The main problem that we all face with our hard disk is &lt;span style="font-weight: bold;"&gt;bad sector&lt;/span&gt; and subsequent &lt;span style="font-weight: bold;"&gt;data loss&lt;/span&gt;  for that. Everybody know what is the blow of such data loss, specially if you are using your PC as a web server or database server. &lt;br&gt;&lt;br&gt;There are various reasons for which your hard disk can get &lt;span style="font-weight: bold;"&gt;bad sectors&lt;/span&gt;. The most prominent of them is sudden power failure. As the disk constantly keeps spinning at 5400-10000 rpm depending on hdd model, if the disk is being accessed (data being written and read) when the power failure occurs, the head may write down abnormal data and bad sector can occur from that. &lt;br&gt;&lt;br&gt;Now a days, most OS by default takes advantage of a feature called  &lt;span style="font-weight: bold;"&gt;write-caching &lt;/span&gt;incorporated in modern hard disk drives to boost write performance. While increasing write throughput, the feature indirectly increases the risk of  &lt;span style="font-weight: bold;"&gt;data corruption &lt;/span&gt;and &lt;span style="font-weight: bold;"&gt;bad sectors&lt;/span&gt; as your drive keeps constantly writing to disk.&lt;br&gt;&lt;br&gt;So its a very good idea to disable write-caching in your hard drive if your disk has sensitive data. To accomplish that we are going to use a very handy tool in UNIX,  &lt;span style="font-weight: bold;"&gt;hdparm.&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;'&lt;/span&gt;hdparm'&lt;/span&gt; is a tool designed to manage every setting of your hard drive. With this tool, you  can tune your hard drive to your style. With some settings activated your hard drive will give you highest performance (with the risk of data loss when power failure occurs) and with others you can ensure maximum safety of your data at the expense of performance. &lt;br&gt;&lt;br&gt;Now if u want maximum safety for your data, just run the following in root shell (be warned that you won't get maximum performance from your drive):&lt;br&gt;&lt;br&gt;#hdparm -W 0 /dev/hda&lt;br&gt;[Note: replace hda with your drive identifier] &lt;br&gt;&lt;br&gt;This effectively turns &lt;span style="font-weight: bold;"&gt;write-cache&lt;/span&gt; off.&lt;br&gt;&lt;br&gt;If you want to automatically deactivate &lt;span style="font-weight: bold;"&gt;write-cache &lt;/span&gt;off on your hard drive, then add these lines in  &lt;span style="font-weight: bold;"&gt;/etc/hdparm.conf:&lt;/span&gt;&lt;br&gt;&lt;br&gt;/dev/hda {&lt;br&gt;&lt;div style="margin-left: 40px;"&gt;mult_sect_io = 16&lt;br&gt;&lt;/div&gt;&lt;div style="margin-left: 40px;"&gt;write_cache = off&lt;br&gt;&lt;/div&gt;&lt;div style="margin-left: 40px;"&gt; dma = on&lt;br&gt;&lt;/div&gt;&lt;div style="margin-left: 40px;"&gt;defect_mana = on&lt;br&gt;&lt;/div&gt;}&lt;br&gt;&lt;br&gt;On the other hand if you want to gain performance by pushing your hard drive to the edge (but this may make your hard drive more prone to data corruption in case of power failure): &lt;br&gt;&lt;br&gt;#hdparm -d 1 -A 1 -m 16 -u 1 -a 64 -X udma5 /dev/hda&lt;br&gt;&lt;br&gt;or add these lines in &lt;span style="font-weight: bold;"&gt;/etc/hdparm.conf:&lt;/span&gt;&lt;br&gt;&lt;br&gt;/dev/hda {&lt;br&gt;&lt;div style="margin-left: 40px;"&gt;lookahead = on&lt;br&gt;write_cache = on &lt;br&gt;read_ahead_sect = 64&lt;br&gt;dma = on&lt;br&gt;mult_sect_io = 16&lt;br&gt;interrupt_unmask = on&lt;br&gt;transfer_mode = 69&lt;br&gt;&lt;/div&gt;}&lt;br&gt;&lt;br&gt;Your hard drive should be running in turbo mode by now (but you won't notice any difference if these settings were enabled by default). &lt;br&gt;&lt;br&gt;-- &lt;br&gt;Time heals every wound, but time itself is a wound that never heals.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34067111-116140630690389846?l=unixstudy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixstudy.blogspot.com/feeds/116140630690389846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34067111&amp;postID=116140630690389846' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34067111/posts/default/116140630690389846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34067111/posts/default/116140630690389846'/><link rel='alternate' type='text/html' href='http://unixstudy.blogspot.com/2006/10/take-care-of-your-hard-disks-with.html' title='Take care of your hard disks with hdparm'/><author><name>Abu Zaher Md. Faridee</name><uri>http://www.blogger.com/profile/08765247048559775593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_qZgIETMJjmk/SG0ZicbNQvI/AAAAAAAAAMY/mv69n9Lb9LE/S220/n738731256_848096_8704.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34067111.post-115919143753918538</id><published>2006-09-25T19:31:00.000+06:00</published><updated>2006-09-25T19:37:17.553+06:00</updated><title type='text'>gtk2-engines-gtk-qt</title><content type='html'>“The GTK-Qt Theme Engine (also known as gtk-qt-engine) is a GTK 2 theme engine&lt;br /&gt;    that calls Qt to do the actual drawing. This makes your GTK 2 applications&lt;br /&gt;    look almost like real Qt applications and gives you a more unified desktop&lt;br /&gt;    experience.&lt;br /&gt;&lt;br /&gt;    Please note that this package is targeted at KDE users and therefore provides&lt;br /&gt;    a way to configure it from within KControl.”&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34067111-115919143753918538?l=unixstudy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixstudy.blogspot.com/feeds/115919143753918538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34067111&amp;postID=115919143753918538' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34067111/posts/default/115919143753918538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34067111/posts/default/115919143753918538'/><link rel='alternate' type='text/html' href='http://unixstudy.blogspot.com/2006/09/gtk2-engines-gtk-qt.html' title='gtk2-engines-gtk-qt'/><author><name>lavluda</name><uri>http://www.blogger.com/profile/03798556826100069177</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://photos1.blogger.com/blogger/1125/2570/1600/Me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34067111.post-115772634723023553</id><published>1990-01-08T13:00:00.000+06:00</published><updated>2006-09-08T20:39:07.240+06:00</updated><title type='text'>Welcome</title><content type='html'>This is a blog we created to share our everyday works with others, we are mainly interested in unix and its flavours like linux, freeBDS and more. Here we are to share the tips and tricks so that we can increase our productivity.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/34067111-115772634723023553?l=unixstudy.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unixstudy.blogspot.com/feeds/115772634723023553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=34067111&amp;postID=115772634723023553' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34067111/posts/default/115772634723023553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34067111/posts/default/115772634723023553'/><link rel='alternate' type='text/html' href='http://unixstudy.blogspot.com/1990/01/welcome.html' title='Welcome'/><author><name>Abu Zaher Md. Faridee</name><uri>http://www.blogger.com/profile/08765247048559775593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_qZgIETMJjmk/SG0ZicbNQvI/AAAAAAAAAMY/mv69n9Lb9LE/S220/n738731256_848096_8704.jpg'/></author><thr:total>1</thr:total></entry></feed>
