<?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>Sys-Admin Information&#039;s &#187; Linux</title>
	<atom:link href="http://sysinfo.bascomp.org/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Reinstall grub on HP Smart Array</title>
		<link>http://sysinfo.bascomp.org/2010/04/reinstall-grub-on-hp-smart-array/</link>
		<comments>http://sysinfo.bascomp.org/2010/04/reinstall-grub-on-hp-smart-array/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 09:34:43 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[Boot]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/?p=293</guid>
		<description><![CDATA[Hi guys, long time no see. :d,
I want to share a triki or stupid trick on MBR problem.
Yesterday, I was fix a boot problem of HP Blade 460C with CentOS 5.4 i386 installed in my customer, some people in the Net fix that problem with reinstalling grub with grub-install command, I assume they have /dev/sda [...]]]></description>
			<content:encoded><![CDATA[<p>Hi guys, long time no see. :d,<br />
I want to share a triki or stupid trick on MBR problem.</p>
<p>Yesterday, I was fix a boot problem of HP Blade 460C with CentOS 5.4 i386 installed in my customer, some people in the Net fix that problem with reinstalling grub with grub-install command, I assume they have /dev/sda or /dev/hda on boot device, but since HP comes with RAID Controller (SMART ARRAY) hardware, the sda or hda seem not be use in here, because boot or any disk device come with /dev/cciss/c0d0.</p>
<p>So a workaround for solving this problem is just change boot device and device map on grub configuration.</p>
<p>See my old configuration bellow.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">-/etc/grub.conf-------
# grub.conf generated by anaconda
#
#
#boot=/dev/sda
# default=0 # commented out by Proliant HBA install script
default=2
fallback=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
[...]</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">-/boot/grub/device.map----
# this device map was generated by anaconda
(hd4)     /dev/cciss/c0d0
(hd0)     /dev/sda</pre></div></div>

<p>Now change "#boot=/dev/sda" with "boot=/dev/cciss/c0d0" in /etc/grub.conf<br />
and "(hd0) /dev/sda" with "(hd0) /dev/cciss/c0d0" in /boot/grub/device.map</p>
<p>after that just running simple grub command bellow</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> grub <span style="color: #660033;">--batch</span> <span style="color: #660033;">--device-map</span>=<span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>device.map <span style="color: #660033;">--config-file</span>=<span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>grub.conf
grub<span style="color: #000000; font-weight: bold;">&gt;</span> root <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
grub<span style="color: #000000; font-weight: bold;">&gt;</span> setup <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0<span style="color: #7a0874; font-weight: bold;">&#41;</span>
grub<span style="color: #000000; font-weight: bold;">&gt;</span> quit</pre></div></div>

<p>Restart and hope this help</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2010/04/reinstall-grub-on-hp-smart-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux System information</title>
		<link>http://sysinfo.bascomp.org/2008/05/linux-system-information/</link>
		<comments>http://sysinfo.bascomp.org/2008/05/linux-system-information/#comments</comments>
		<pubDate>Thu, 22 May 2008 03:51:54 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sysinfo]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/?p=52</guid>
		<description><![CDATA[System information
Show architecture of machine

bash&#62; arch
i686

Show used kernel version(1)

bash&#62; uname -r
2.6.9-67.0.15.ELsmp


bash&#62; cat /proc/version
Linux version 2.6.9-67.0.15.ELsmp &#40;mockbuild@builder10.centos.org&#41; &#40;gcc version 3.4.6 20060404 &#40;Red Hat 3.4.6-9&#41;&#41; #1 SMP Thu May 8 10:52:19 EDT 2008

Show hardware system components(SMBIOS / DMI)

bash&#62; dmidecode
# dmidecode 2.2
SMBIOS 2.3 present.
39 structures occupying 2026 bytes.
Table at 0×000F6024.
Handle 0×0000
DMI type 0, 19 bytes.
BIOS Information
Vendor: IBM
Version: -&#91;BWE130AUS-1.11&#93;-
Release [...]]]></description>
			<content:encoded><![CDATA[<h2>System information</h2>
<p>Show architecture of machine</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">arch</span>
i686</pre></div></div>

<p>Show used kernel version(1)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-r</span>
2.6.9-67.0.15.ELsmp</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>version
Linux version 2.6.9-67.0.15.ELsmp <span style="color: #7a0874; font-weight: bold;">&#40;</span>mockbuild<span style="color: #000000; font-weight: bold;">@</span>builder10.centos.org<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">gcc</span> version 3.4.6 <span style="color: #000000;">20060404</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Red Hat 3.4.6-<span style="color: #000000;">9</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #666666; font-style: italic;">#1 SMP Thu May 8 10:52:19 EDT 2008</span></pre></div></div>

<p>Show hardware system components(SMBIOS / DMI)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> dmidecode
<span style="color: #666666; font-style: italic;"># dmidecode 2.2</span>
SMBIOS <span style="color: #000000;">2.3</span> present.
<span style="color: #000000;">39</span> structures occupying <span style="color: #000000;">2026</span> bytes.
Table at <span style="color: #000000;">0</span>×000F6024.
Handle <span style="color: #000000;">0</span>×0000
DMI <span style="color: #7a0874; font-weight: bold;">type</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">19</span> bytes.
BIOS Information
Vendor: IBM
Version: -<span style="color: #7a0874; font-weight: bold;">&#91;</span>BWE130AUS-<span style="color: #000000;">1.11</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>-
Release Date: <span style="color: #000000;">10</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">25</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>
Address: 0xF0F40
Runtime Size: <span style="color: #000000;">61632</span> bytes
ROM Size: <span style="color: #000000;">4096</span> kB
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p><span id="more-52"></span><br />
Perform test reading on a hard-disk</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> hdparm <span style="color: #660033;">-tT</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda:
Timing cached reads: <span style="color: #000000;">3704</span> MB <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">2.00</span> seconds = <span style="color: #000000;">1852.28</span> MB<span style="color: #000000; font-weight: bold;">/</span>sec
Timing buffered disk reads: <span style="color: #000000;">172</span> MB <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">3.40</span> seconds = <span style="color: #000000;">50.52</span> MB<span style="color: #000000; font-weight: bold;">/</span>sec</pre></div></div>

<p>Show information CPU info</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>cpuinfo
processor : <span style="color: #000000;">0</span>
vendor_id : GenuineIntel
cpu family : <span style="color: #000000;">15</span>
model : <span style="color: #000000;">4</span>
model name : Intel<span style="color: #7a0874; font-weight: bold;">&#40;</span>R<span style="color: #7a0874; font-weight: bold;">&#41;</span> Xeon<span style="color: #7a0874; font-weight: bold;">&#40;</span>TM<span style="color: #7a0874; font-weight: bold;">&#41;</span> CPU 3.80GHz
stepping : <span style="color: #000000;">10</span>
cpu MHz : <span style="color: #000000;">3801.313</span>
cache <span style="color: #c20cb9; font-weight: bold;">size</span> : <span style="color: #000000;">2048</span> KB
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Verify memory use</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>meminfo
MemTotal: <span style="color: #000000;">4150156</span> kB
MemFree: <span style="color: #000000;">548712</span> kB
Buffers: <span style="color: #000000;">21072</span> kB
Cached: <span style="color: #000000;">2650428</span> kB
SwapCached: <span style="color: #000000;">0</span> kB
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Show file(s) swap</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>swaps
Filename Type Size Used Priority
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda2 partition <span style="color: #000000;">5944040</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-1</span></pre></div></div>

<p>Show mounted file system(s)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>mounts
rootfs <span style="color: #000000; font-weight: bold;">/</span> rootfs rw <span style="color: #000000;">0</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">/</span>proc <span style="color: #000000; font-weight: bold;">/</span>proc proc rw,nodiratime <span style="color: #000000;">0</span> <span style="color: #000000;">0</span>
none <span style="color: #000000; font-weight: bold;">/</span>dev tmpfs rw <span style="color: #000000;">0</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>root <span style="color: #000000; font-weight: bold;">/</span> ext3 rw <span style="color: #000000;">0</span> <span style="color: #000000;">0</span>
none <span style="color: #000000; font-weight: bold;">/</span>dev tmpfs rw <span style="color: #000000;">0</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">/</span>proc <span style="color: #000000; font-weight: bold;">/</span>proc proc rw,nodiratime <span style="color: #000000;">0</span> <span style="color: #000000;">0</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Display PCI devices</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">lspci</span> <span style="color: #660033;">-tv</span>
-<span style="color: #7a0874; font-weight: bold;">&#91;</span>0000:00<span style="color: #7a0874; font-weight: bold;">&#93;</span>-+-<span style="color: #000000;">00.0</span> Intel Corporation E7520 Memory Controller Hub
+-<span style="color: #000000;">00.1</span> Intel Corporation E7525<span style="color: #000000; font-weight: bold;">/</span>E7520 Error Reporting Registers
+-<span style="color: #000000;">03.0</span>-<span style="color: #7a0874; font-weight: bold;">&#91;</span>0000:04-06<span style="color: #7a0874; font-weight: bold;">&#93;</span>–+-<span style="color: #000000;">00.0</span>-<span style="color: #7a0874; font-weight: bold;">&#91;</span>0000:06<span style="color: #7a0874; font-weight: bold;">&#93;</span>–+-<span style="color: #000000;">01.0</span> QLogic Corp. ISP2312-based 2Gb Fibre Channel to PCI-X HBA
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">|</span> \-<span style="color: #000000;">01.1</span> QLogic Corp. ISP2312-based 2Gb Fibre Channel to PCI-X HBA
<span style="color: #000000; font-weight: bold;">|</span> \-<span style="color: #000000;">00.2</span>-<span style="color: #7a0874; font-weight: bold;">&#91;</span>0000:05<span style="color: #7a0874; font-weight: bold;">&#93;</span>–+-<span style="color: #000000;">01.0</span> Broadcom Corporation NetXtreme BCM5704S Gigabit Ethernet
<span style="color: #000000; font-weight: bold;">|</span> \-<span style="color: #000000;">01.1</span> Broadcom Corporation NetXtreme BCM5704S Gigabit Ethernet
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Show USB devices</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> lsusb <span style="color: #660033;">-tv</span>
Bus<span style="color: #666666; font-style: italic;"># 2</span>
<span style="color: #000000; font-weight: bold;">`</span>-Dev<span style="color: #666666; font-style: italic;"># 1 Vendor 0×0000 Product 0×0000</span>
<span style="color: #000000; font-weight: bold;">`</span>-Dev<span style="color: #666666; font-style: italic;"># 2 Vendor 0×04b4 Product 0×5203</span>
<span style="color: #000000; font-weight: bold;">|</span>-Dev<span style="color: #666666; font-style: italic;"># 3 Vendor 0×0644 Product 0×0000</span>
<span style="color: #000000; font-weight: bold;">`</span>-Dev<span style="color: #666666; font-style: italic;"># 4 Vendor 0×04b4 Product 0×6830</span>
Bus<span style="color: #666666; font-style: italic;"># 1</span>
<span style="color: #000000; font-weight: bold;">`</span>-Dev<span style="color: #666666; font-style: italic;"># 1 Vendor 0×0000 Product 0×0000</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/05/linux-system-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
