<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Admins Goodies &#187; ide</title>
	<atom:link href="http://adminsgoodies.com/tag/ide/feed/" rel="self" type="application/rss+xml" />
	<link>http://adminsgoodies.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 17 May 2013 16:34:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Debugging/Developing tool for apache&#8217;s mod_rewrite (Rewrite Engine)</title>
		<link>http://adminsgoodies.com/debuggingdeveloping-tool-for-apaches-mod_rewrite-rewrite-engine/</link>
		<comments>http://adminsgoodies.com/debuggingdeveloping-tool-for-apaches-mod_rewrite-rewrite-engine/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 13:45:07 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[mod-rewrite]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/debuggingdeveloping-tool-for-apaches-mod_rewrite-rewrite-engine/</guid>
		<description><![CDATA[Is there any tool (GUI or online) for developing and debugging apache&#8217;s mod_rewrite (Rewrite Engine) rules? Something like Regex tools that get input (for example URLs per line) and some rewrite rules; Then displays rules&#8217;s output. you can use rewrite log file for debugging : &#60;IfModule mod_rewrite.c&#62; RewriteLog "/home/test/public/logs/rewrite.log" RewriteLogLevel 3 &#60;/IfModule&#62; OR you can follow this detailed debugging tutorial: http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html Check more discussion of this question.]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>Is there any tool (GUI or online) for developing and debugging apache&#8217;s mod_rewrite (Rewrite Engine) rules?<br />
Something like Regex tools that get input (for example URLs per line) and some rewrite rules; Then displays rules&#8217;s output.  </p>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>you can use rewrite log file for debugging :</p>
<pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteLog "/home/test/public/logs/rewrite.log"
    RewriteLogLevel 3
&lt;/IfModule&gt;
</code></pre>
<p>OR you can follow this detailed debugging tutorial:</p>
<p><a href="http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html" rel="nofollow">http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html</a></p>
<p class="ref-link">Check <a href="http://serverfault.com/questions/334954/debugging-developing-tool-for-apaches-mod-rewrite-rewrite-engine" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/debuggingdeveloping-tool-for-apaches-mod_rewrite-rewrite-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent data corruption on ext4/Linux drive on power loss</title>
		<link>http://adminsgoodies.com/prevent-data-corruption-on-ext4linux-drive-on-power-loss/</link>
		<comments>http://adminsgoodies.com/prevent-data-corruption-on-ext4linux-drive-on-power-loss/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 15:10:04 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[corruption]]></category>
		<category><![CDATA[embedded]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/prevent-data-corruption-on-ext4linux-drive-on-power-loss/</guid>
		<description><![CDATA[I have some embedded boards running American Megatrends bios with embedded linux as the OS. The problem I have is that the industrial flash ide&#8217;s will be corrupted on power loss. I have them formatted as ext4. Whenever this happens, I can usually fix the flash with fsck, but this will not be possible in our deployments. I have heard that disabling the write-caching should help, but I can&#8217;t figure out how to do it. [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I have  some embedded boards running American Megatrends bios with embedded linux as the OS. The problem I have is that the industrial flash ide&#8217;s will be corrupted on power loss. I have them formatted as ext4. Whenever this happens, I can usually fix the flash with fsck, but this will not be possible in our deployments. I have heard that disabling the write-caching should help, but I can&#8217;t figure out how to do it. Also, is there any thing else I should do?</p>
<p><strong>More Info</strong></p>
<p>The drive is a 4gb ide flash module.<br />
I have one partition which is ext4. The O.S. is installed on that partition and grub is my bootloader.</p>
<p>fdisk -l shows /dev/sda as my flash module with /dev/sda1 as my primary partition.</p>
<p>After a power loss I usually cannot make it entirely through the boot init scripts.</p>
<p>When I mount the drive on another P.C. I run fsck /dev/sda1. It always shows messages like </p>
<pre><code>"zero datetime on node 1553 ... fix (y)?"
</code></pre>
<p>I fix them and it boots fine until the next power loss.</p>
<p>When I get to the office tomorrow, I will post the actual output of fdisk -l</p>
<p>This is all I know about how the system works. I am not a systems guy, I am a Software Engineer that has a habit of getting into predicaments that are outside of his job description. I know how to format drives, install a bootloader, write software, and hack on an operating system.</p>
<p><strong>Here is the output from dumpe2fs</strong></p>
<pre><code>#sudo dumpe2fs /dev/sda1
dumpe2fs 1.41.12 (17-May-2010)
Filesystem volume name:   VideoServer
Last mounted on:          /
Filesystem UUID:          9cba62b0-8038-4913-be30-8eb211b23d78
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    (none)
Filesystem state:         not clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              245760
Block count:              977949
Reserved block count:     48896
Free blocks:              158584
Free inodes:              102920
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      239
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Fri Feb  4 15:12:00 2011
Last mount time:          Sun Oct  2 23:48:37 2011
Last write time:          Mon Oct  3 16:34:01 2011
Mount count:              2
Maximum mount count:      26
Last checked:             Tue Oct  4 07:44:50 2011
Check interval:           15552000 (6 months)
Next check after:         Sun Apr  1 07:44:50 2012
Lifetime writes:          21 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:           256
Required extra isize:     28
Desired extra isize:      28
Default directory hash:   half_md4
Directory Hash Seed:      249d2b79-1e20-49a3-b324-6cb631294a63
Journal backup:           inode blocks
</code></pre>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>The write cache has usually nothing to do with the BIOS, mostly there is no option for switching disk cache settings in there. With linux, using <code>hdparm -W 0</code> should help. </p>
<p>The setting is persistent, so if you don&#8217;t have hdparm to play around with in your production systems, you should be able to disable the disk write cache on a different system and replug the disk.</p>
<p>BTW: I&#8217;d second the idea of a non-writable root filesystem (so your system could boot in a kind of &#8220;recovery mode&#8221; and allow for remote access even if the writable filesystem is not mountable for some reason). And if you can change the hardware design, consider using <a href="http://en.wikipedia.org/wiki/Memory_Technology_Device" rel="nofollow">mtd devices</a> instead of IDE/SATA disks with a flash-aware filesystem like <a href="http://en.wikipedia.org/wiki/JFFS2" rel="nofollow">jffs2</a>. We&#8217;ve been using this combination with several embedded devices (mostly VPN router solutions in the field) for several years with good results.</p>
<p><strong>Update:</strong> the root of your problem seems to be that you are running an ext4 filesystem with journaling disabled &#8211; <code>has_journal</code> is missing from the <code>Filesystem features</code> list. Just shut down all services, check if anything still has open files using <code>lsof +f -- /</code>, remount your root partition read-only with <code>mount -o  remount,ro /</code>, enable the journal with <code>tune2fs -O has_journal /dev/sda1</code> and set up the &#8220;ordered&#8221; journal mode as the default mount option using <code>tune2fs -o journal_data_ordered /dev/sda1</code> &#8211; you will have to re-run fsck (preferably from a rescue system) and remount root / reboot after this operation. </p>
<p>With these settings in place, the metadata is guaranteed to be recoverable from the journal even in the event of a sudden power failure. The actual data is also consistently written to disk, although you may see data of several seconds before the power outage lost on bootup. If this is not acceptable, you might consider using the <code>tune2fs -o journal_data /dev/sda1</code> mount option with your filesystem &#8211; this would include all data written to disk in the journal &#8211; this obviously would give you better data consistency but at the cost of a performance penalty and a higher wear level on your SSD.</p>
<p class="ref-link">Check <a href="http://serverfault.com/questions/318104/prevent-data-corruption-on-ext4-linux-drive-on-power-loss" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/prevent-data-corruption-on-ext4linux-drive-on-power-loss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Temporary external mounting of 3.5&#8243; SATA/IDE drives</title>
		<link>http://adminsgoodies.com/temporary-external-mounting-of-3-5-sataide-drives/</link>
		<comments>http://adminsgoodies.com/temporary-external-mounting-of-3-5-sataide-drives/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 04:00:47 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[sata]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/temporary-external-mounting-of-3-5-sataide-drives/</guid>
		<description><![CDATA[What do you use for temporarily externally mounting 3.5&#8243; SATA and IDE hard drives? When I&#8217;m in the field and just have a laptop with me, I&#8217;d like to be able to mount a client&#8217;s drive to my laptop for data recovery, etc. Is a separate USB enclosure for SATA and IDE the best option? Any other ideas? I use the Newer Technology USB 2.0 Universal Drive Adapter. It&#8217;s inexpensive, small, and works on IDE [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>What do you use for temporarily externally mounting 3.5&#8243; SATA and IDE hard drives?  When I&#8217;m in the field and just have a laptop with me, I&#8217;d like to be able to mount a client&#8217;s drive to my laptop for data recovery, etc.  Is a separate USB enclosure for SATA and IDE the best option?   Any other ideas?</p>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>I use the Newer Technology USB 2.0 Universal Drive Adapter.  It&#8217;s inexpensive, small, and works on IDE or SATA drives.</p>
<p><a href="http://eshop.macsales.com/item/Newer%20Technology/U2NV2SPATA/" rel="nofollow">http://eshop.macsales.com/item/Newer%20Technology/U2NV2SPATA/</a></p>
<p class="ref-link">Check <a href="http://serverfault.com/questions/7470/temporary-external-mounting-of-3-5-sata-ide-drives" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/temporary-external-mounting-of-3-5-sataide-drives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can I use an EIDE ATA-133 hard drive in a server that uses SATA?</title>
		<link>http://adminsgoodies.com/can-i-use-an-eide-ata-133-hard-drive-in-a-server-that-uses-sata/</link>
		<comments>http://adminsgoodies.com/can-i-use-an-eide-ata-133-hard-drive-in-a-server-that-uses-sata/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 03:25:45 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[hard-drive]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[sata]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/can-i-use-an-eide-ata-133-hard-drive-in-a-server-that-uses-sata/</guid>
		<description><![CDATA[I have an old 160 GB EIDE ATA-133 hard drive, which I would like to use in my Dell PowerEdge T105 server. However, the cables inside the T105 are SATA, which won&#8217;t connect to the drive. Is there some way I can connect this? Are there adapter cables available? Or do I need to buy some additional hardware for the server to use this drive? You can find PCI PATA adapters for reasonable prices, usually [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I have an old 160 GB EIDE ATA-133 hard drive, which I would like to use in my Dell PowerEdge T105 server.</p>
<p>However, the cables inside the T105 are SATA, which won&#8217;t connect to the drive.</p>
<p>Is there some way I can connect this? Are there adapter cables available? Or do I need to buy some additional hardware for the server to use this drive?</p>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>You can find PCI PATA adapters for reasonable prices, usually cheaper than a SATA-to-PATA adapter.</p>
<p class="ref-link">Check <a href="http://serverfault.com/questions/153887/can-i-use-an-eide-ata-133-hard-drive-in-a-server-that-uses-sata" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/can-i-use-an-eide-ata-133-hard-drive-in-a-server-that-uses-sata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can I prevent a Linux server from locking up/spewing console errors when a hard drive fails?</title>
		<link>http://adminsgoodies.com/can-i-prevent-a-linux-server-from-locking-upspewing-console-errors-when-a-hard-drive-fails/</link>
		<comments>http://adminsgoodies.com/can-i-prevent-a-linux-server-from-locking-upspewing-console-errors-when-a-hard-drive-fails/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 10:45:07 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[software-raid]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/can-i-prevent-a-linux-server-from-locking-upspewing-console-errors-when-a-hard-drive-fails/</guid>
		<description><![CDATA[I have a Linux server (CentOS 5.5) that has two identical IDE hard drives. I&#8217;ve used software RAID (mdadm) to create mirrors for each filesystem, so that either hard drive could fail and no data would be lost. Today one of my hard drives failed. The whole point of RAID should be to allow the system to keep running when this happens; but what happened instead was that the console began spewing the same 4 [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I have a Linux server (CentOS 5.5) that has two identical IDE hard drives. I&#8217;ve used software RAID (mdadm) to create mirrors for each filesystem, so that either hard drive could fail and no data would be lost.</p>
<p>Today one of my hard drives failed. The whole point of RAID should be to allow the system to keep running when this happens; but what happened instead was that the console began spewing the same 4 lines over and over:</p>
<pre><code>hdb: task_out_intr: status=0x61 { DriveReady DeviceFault Error }
hdb: task_out_intr: error=0x04 { DriveStatusError }
ide: failed opcode was: unknown
ide0: reset: success
</code></pre>
<p>Due to the high rate of errors being produced, the console was unusable. I was able to SSH in, but the first command I tried just hung. I SSH&#8217;ed in again and tried to reboot, but that got hung up as well. Ultimately I had to physically reset the machine.</p>
<p>I know how to remove the failed drive from the MD and replace it, etc. But having the machine lock up and become unusable in this situation seems to defeat the whole point of having RAID mirrors in the first place.</p>
<p>Is this just the way the Linux kernel always behaves in this situation? Or is there some way to configure the kernel so that when a hard drive fails, it rate-limits the errors being produced, and doesn&#8217;t prevent the machine from being used and cleanly rebooted?</p>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>I haven&#8217;t run into this, but since you&#8217;re using software RAID, it&#8217;s <em>possible</em> that the hard disk failure is causing something to interfere with I/O on the disk controller, so you&#8217;re getting other failures like the locking up of commands.</p>
<p>The data should be intact (unless it&#8217;s corrupted, in which case you have duplicated corruption). If the drive itself failed you should be able to power down, remove the bad drive, power back up and hopefully things will come back online with a broken mirror set.</p>
<p>Sounds to me like the nature of the failure isn&#8217;t sitting well with the controller. Take out the bad drive. It doesn&#8217;t do you any good to keep it in there and can be causing more harm.</p>
<p class="ref-link">Check <a href="http://serverfault.com/questions/183547/can-i-prevent-a-linux-server-from-locking-up-spewing-console-errors-when-a-hard-d" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/can-i-prevent-a-linux-server-from-locking-upspewing-console-errors-when-a-hard-drive-fails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
