<?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>Lotjuh&#039;s notes &#187; os install</title>
	<atom:link href="http://notes.lotjuh.winnipeg.nl/tag/os-install/feed/" rel="self" type="application/rss+xml" />
	<link>http://notes.lotjuh.winnipeg.nl</link>
	<description></description>
	<lastBuildDate>Mon, 05 Oct 2009 11:36:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Slackware 64</title>
		<link>http://notes.lotjuh.winnipeg.nl/my-activities/slackware-64/</link>
		<comments>http://notes.lotjuh.winnipeg.nl/my-activities/slackware-64/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 14:44:29 +0000</pubDate>
		<dc:creator>Lotjuh</dc:creator>
				<category><![CDATA[My activities]]></category>
		<category><![CDATA[os install]]></category>
		<category><![CDATA[Slackware 64]]></category>

		<guid isPermaLink="false">http://notes.lotjuh.winnipeg.nl/?p=10</guid>
		<description><![CDATA[
So BenV had told me I had to install Slackware 64 on my computer since there&#8217;s nothing that should hold me back from it now they got a decent release and I don&#8217;t play any games on my Linux anyway.
Of course I should have known from experience that doing something &#8216;trivial&#8217; as installing an new [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.slackware.com/"><img class="size-thumbnail wp-image-15 alignright" title="Slackware" src="http://notes.lotjuh.winnipeg.nl/wp-content/uploads/2009/07/bluepiSW-150x150.jpg" alt="Slackware" width="90" height="90" /></a></p>
<p>So BenV had told me I had to install Slackware 64 on my computer since there&#8217;s nothing that should hold me back from it now they got a decent release and I don&#8217;t play any games on my Linux anyway.</p>
<p>Of course I should have known from experience that doing something &#8216;trivial&#8217; as installing an new OS on my computer on BenV&#8217;s request, would probably turn out to be a disaster.<span id="more-10"></span></p>
<p>I started with figuring out where to put this new installations. I got 4 disks in my computer from which 2 I&#8217;m not sure if they&#8217;re working properly or not. The other &#8216;good&#8217; working 2 are a 8 year old WD PATA 120GB disk and an quite new WD SATA 320GB disk. Since the PATA disk is old and slow, I decided to install it on my new disk. Of course this disk already contained 4 primary partitions from which one partition had a FreeBSD installation on it. It looked something like this:</p>
<p>|________|___|________________|________|____|________|</p>
<p>NTFS       free             NTFS                 FFS      EXT3     free</p>
<p>Fortunately our server hosts some quite handy PXE bootable operating systems, so I started with booting my machine from network using the PartedMagic distribution. The EXT3 partition on the disk wasn&#8217;t used, so I removed that one first to give me a free slot for a new primary partition. Because the second NTFS partition was only half full, I decided to shrink it a little and move it to the left to give me more space for my new Slackware installation. So after those changes my disk looked like this:</p>
<p>|________|___________|________|________|_____________|</p>
<p>NTFS              NTFS            free          FFS                 free</p>
<p><a href="http://partedmagic.com/"><img class="alignleft size-full wp-image-30" title="Parted magic" src="http://notes.lotjuh.winnipeg.nl/wp-content/uploads/2009/07/images.jpeg" alt="Parted magic" width="83" height="104" /></a>Now I wanted to move the FFS partition to the left as well, so I had 1 big block of free space. But the partition tool refused to do this because it had no idea what kind of partition it was&#8230;.. There were 2 options left; just use the biggest part of free space and leave a useless block in the middle, or remove the FFS partition which contained a FreeBSD 7.2 installation which had taken me almost 2 full days to install after BenV told me &#8220;FreeBSD 7.2 has been released, you should upgrade to it&#8221;, which is a totally different story. I ended up just removing this partition since I&#8217;d only booted twice since that installation anyway. I created 1 big extended partition from the free space and added a 80GB logical partition for my Slackware installation which I formatted with EXT4. All together it took about an hour to get all the partitions resized/ moved/ created.</p>
<p>I booted my machine up from network again and started the Slackware 64 installation from our server. Everything went quite well from here. I selected about all available packages for installation (of course I deselected the Emacs package) and I told the setup to use NFS as the package resource so it would install the packages hosted by our own server saving a lot of downloading time.</p>
<p>Because I had used EXT4 for the whole partition, I needed Grub2 to boot it up. So first I booted my old Slackware 32 installation (which was installed on the old 120GB PATA disk), downloaded Grub2, installed it on the new disk, and tried to make a configuration file. Of course this configuration file was useless to boot from, but at least Grub2 was installed on the new disk now. So I changed the disk boot order in my BIOS so it would boot from the new disk, just to find out that installing Grub2 on the new disk wasn&#8217;t enough for Grub2 to start up. Of course it needed the files from my Slack32 partition to load up it&#8217;s stage 2, so it wouldn&#8217;t work.</p>
<p>Since this was all BenV&#8217;s idea, I looked at him questioningly for what to do next. Somehow I had to build and install Grub2 on the new partition for it to be able to load completely, but how could I accomplish this without being able to boot from this new partition? My only option seemed to be to boot from network again and use the Slackware64 installer to mount my new partition and chroot to it. This was indeed a good idea. Only about 15 minutes later I was able to boot up the new partition using Grub2.</p>
<p>I&#8217;ve been struggling with Grub2 a little more to see if I could make it boot my old Slack32 installation as well, but it required an initrd file since it had a root partition on LVM and somehow it didn&#8217;t seem to want to work so eventually I decided I didn&#8217;t need to boot from it anymore anyway since I could just mount it in my new Slacware 64 installation and chroot to it if I needed to run anything from it.</p>
<p><a href="http://en.wikipedia.org/wiki/Enlightenment_%28window_manager%29"><img class="alignleft size-full wp-image-23" title="Enlightenment" src="http://notes.lotjuh.winnipeg.nl/wp-content/uploads/2009/07/200px-Enlightenment_logo_gold.png" alt="200px-Enlightenment_logo_gold" width="72" height="96" /></a></p>
<p>The next task was to build E17 so I could load up my X. Because I&#8217;m using the <a href="http://omicron.homeip.net/projects/#easy_e17.sh">Easy_e17.sh</a> script nowadays, this was quite trivial. I just had to install libmpd so mpdule would build as well, but that was about the only thing. I think it took less then 30 mins for E17 with all the modules and extras to build and install. (God I love my new AMD Phenom(tm) II X4 810 Processor). I crossed my fingers and and entered telinit 4 to see if it would work. And there it was, my old trusty entrance login screen, working without any issues (even my mouse and keyboard worked at once this time). I logged in and was happy to find a fully working E17 installation.</p>
<p>So now I figured I should set up my slackpkg for easy updating and upgrading packages. Since we have multiple computers running Slackware around the house, BenV has set up our server as a mirror for slackpkg so we only have to download the latest packages once. I configured my slackpkg to use the server as a mirror and ran the script to see if it all worked. It even found about 4 packages that needed to be updated (this was a surprise since I had just used the same packages for installing my Slackware 64 in the first place).</p>
<p>After that I started downloading VirutalBox so I could use my old virtual Windows installation. But when I tried to run the install, it told me it couldn&#8217;t find /bin/sh&#8230;. I wondered what it&#8217;s problem was and tried to run the install with bash. Now it was telling me it couldn&#8217;t find /bin/bash either. Since I was pretty sure both /bin/sh and /bin/bash existed, I wondered what could be the problem. But even strace told me the same. So now I just tried to run bash by it self and it told me the same as well. I closed my Xterm and tried to open a new one, it told me it couldn&#8217;t find /bin/bash either. I had no idea what happened in between downloading VirtualBox and trying to install it. Did some permissions change? Did my disk crash somehow? Did my /etc folder get deleted? Either way, I couldn&#8217;t even log in on a different TTY either, and a reboot gave me the same problem that it couldn&#8217;t find my shell.</p>
<p>So once again, I booted from network and started the Slackware 64 installation distro from there. I mounted my partition and tried to chroot to it, but it gave me the same problem that it couldn&#8217;t find my shell. Since /bin/sh was linked to /bin/bash, bash seemed to be the problem. BenV asked me what exactly were the new packaged that I got while running slackpkg, and I remember I got a new bash&#8230;. I checked /var/log/packages and it seemed that I indeed had gotten bash 4. Then it struck me, could I really be that stupid? Seems like I was&#8230; I had used the Slackware 32 mirror instead of the 64 one for slackpkg. That was the reason I&#8217;d gotten new packages while I should have already had the latest ones installed. I must have been lucky that it were only 4 packages, but the fact that one of them was bash had gotten me in this trouble. BenV came with the brilliant idea of linking my /bin/sh with busybox so I was able to chroot to my Slackware 64 partition and scp the right bash package from our server and install it. This fixed the issues and I was able to boot my new installation again.</p>
]]></content:encoded>
			<wfw:commentRss>http://notes.lotjuh.winnipeg.nl/my-activities/slackware-64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

