<?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>LucasManual.com</title>
	<atom:link href="http://lucasmanual.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://lucasmanual.com/blog</link>
	<description>A ton of usefull manuals and reference information that make life easier.  -- Thank you for choosing LucasManual !</description>
	<lastBuildDate>Sun, 27 Jan 2013 20:32:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Linux System Recovery part 1</title>
		<link>http://lucasmanual.com/blog/?p=133</link>
		<comments>http://lucasmanual.com/blog/?p=133#comments</comments>
		<pubDate>Sun, 27 Jan 2013 19:53:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Corporate]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://lucasmanual.com/blog/?p=133</guid>
		<description><![CDATA[In December 2012, there was a power outage mostly due to blowing fuse at the fuse box. For those that don&#8217;t deal with that much, older fuses will trip because the connectors are worn out. Also on a 20amp fuse you should not go over 60% output, so 14amp would be safe. You can replace [...]]]></description>
			<content:encoded><![CDATA[<p>In December 2012, there was a power outage mostly due to blowing fuse at the fuse box. For those that don&#8217;t deal with that much, older fuses will trip because the connectors are worn out. Also on a 20amp fuse you should not go over 60% output, so 14amp would be safe. You can replace with new fuse, to minimize this problem, and of course buying a uninterrupted power supply (ups) would mitigate the system turning off and on while we figure out why the fuse is being tripped.</p>
<p><strong>System Crash</strong><br />
System won&#8217;t boot. It says that root partition is not available. Unable to load or mount any of the file systems. Looks like all the mount points are gone, or unable to read.</p>
<p><strong>System Rescue</strong></p>
<p>In Debian rescue live CD</p>
<p>#Scan for mdadm device<br />
<strong>mdadm &#8211;examine &#8211;scan</strong></p>
<p>#Update mdadm.conf with what what found<br />
<strong>mdadm &#8211;examine &#8211;scan &gt;&gt; /etc/mdadm/mdadm.conf</strong></p>
<p>#Assemble the raid. Examine scan should show you the name it wants you to use if different them md127<br />
<strong> mdadm &#8211;assemble &#8211;scan /dev/md127</strong></p>
<p>#See what got assembled<br />
<strong> cat /proc/mdstat</strong></p>
<p>#Now If you have LVM2 then need to mount LVM</p>
<p>#See if there is LVM group on your newly mounted mdadm device /dev/md127 for example.<br />
<strong>pvscan</strong></p>
<p>#Display more about the LVM2 group<br />
<strong>vgdisplay</strong></p>
<p>#See what logical disks are there(The /dev/md127 should match to what you found in prior commands)<br />
<strong>lvmdiskscan</strong></p>
<p>#Display the drives in md device<br />
<strong>lvdisplay |more</strong></p>
<p>#Display the list of volumes<br />
<strong>lvscan</strong></p>
<p>#Now we should have our raid device assembled and we should know a list of lvm drives(partitions) on the<br />
#lvm group. We should see from lvscan what are their mount points</p>
<p>#if the lvm group shows inactive you can activate it by</p>
<p>#lvscan shows&#8230;Example<br />
#inactive /dev/my_lvmgroup/my_root<br />
#inactive /dev/my_lvmgroup/my_home<br />
#inactive /dev/my_lvmgroup/my_swap</p>
<p>#Then do this.<strong> This will change the inactive status to active.</strong><br />
<strong>lvchange -a y /dev/my_lvmgroup</strong></p>
<p>#You can deactivate the group but make sure all drives were unmounted by you running command umount on it.</p>
<p>Now that we have mounted the drives its time to recover. First we need to find out what file system are on our /dev/my_lvmgroup/my_root and /dev/my_lvmgroup/my_home. Then we need to do a file system check, and calculate our damages.  </p>
<p><!--http://oss.sgi.com/archives/xfs/2009-02/msg00119.html--></p>
]]></content:encoded>
			<wfw:commentRss>http://lucasmanual.com/blog/?feed=rss2&#038;p=133</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mdadm Raid5 &#8211; How to replace failed drive GPT partition</title>
		<link>http://lucasmanual.com/blog/?p=123</link>
		<comments>http://lucasmanual.com/blog/?p=123#comments</comments>
		<pubDate>Fri, 21 Dec 2012 20:30:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Corporate]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://lucasmanual.com/blog/?p=123</guid>
		<description><![CDATA[Install gdisk. On debian squeeze you need to add main backports vi /etc/apt/source.list #Add below deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free Install gdisk aptitude install gdisk Drive sdb1 failed? Show details of partition md0 mdadm --detail /dev/md0 cat /proc/mdstat Personalities : [raid6] [raid5] [raid4] md0 : active raid5 sdc1[1] sdd1[2] 3907028864 blocks level 5, 64k [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Install gdisk. On debian squeeze you need to add main backports </strong><br />
<code>vi /etc/apt/source.list<br />
<strong>#Add below</strong><br />
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free<br />
</code><br />
<strong>Install gdisk </strong><br />
<code>aptitude install gdisk<br />
</code><br />
Drive sdb1 failed? Show details of partition md0<br />
<code>mdadm --detail /dev/md0</code></p>
<p><code>cat /proc/mdstat<br />
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdc1[1] sdd1[2]
      3907028864 blocks level 5, 64k chunk, algorithm 2 [3/2] [_UU]
<p></code><br />
Drive sdb1 is already removed. but if you need to remove it manually you can: </p>
<p><code>mdadm /dev/mmdadm /dev/md0 -r /dev/sdb1<br />
</code><br />
<strong>    SHUT DOWN IF YOU NEED TO REPALCE DRIVE. MAKE SURE NEW DRIVE IS STILL sdb.</strong><br />
<strong>Look how disk is structured and what partition type it has </strong><br />
<code>sgdisk -p  /dev/sdb<br />
Disk /dev/sdb: 3907029168 sectors, 1.8 TiB<br />
Logical sector size: 512 bytes<br />
Disk identifier (GUID): 0ED13F81-6EEA-4E12-9F27-DD806CF1F09C<br />
Partition table holds up to 128 entries<br />
First usable sector is 34, last usable sector is 3907029134<br />
Partitions will be aligned on 8-sector boundaries<br />
Total free space is 0 sectors (0 bytes)</p>
<p>Number  Start (sector)    End (sector)  Size       Code  Name<br />
   1              34      3907029134   1.8 TiB     FD00<br />
</code><br />
<strong>Now copy partition A structure into partition B </strong></p>
<p><strong>#sgdisk -R=/dev/TO_THIS_DISK /dev/FROM_THIS_DISK</strong><br />
<code>sgdisk -R=/dev/sdb /dev/sda<br />
<strong>#Give new GUID since above options clones the disk including GUID</strong><br />
sgdisk -G /dev/sdb</code></p>
<p><strong>Now readd the drive to md0 </strong><br />
<code><br />
mdadm /dev/md0 -a /dev/sdb1<br />
</code><br />
<strong>Check the status </strong><br />
<code><br />
cat /proc/mdstat<br />
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdb1[3] sda1[1] sdc1[2]
      3907028864 blocks level 5, 64k chunk, algorithm 2 [3/2] [_UU]
      [>....................]  recovery =  0.0% (124204/1953514432) finish=786.3min speed=41401K/sec</code><br />
<strong>Done. Check back in few hours to see if it finished.</strong><br />
Keywords: fdisk,sdisk, sgdisk, gdisk,parted,gpt, mbr,raid5,mdadm,linux,debian,</p>
]]></content:encoded>
			<wfw:commentRss>http://lucasmanual.com/blog/?feed=rss2&#038;p=123</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gnome shell and Debian Wheezy</title>
		<link>http://lucasmanual.com/blog/?p=104</link>
		<comments>http://lucasmanual.com/blog/?p=104#comments</comments>
		<pubDate>Sat, 24 Mar 2012 01:23:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://lucasmanual.com/blog/?p=104</guid>
		<description><![CDATA[Recently upgraded to Debian Wheezy (testing). The improvements are nice, and the visual effects and the quick search are great, but the gnome shell requires some minor tweaks for me: Add maximize and minimize buttonsTo add minimize, and maximize buttons Install gnome-tweak-tool aptitude install gnome-tweak-tool Then click on shell: And set the "Arrangement of buttons [...]]]></description>
			<content:encoded><![CDATA[<p>Recently upgraded to Debian Wheezy (testing). The improvements are nice, and the visual effects and the quick search are great, but the gnome shell requires some minor tweaks for me:</p>
<ul>
<li><strong>Add maximize and minimize buttons</strong>To add minimize, and maximize buttons Install gnome-tweak-tool<br />
<code><br />
aptitude install gnome-tweak-tool</code></p>
<p>Then click on shell:<br />
And set the<code> "Arrangement of buttons on toolbar" : All</code></p>
<p>Then reload gnome shell by<br />
<code>press ALT + F2 and type "r" </code></li>
<li> <strong>To enable Desktop Icons and Right Click Do:</strong><br />
<code><br />
Open dconf by pressing alt + f2 and running:<br />
dconf-editor<br />
Go to org &gt; gnome &gt; desktop &gt; background and check the box to show desktop icons.</code></li>
<li> <strong>If you are using nvidia you might expirance this error when you press super (win) + iceweasel or any other program name you are looking for:</strong>
<p><code>Mar 23 19:43:23  kernel: [17927.866833] gnome-shell[29489]: segfault at 10 ip 00007f129f455c0f sp 00007f1280632658 error 6 in libnvidia-tls.so.295.20[7f129f455000+3000]
Mar 23 19:43:23  x-session-manager[7995]: WARNING: Application 'gnome-shell.desktop' killed by signal<br />
</code></p>
<p>Solution (fix) :<br />
<code>echo &gt; /home/lucas/.local/share/recently-used.xbel<br />
su root<br />
chattr +i /home/lucas/.local/share/recently-used.xbel<br />
</code></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://lucasmanual.com/blog/?feed=rss2&#038;p=104</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade to Iceweasel 9 /Firefox 9 on Debian Squeeze</title>
		<link>http://lucasmanual.com/blog/?p=94</link>
		<comments>http://lucasmanual.com/blog/?p=94#comments</comments>
		<pubDate>Fri, 27 Jan 2012 21:42:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://lucasmanual.com/blog/?p=94</guid>
		<description><![CDATA[To update/upgrade iceweasel to latest version in Debian Squeeze do the following: Add these two repositories into /etc/apt/source.list deb http://backports.debian.org/debian-backports squeeze-backports main deb http://mozilla.debian.net/ squeeze-backports iceweasel-release then aptitude update apt-get install -t squeeze-backports iceweasel DONE. You should see: apt-get install -t squeeze-backports iceweasel Reading package lists... Done Building dependency tree Reading state information... Done The [...]]]></description>
			<content:encoded><![CDATA[<p>To update/upgrade iceweasel to latest version in Debian Squeeze do the following:</p>
<p>Add these two repositories into<br />
<code>/etc/apt/source.list</code></p>
<p><code>deb http://backports.debian.org/debian-backports squeeze-backports main<br />
deb http://mozilla.debian.net/ squeeze-backports iceweasel-release</code></p>
<p>then<br />
<code>aptitude update<br />
apt-get install -t squeeze-backports iceweasel</code></p>
<p>DONE.</p>
<p>You should see:<br />
<code>apt-get install -t squeeze-backports iceweasel<br />
Reading package lists... Done<br />
Building dependency tree<br />
Reading state information... Done<br />
The following extra packages will be installed:<br />
  libcairo2 libmozjs9d libnss3-1d libpixman-1-0 libsqlite3-0 xulrunner-9.0<br />
Suggested packages:<br />
  ttf-mathematica4.1 mozplugger<br />
The following NEW packages will be installed:<br />
  libmozjs9d xulrunner-9.0<br />
The following packages will be upgraded:<br />
  iceweasel libcairo2 libnss3-1d libpixman-1-0 libsqlite3-0<br />
5 upgraded, 2 newly installed, 0 to remove and 237 not upgraded.<br />
Need to get 18.1 MB of archives.<br />
After this operation, 32.9 MB of additional disk space will be used.<br />
Do you want to continue [Y/n]? y<br />
</code></p>
<p>Keywords: Debian, Linux, iceweasel,firefox, </p>
]]></content:encoded>
			<wfw:commentRss>http://lucasmanual.com/blog/?feed=rss2&#038;p=94</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade Grub to Grub-pc</title>
		<link>http://lucasmanual.com/blog/?p=40</link>
		<comments>http://lucasmanual.com/blog/?p=40#comments</comments>
		<pubDate>Mon, 03 Oct 2011 03:58:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Corporate]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://lucasmanual.com/blog/?p=40</guid>
		<description><![CDATA[During upgrade of Lenny to Squeeze I run into an an issue with upgrading grub to grub2. My 4x2Tb drivers were created using GDP partition. As a result of the upgrade the grub-pc had an issue with my gpt partition. If you receive any of these errors you might be in a similar situation. The [...]]]></description>
			<content:encoded><![CDATA[<p>During upgrade of Lenny to Squeeze I run into an an issue with upgrading grub to grub2. My 4x2Tb drivers were created using GDP partition. As a result of the upgrade the grub-pc had an issue with my gpt partition. If you receive any of these errors you might be in a similar situation. The fix is pretty easy, so hopefully this will guide you through it.</p>
<blockquote>
<pre>grub-installer: grub-setup: warn: This GPT partition label has no BIOS
Boot Partition; embedding won’t be possible!
</pre>
</blockquote>
<p>or</p>
<blockquote><p>grub-installer: grub-setup: error: Embedding is not possible, but this</p>
<p>is required when the root device is on a RAID array or LVM volume.</p></blockquote>
<p>or</p>
<blockquote>
<pre>grub loading...
no module name found
</pre>
</blockquote>
<p>or</p>
<blockquote><p>After restart I can only see &#8220;GRUB&gt;&#8221;.</p></blockquote>
<p>(If you have above please read the whole post, and especially the &#8220;debug&#8221; portion.)</p>
<p>I&#8217;ve started from Debian cd (rescue) mode. Then I&#8217;ve assembled my raid partition (sdb1,sdc1,sdd1) and<br />
executed into shell of my lvm root group mapper_xyz_root. From there I run &#8220;upgrade-from-grub-legecy&#8221;</p>
<p>**Long story short.  It seems as the because I am using 4 x 2TB drivers and all 4 were<br />
created using GPT partition table, and my computer/mother board was<br />
purchased before 2010 it does not support GPT EFI, so grub needed more<br />
space then MBR allowed, and was telling me<strong> no module</strong> found because it<br />
didn&#8217;t have enough space to be installed.</p>
<p>Steps:<br />
1. First I tried running the &#8220;<strong>grub-install /dev/sda</strong>&#8221; I would get:</p>
<blockquote><p>grub-installer: grub-setup: warn: This GPT partition label has no BIOS<br />
Boot Partition; embedding won’t be possible!</p></blockquote>
<blockquote><p>and<br />
grub-installer: grub-setup: error: Embedding is not possible, but this<br />
is required when the root device is on a RAID array or LVM volume.</p></blockquote>
<p>I found this post:<br />
&lt;<a href="http://www.shuvoovuhs.com/linux/grub-installation-issue-with-2-tb-hdd-gpt-requires-bios-boot-partition/" target="_blank">http://www.shuvoovuhs.com/linux/grub-installation-issue-with-2-tb-hdd-gpt-requires-bios-boot-partition/</a>&gt;<br />
which said ( <strong>*have to* create a BIOS Boot Partition</strong>).</p>
<p>2. Reading up on it I concluded that my motherboard does not support<br />
GPT EFI and therefore I do indeed need that partition:<br />
<a href="http://en.wikipedia.org/wiki/BIOS_Boot_partition" target="_blank">http://en.wikipedia.org/wiki/BIOS_Boot_partition</a></p>
<p>3. Now since I only have one boot partition on /dev/sda1 (100mb) I had<br />
199.9GB free. I decided to create a partition right after my 100mb. In<br />
rescue mode cd I installed parted (in case its not installed)<br />
aptitude install parted<br />
then proceeded to install my new partition.<br />
parted /dev/sda print<br />
parted /dev/sda unit MB print<br />
##this showed partion 1 as (31.4kb to 100MB)<br />
parted /dev/sda<br />
mkpart biosboot 100MB 101MB<br />
##above created partition 2<br />
set 2 bios_grub on<br />
##Above enabled the bios grub partition</p>
<p>Then I did grub install and it successfully installed. (I rebooted and<br />
it worked.</p>
<p>I hope you have enough room to create a new partition. This should help you out. Most time took to research why I  &#8220;HAVE TO CREATE BIOS BOOT PARTITION&#8221;, and how to use &#8220;parted&#8221; to create a new partition, since none of the fdisk tools work with GPT partition table just yet. Enjoy. See the debug portion for how to get additional information out of your system.</p>
<p><strong>Debug: More details :</strong></p>
<p>In the process of upgrading from debian lenny amd64 to debian squeezy amd64 I was able to successfully upgrade to kernel 32 and new udev as <a title="Debian upgrade from lenny" href="http://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html#newkernel" target="_blank">Debian Release notes suggest</a>. Then after reboot I followed with apt-get dist-upgrade.</p>
<p>Everything went fine, but towards the end I was asked to upgrade to<br />
grub-pc. During this choice I was asked to specify mbr to install new<br />
boot loader. I&#8217;ve selected my a wrong driver. Instead of selecting &#8220;/dev/sda&#8221; I&#8217;ve selected a different drive. <strong>(Always select the first hard drive in the list if you are not sure)</strong> (I thought it was &#8220;flash&#8221; drive that I have used before to hold my &#8220;boot&#8221; partition, but on this machine my boot parition was on  /dev/sda1&#8243;</p>
<p>After restart I can only see &#8220;GRUB&gt;&#8221;.<br />
<em>At this point I should have tried starting the system by issueing few grub commands. More on it shortly. </em></p>
<p><em> </em><br />
While Recovering from grub-pc install failure. I&#8217;ve started from cd<br />
(rescue) mode. I then assembled my raid partition (sdb1,sdc1,sdd1) and<br />
executed into shell of my lvm root group mapper_xyz_root. From there I<br />
run &#8220;upgrade-from-grub-legecy&#8221; and this time I&#8217;ve selected my usb and<br />
sda to install grub.</p>
<p>Still no lock.</p>
<p>Then I tried &#8220;update-grub&#8221;</p>
<p>Now I get &#8220;grub loading&#8230;<br />
no module name found&#8221;</p>
<p>What should I do now? I&#8217;ve logged in with rescue cd again and now my<br />
/boot partition no longer holds other files except for &#8220;/boot/grub/..&#8221;<br />
What happened to my kernel files 26 and 32 that were on the /boot? <em>(This was my fault as it seem /boot partition was not mounted properly.  I have my boot partition somewhere else, yet somehow I was looking at  /boot on my root partition.)</em></p>
<p>I&#8217;ve posted to debian mailing list:</p>
<p><em>What are my choices on installing grub-pc? Do I need &#8220;boot&#8221; partition?<br />
What should be on it? Why did /boot kernel files got removed? Should I be<br />
installing grub on my lvm root group? or sda? or /boot flashdrive?</em></p>
<p><em>&gt; During this choice I was asked to specify mbr to install new<br />
</em></p>
<div><em> &gt; boot loader. I&#8217;ve selected my &#8220;flash&#8221; drive that I have used before to<br />
&gt; hold my &#8220;boot&#8221; partition I believe.</em></p>
</div>
<p><span style="text-decoration: underline;">I think the most normal installation is to select your first raw<br />
drive.  That is, if you have /boot on /dev/sda1 and / on /dev/sda5 or<br />
some such then you would install grub on /dev/sda without adding any<br />
partition numbers.</span></p>
<p>**That is correct, I don&#8217;t know why I thought I had a usb, but in this<br />
computer I did not have a usb driver, so I should have selected<br />
/dev/sda.  In rescue mode I did that many times and it still failed.</p>
<div>
<p>&gt; After restart I can only see &#8220;GRUB&gt;&#8221;.</p>
</div>
<p>Grub appears to be installed then.  But the problem would seem to be<br />
that grub&#8217;s configuration file didn&#8217;t point to the root filesystem.</p>
<p>** Correct, at that point I&#8217;m not sure if that was still grub 1 or<br />
grub 2(grub-pc). (more on it below) The information below was very<br />
useful after I gut the grub&gt; menu.</p>
<p><em>If you have &#8220;grub&gt; &#8221; you can:</em></p>
<p><span style="text-decoration: underline;">At that point you can issue instructions to grub.  You should be able<br />
to get some good information.  It is a little confusing to describe<br />
but the most important thing to know is that TAB will expand and list<br />
your possible options.  Use this to explore your system at that point<br />
and to see what is where.  You can type in &#8220;help&#8221; to get a list of<br />
commands available but that will produce a lot of output and will<br />
overwhelm you.</span></p>
<p>At the grub prompt type in &#8220;root (&#8221; and then hit TAB to have it<br />
complete.  It will look like this:</p>
<blockquote><p>grub&gt; root (</p></blockquote>
<p><strong>Press TAB</strong> at that point and it will fill out to the available<br />
options.</p>
<blockquote><p>grub&gt; root (hd0,</p></blockquote>
<p><strong>Press TAB again</strong> to have it list them out.</p>
<blockquote><p>grub&gt; root (hd0,<br />
Possible partitions are:<br />
Partition hd0,sda1<br />
Partition hd0,sda2</p></blockquote>
<p><strong>Then select one of them</strong> and repeat to list the contents of that<br />
filesystem.</p>
<blockquote><p>grub&gt; root (hd0,0)/<br />
Possible files are:<br />
lost+found/ System.map-2.6.32-5-686 vmlinuz-2.6.32-5-686 grub/<br />
config-2.6.32-5-686 initrd.img-2.6.32-5-686</p></blockquote>
<p><strong>That verifies that on my system hd0,0 (/dev/sda1) is my /boot<br />
partition.</strong> Repeat again with the other partition numbers.</p>
<blockquote><p>grub&gt; root (hd0,1)/<br />
Possible files are:<br />
bin/ boot/ dev/ home/ lib/ lost+found/ media/ mnt/ opt/ &#8230;</p></blockquote>
<p><strong>That verifies that on the system I tried that hd0,1 (/dev/sda2) is the<br />
root partition.</strong></p>
<p>So to manually tell grub what it needs to boot I can type in the<br />
following:</p>
<blockquote><p>grub&gt; root (hd0,0)<br />
grub&gt; kernel /vmlinuz-2.6.32-3-amd64 root=/dev/sda2 ro<br />
grub&gt; initrd /initrd.img-2.6.32-3-amd64<br />
grub&gt; boot</p></blockquote>
<p><strong>Use TAB to complete the filenames</strong> to ensure that you have the right<br />
location and to save you from typing in all of the details of the<br />
version numbers and architecture type.</p>
<p><strong>If that works then your problem is not your grub install</strong> to the boot<br />
partition but rather your configuration for grub in /boot/grub/* that<br />
is the problem.</p>
<div>&gt; While Recovering from grub-pc install failure. I&#8217;ve started from cd<br />
&gt; (rescue) mode.</p>
</div>
<p>A debian-installer disk in rescue mode should work okay.</p>
<div>&gt; I then assembled my raid partition (sdb1,sdc1,sdd1) and</p>
</div>
<p><span style="text-decoration: underline;">Why did you need to assemble the raid?</span></p>
<p>**I think in the &#8220;rescue CD mode it asks you to assemble raid or not&#8221;<br />
You can select automatic assemble if you want to or you could pick a<br />
different driver as your root. There was no issue with initrd as you<br />
are suggesting below, but<strong> it made me pay attention to what is mounted<br />
and what is not!!</strong></p>
<p><span style="text-decoration: line-through;">That points to a different problem.  The raid should be automatically assembled by the initial<br />
ram disk (initrd) and if it isn&#8217;t then you are past grub and onto the<br />
initrd phase of boot.</span></p>
<p><span style="text-decoration: line-through;">Did you by any chance add a disk to the raid but not rebuild the<br />
initrd image?  The initrd has the UUIDs of every disk in the raid as a<br />
copy of the /etc/mdadm/mdadm.conf file in the initrd.  If you have<br />
added a disk to the raid and it is required for the lvm to start then<br />
this also needs to be added to the initrd copy of the mdadm.conf<br />
file.  Otherwise it will fail to start the raid at boot time.</span></p>
<div><span style="text-decoration: line-through;">&gt; executed into shell of my lvm root group mapper_xyz_root. From there I<br />
&gt; run &#8220;upgrade-from-grub-legecy&#8221; and this time I&#8217;ve selected my usb and<br />
&gt; sda to install grub.</span></p>
</div>
<p>I think you are mixing issues.  I think you mixing up grub with raid<br />
with lvm but really those are all separate.  This is very easy to<br />
become confused about but just the same I think that is what is<br />
happening.</p>
<div>&gt; Then I tried &#8220;update-grub&#8221;<br />
&gt;<br />
&gt; Now I get &#8220;grub loading&#8230;<br />
&gt; no module name found&#8221;</p>
</div>
<p><span style="text-decoration: line-through;">That I don&#8217;t know.</span></p>
<p>** It seems as the because I am using 4 x 2TB drivers and all 4 were<br />
created using GPT partition table, and my computer/mother board was<br />
purchased before 2010 it does not support GPT EFI, so grub needed more<br />
space then MBR allowed, and was telling me no module found because it<br />
didn&#8217;t have enough space to be installed.</p>
<p>Steps:<br />
1. First I tried running the &#8220;grub-install /dev/sda&#8221; I would get:</p>
<p>grub-installer: grub-setup: warn: This GPT partition label has no BIOS<br />
Boot Partition; embedding won’t be possible!</p>
<p>and<br />
grub-installer: grub-setup: error: Embedding is not possible, but this<br />
is required when the root device is on a RAID array or LVM volume.</p>
<p>I found this post:<br />
&lt;<a href="http://www.shuvoovuhs.com/linux/grub-installation-issue-with-2-tb-hdd-gpt-requires-bios-boot-partition/" target="_blank">http://www.shuvoovuhs.com/linux/grub-installation-issue-with-2-tb-hdd-gpt-requires-bios-boot-partition/</a>&gt;<br />
which said ( *have to* create a BIOS Boot Partition).</p>
<p>2. Reading up on it I concluded that my motherboard does not support<br />
GPT EFI and therefore I do indeed need that partition:<br />
<a href="http://en.wikipedia.org/wiki/BIOS_Boot_partition" target="_blank">http://en.wikipedia.org/wiki/BIOS_Boot_partition</a></p>
<p>3. Now since I only have one boot partition on /dev/sda1 (100mb) I had<br />
199.9GB free. I decided to create a partition right after my 100mb. In<br />
rescue mode cd I installed parted (in case its not installed)<br />
aptitude install parted<br />
then proceeded to install my new partition.<br />
parted /dev/sda print<br />
parted /dev/sda unit MB print<br />
##this showed partion 1 as (31.4kb to 100MB)<br />
parted /dev/sda<br />
mkpart biosboot 100MB 101MB<br />
##above created partition 2<br />
set 2 bios_grub on<br />
##Above enabled the bios grub partition</p>
<p>Then I did grub install and it successfully installed. (I rebooted and<br />
it almost worked. I got the grub&gt; ) but there was nothing there. I&#8217;ve<br />
used what you email me to find my problem here.</p>
<p>When I did</p>
<blockquote><p>grub-install /dev/sda</p></blockquote>
<p>my /boot folder was in my &#8220;server1_lvmgroup-server1-root but that is<br />
not what I had. My boot was a seperate disc /dev/sda1. So the proper<br />
way I should have do it was:</p>
<blockquote><p>ls /boot<br />
#above shows only /boot/grub folder<br />
umount /boot<br />
#not mounted<br />
mount -a<br />
#this mounted my boot driver based on the /etc/fstab<br />
ls /boot<br />
#no I see<br />
initrd.img-2.6.26-2-686<br />
initrd.img-2.6.32-5-686<br />
vmlinuz-2.6.26-2-686<br />
vmlinuz-2.6.32-5-686</p></blockquote>
<p>##Now I do install grub</p>
<blockquote><p>grub-install /dev/sda<br />
update-grub</p></blockquote>
<p>##When you do update-grub it will find all kernels&#8230;it will say</p>
<blockquote><p>found kernel 2.6.26&#8230;<br />
found kernel 2.6.32&#8230;.</p>
<p>reboot, and it worked.</p></blockquote>
<p>I really appreciate your help.<br />
<span style="text-decoration: underline;">This should really be in the Upgrades from Debian 5.0 (lenny), as if your motherboard does not support GPT EFI then<br />
upgrade-from-grub-legacy will fail, and there is no instructions on how to go back.</span></p>
<p>I can&#8217;t really say at what point during the upgrade I had grub&gt;? but<br />
it all came down to creating a GPT Bios boot partition for grub-pc<br />
(grub2).</p>
<p><strong>Thank you.</strong></p>
<p><strong>***your email was most helpful. When I connected the dots with boot<br />
partition then it all went smooth.</strong></p>
<div>
<p><strong>&gt; What should I do now? I&#8217;ve logged in with rescue cd again and now my<br />
&gt; /boot partition no longer holds other files except for &#8220;/boot/grub/..&#8221;<br />
&gt; What happened to my kernel files 26 and 32 that were on the /boot?</strong></p>
</div>
<p><strong>Mounted the wrong partition? </strong> They should still be there.  Take a deep<br />
breath.  Remain calm.  Try it again.  They should be there.</p>
<p><span style="text-decoration: line-through;">If you have somehow wiped them out then you will need to either<br />
recover them or reinstall them from the chroot.</span></p>
<p>I have upgraded many machines from Lenny to Squeeze and although I<br />
think this upgrade has the more problems of any of the previous<br />
upgrades I have never had any of the problems you have mentioned.</p>
<div>&gt; What are my choices on installing grub-pc? Do I need &#8220;boot&#8221; partition?</div>
<p>Yes.</p>
<div>&gt; What should be on it?</div>
<p>Files such as:</p>
<blockquote><p>System.map-2.6.26-2-686<br />
System.map-2.6.32-5-686<br />
config-2.6.26-2-686<br />
config-2.6.32-5-686<br />
grub/<br />
initrd.img-2.6.26-2-686<br />
initrd.img-2.6.32-5-686<br />
vmlinuz-2.6.26-2-686<br />
vmlinuz-2.6.32-5-686</p></blockquote>
<div><span style="text-decoration: line-through;"> &gt; Why did files got removed?</span></div>
<p><span style="text-decoration: line-through;">Only you are in a position to know what you did.</span></p>
<div>&gt; Should I be installing grub on my lvm root group? or sda? or /boot<br />
&gt; flashdrive?</div>
<p>Since you are getting the grub prompt then you have successfully<br />
installed grub and your problem is with a later phase of the boot.</p>
<p>Sources:</p>
<p>http://www.rodsbooks.com/gdisk/booting.html</p>
<p>https://bbs.archlinux.org/viewtopic.php?id=114420</p>
<p>https://help.ubuntu.com/community/Grub2</p>
<p>http://lists.debian.org/debian-user/2011/08/msg00079.html</p>
<p>http://www.shuvoovuhs.com/linux/grub-installation-issue-with-2-tb-hdd-gpt-requires-bios-boot-partition/</p>
<p>http://ubuntuforums.org/showthread.php?t=1736409</p>
<p>http://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html#newkernel</p>
<p>http://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html#update-grub</p>
]]></content:encoded>
			<wfw:commentRss>http://lucasmanual.com/blog/?feed=rss2&#038;p=40</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samba Print Server</title>
		<link>http://lucasmanual.com/blog/?p=42</link>
		<comments>http://lucasmanual.com/blog/?p=42#comments</comments>
		<pubDate>Wed, 28 Sep 2011 21:24:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Print Server]]></category>

		<guid isPermaLink="false">http://lucasmanual.com/blog/?p=42</guid>
		<description><![CDATA[If you need to share printers, samba print server is for you. You will be able to Install drivers for each printer on the server Users will be able to double click on the new printer and it will get automatically installed and show up in their &#8220;Printers and Faxes&#8221; You will be able to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>If you need to share printers, samba print server is for you.</strong></p>
<p><strong>You will be able to</strong></p>
<ul>
<li><em>Install drivers for each printer on the server</em></li>
<li><em>Users will be able to double click on the new printer and it will get automatically installed and show up in their &#8220;Printers and Faxes&#8221;</em></li>
<li><em>You will be able to globally control pausing the printers is paused, or see completed jobs that are done by users</em></li>
<li><em>If for any reason printer is down, you will be able to move all print jobs from one printer to another possibly different printer (You can&#8217;t do that in Microsoft Windows)</em></li>
<li><em>Have once central place to maintain printing through the company</em></li>
</ul>
<p>&#8211; Install samba and cups</p>
<p>aptitude install samba cups</p>
<p>&#8211; Setup root user with a password</p>
<p>smbpasswd -a root</p>
<p>&#8211; Get a list of current permissions. The reason we are getting a list is to find out what  &#8220;everybody&#8221; user group can do. This setup here will allow anyuser to make changes to printers configuration, and to upload drivers. If you are controlling logins via samba domain then you can probably just give  SePrintOperatorPrivilege to the user in question. <strong>Here we are just trying to get it working in most simple way possible.</strong></p>
<p>&#8211; Lets add SePrintOperatorPrivilege to &#8220;everybody&#8221; so that we can upload drivers from any computer/any username. Note: <em>This replaces &#8220;printer admin = @ntadmin&#8221; or &#8220;printer admin = nobody&#8221; in the [print$] share in prior samba &lt;3.0 versions.</em></p>
<p>net rpc rights grant Everyone SePrintOperatorPrivilege</p>
<p>&#8211; Now &#8220;everyone&#8221; will have access to upload drivers. Lets update the smb.conf to enable our printer share.</p>
<p>vi  /etc/samba/smb.conf</p>
<p>&#8211; Change the security=users to security = share (uncomment it if necessary)</p>
<p>&#8211; The [printers] share should look like this:</p>
[printers]
comment = All Printers<br />
browseable = no<br />
path = /var/spool/samba<br />
printable = yes<br />
guest ok = no<br />
read only = yes<br />
create mask = 0700</p>
<p>&#8211; and [print$] should look like below. We are allowing write, we are allowing guest, we are forcing user root so that any drivers uploaded will have root user permissions.:</p>
[print$]
comment = Printer Drivers<br />
path = /var/lib/samba/printers<br />
browseable = yes<br />
read only = no<br />
guest ok = yes<br />
write ok = yes</p>
<p>write list = root, @lpadmin,nobody<br />
force user = root</p>
<p>&#8211; Restart Samba</p>
<p>/etc/init.d/samba restart</p>
<p>&#8211;You are now ready to add printers. Go to http://localhost:631 and press add printer.</p>
<p>&#8211; When done got to your Microsoft Windows machine and you will upload the drivers to the server.</p>
<p>Go to \\yourcomuter</p>
<p>&#8211; You should see the &#8220;Printers and Faxes&#8221;, click on it and right click on the printer, go to &#8220;Properties&#8221;, then click &#8220;Advanced&#8221;, and click &#8220;New Driver&#8221;. Follow the normal process and at the end the drivers will be installed on the server.</p>
<p><strong>&#8211; From any machine with same operating system as above you will go to \\computername double click on the printer, and it will automatically be installed on that computer. Enjoy maintenance free setup for years.<br />
</strong></p>
<p>Enjoy</p>
<p>Sources:</p>
<p><a title="Enable Advence Tab in Printers and Faxes - Samba Print Server" href="http://lists.samba.org/archive/samba/2007-March/129995.html" target="_blank">http://lists.samba.org/archive/samba/2007-March/129995.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lucasmanual.com/blog/?feed=rss2&#038;p=42</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mozilla Lightning on Debian Squeeze</title>
		<link>http://lucasmanual.com/blog/?p=28</link>
		<comments>http://lucasmanual.com/blog/?p=28#comments</comments>
		<pubDate>Mon, 13 Jun 2011 14:14:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Corporate]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://lucasmanual.com/blog/?p=28</guid>
		<description><![CDATA[Hello, To install Mozilla Lightning on Debian squeeze do the following: aptitude install iceowl-extension Fixes the following issues: If you are trying to install lightning plugin version 1.0b1 January 12, 2010 2.5 MB Works with: Thunderbird 3.0b4 &#8211; 3.0.* SeaMonkey 2.0b2 &#8211; 2.0.* and you are using amd64 then you might be getting these errors [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<h4>To install Mozilla Lightning on Debian squeeze do the following:</p>
<p><strong>aptitude install iceowl-extension</strong></h4>
<p>Fixes the following issues:<br />
<strong>If you are trying to install lightning plugin version <a title="Permanent link to this version" href="https://addons.mozilla.org/en-US/thunderbird/addon/lightning/versions/1.0b1">1.0b1</a> January 12, 2010           2.5 MB</strong></p>
<div>
<p>Works with:</p>
<ul>
<li>Thunderbird 3.0b4 &#8211; 3.0.*</li>
<li>SeaMonkey 2.0b2 &#8211; 2.0.*</li>
</ul>
</div>
<div>and you are using amd64 then you might be getting these errors if you download lightining from mozilla.org</div>
<p><strong>&#8220;Could not be installed because it is not compatible with  your Icedove build type (Linux_x86_64-gcc3). Please contact the author of this item about the problem.&#8221;</strong></p>
<p>Above installation fixes this issue. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://lucasmanual.com/blog/?feed=rss2&#038;p=28</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Computer Basics (Domain, Record your desktop, commandline)</title>
		<link>http://lucasmanual.com/blog/?p=9</link>
		<comments>http://lucasmanual.com/blog/?p=9#comments</comments>
		<pubDate>Mon, 30 May 2011 07:34:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Corporate]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://lucasmanual.com/blog/?p=9</guid>
		<description><![CDATA[Some basic videos that everybody in technology world should know and learn: Setup Domain Controller and know how to access your shared drives, setup user accounts, join domain, and use tools available to you. (1)http://www.youtube.com/watch?v=QGfwfWcLFMw (2)http://www.youtube.com/watch?v=PelA-_gT2qE (3)http://www.youtube.com/watch?v=8hrhwzN15A4 (4)http://www.youtube.com/watch?v=2-7g_gA9NCg (5) http://www.youtube.com/watch?v=T1AZgXqi2yQ Know how to record your desktop so you can record and do training manuals for [...]]]></description>
			<content:encoded><![CDATA[<p>Some basic videos that everybody in technology world should know and learn:</p>
<p>Setup Domain Controller and know how to access your shared drives, setup user accounts, join domain, and use tools available to you.</p>
<p>(1)<a href="http://www.youtube.com/watch?v=QGfwfWcLFMw">http://www.youtube.com/watch?v=QGfwfWcLFMw</a></p>
<p>(2)<a href="http://www.youtube.com/watch?v=PelA-_gT2qE" target="_blank">http://www.youtube.com/watch?v=PelA-_gT2qE</a></p>
<p>(3)<a href="http://www.youtube.com/watch?v=8hrhwzN15A4" target="_blank">http://www.youtube.com/watch?v=8hrhwzN15A4</a></p>
<p>(4)<a href="http://www.youtube.com/watch?v=2-7g_gA9NCg" target="_blank">http://www.youtube.com/watch?v=2-7g_gA9NCg</a></p>
<p>(5) <a href="http://www.youtube.com/watch?v=T1AZgXqi2yQ" target="_blank">http://www.youtube.com/watch?v=T1AZgXqi2yQ</a></p>
<p>Know how to record your desktop so you can record and do training manuals for users.</p>
<p><a href="http://www.youtube.com/watch?v=n9nAQg0B_Gk" target="_blank">http://www.youtube.com/watch?v=n9nAQg0B_Gk</a></p>
<p>Know your command line:</p>
<p><a href="http://www.youtube.com/watch?v=TPxNAp7VRcM" target="_blank">http://www.youtube.com/watch?v=TPxNAp7VRcM</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lucasmanual.com/blog/?feed=rss2&#038;p=9</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dell Latitude E6510 and Debian Squeeze</title>
		<link>http://lucasmanual.com/blog/?p=4</link>
		<comments>http://lucasmanual.com/blog/?p=4#comments</comments>
		<pubDate>Sun, 06 Mar 2011 23:08:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://lucasmanual.com/blog/?p=4</guid>
		<description><![CDATA[Hello, Installing Debian Squeeze on new I7 Core Dell Latitude E65, was easy. Installation went through ok, but after installation has finished, the X would not work. You can find details here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616604 Some details on fixing X was to login, and replace Xorg.conf. -Setting-up-Linux-Debian-Squeeze-on-a-Dell-Latitude-E6510-with-Nvida-Quadro-NVS-3100M-and-1920&#215;1080-Display After getting the X to work, this is a great [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Installing Debian Squeeze on new I7 Core Dell Latitude E65, was easy. Installation went through ok, but after installation has finished, the X would not work.</p>
<p>You can find details here:</p>
<p><a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616604">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616604</a></p>
<p>Some details on fixing X was to login, and replace Xorg.conf.</p>
<p><a href="http://www.robo47.net/blog/197-Setting-up-Linux-Debian-Squeeze-on-a-Dell-Latitude-E6510-with-Nvida-Quadro-NVS-3100M-and-1920x1080-Display">-Setting-up-Linux-Debian-Squeeze-on-a-Dell-Latitude-E6510-with-Nvida-Quadro-NVS-3100M-and-1920&#215;1080-Display</a></p>
<p>After getting the X to work, this is a great machine, fast, and with best operating system there is no limit to what you can do.</p>
<p>Enjoy your Dell Latitude E6510 !!!. I am!</p>
]]></content:encoded>
			<wfw:commentRss>http://lucasmanual.com/blog/?feed=rss2&#038;p=4</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
