<?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>phaq &#187; Debian GNU/Linux</title>
	<atom:link href="http://phaq.phunsites.net/category/faq/operating-systems/debian-gnulinux/feed/" rel="self" type="application/rss+xml" />
	<link>http://phaq.phunsites.net</link>
	<description>my daily IT madness</description>
	<lastBuildDate>Sun, 05 Feb 2012 21:06:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Mount a dd Disk Image with Partition Table inside</title>
		<link>http://phaq.phunsites.net/2012/02/05/mount-a-dd-disk-image-with-partition-table-inside/</link>
		<comments>http://phaq.phunsites.net/2012/02/05/mount-a-dd-disk-image-with-partition-table-inside/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 21:06:52 +0000</pubDate>
		<dc:creator>gdelmatto</dc:creator>
				<category><![CDATA[Debian GNU/Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[RHEL]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/?p=943</guid>
		<description><![CDATA[After making a backup from a hard disk ta a disk image using plain old &#8216;dd&#8217;, I was just looking into mounting it using the Linux loopback device. If you &#8216;dd&#8217; a single partition into an image file, then this is very straight forward. But if your image file contains multiple partition partitions including the [...]]]></description>
			<content:encoded><![CDATA[<p>After making a backup from a hard disk ta a disk image using plain old &#8216;dd&#8217;, I was just looking into mounting it using the Linux loopback device.</p>
<p>If you &#8216;dd&#8217; a single partition into an image file, then this is very straight forward. But if your image file contains multiple partition partitions including the partition table itself, then you need to take additional steps.<br />
<span id="more-943"></span><br />
So the first thing to know is the exact offset of the partition to be mounted.<br />
You may examine this easily using parted. Just provide it with the path to the image file instead of a block device.</p>
<pre>
root@debian:~# parted full_hd.dd
GNU Parted 2.3
Using /root/full_hd.dd
Welcome to GNU Parted! Type 'help' to view a list of commands.
</pre>
<p>Now switch parted to use &#8216;Byte&#8217; units, then print the partition table:</p>
</pre>
<p>(parted) unit B<br />
(parted) print<br />
Model:  (file)<br />
Disk /root/full_hd.dd: 8012390400B<br />
Sector size (logical/physical): 512B/512B<br />
Partition Table: msdos</p>
<p>Number  Start     End          Size         Type     File system  Flags<br />
 1      1048576B  8012169215B  8011120640B  primary  ext4         boot
</pre>
<p>Keep a record of the 'Start' offset, you'll need this shortly. Quit parted using the 'quit' command.</p>
<p>Let's look into mounting the partition: pass the partition offset to the mount command using the 'offset=' option like this:</p>
<pre>
root@debian:~# mount -t ext4 -o loop,offset=1048576 full_hd.dd /mnt/test/
</pre>
<p>It may well be possible, that receive this error message as a result to your mount command if you try to mount the disk image read-only:</p>
<p><code><br />
mount: wrong fs type, bad option, bad superblock on /dev/loop0,<br />
       missing codepage or helper program, or other error<br />
       In some cases useful info is found in syslog - try<br />
       dmesg | tail  or so<br />
</code></p>
<p>In this case, examining the system logs, may reveal something like this:</p>
<p><code><br />
[ 8754.209469] EXT4-fs (loop0): VFS: Can't find ext4 filesystem<br />
[ 8758.913583] EXT4-fs (loop0): INFO: recovery required on readonly filesystem<br />
[ 8758.913587] EXT4-fs (loop0): write access unavailable, cannot proceed<br />
</code></p>
<p>To get around this, try adding the 'noload' option to skip journal recovery:</p>
<pre>
root@debian:~# mount -t ext4 -o loop,ro,noload,offset=1048576 full_hd.dd /mnt/test/
</pre>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2012/02/05/mount-a-dd-disk-image-with-partition-table-inside/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian Netinst Installer ignores network and locale preseed.cfg settings upon PXE/TFTP boot</title>
		<link>http://phaq.phunsites.net/2010/12/08/debian-netinst-installer-ignores-network-and-locale-preseed-cfg-settings-upon-pxetftp-boot/</link>
		<comments>http://phaq.phunsites.net/2010/12/08/debian-netinst-installer-ignores-network-and-locale-preseed-cfg-settings-upon-pxetftp-boot/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 22:22:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian GNU/Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/?p=188</guid>
		<description><![CDATA[As you came along I suppose you stubled accross the same issue as me, didn&#8217;t you? As far as I&#8217;m concerned, I can only tell that this issue rises when netbooting Debian-Installer through PXE/TFTP in combination with a preseed.cfg file, while the latter one being downloaded from a HTTP web-server. This bevahiour has been observed [...]]]></description>
			<content:encoded><![CDATA[<p>As you came along I suppose you stubled accross the same issue as me, didn&#8217;t you?</p>
<p>As far as I&#8217;m concerned, I can only tell that this issue rises when netbooting Debian-Installer through PXE/TFTP in combination with a preseed.cfg file, while the latter one being downloaded from a HTTP web-server.<br />
This bevahiour has been observed with Debian Lenny and older versions and can cause quiet some headache upon setup automation if not taken into account.<br />
<span id="more-188"></span><br />
To summarize the situation before we dig into more details:</p>
<ul>
<li>I want to netboot Debian-Installer (the Debian &#8220;netinst&#8221; image) through PXE/TFTP.</li>
<li>Debian netinst is launched through pxelinux, as supposed by all common documentation out there</li>
<li>I want a preseed.cfg to be dynamically downloaded from a web-server during installation to achieve an automatic installation</li>
<li><b>Issue Observed: Despite of having set the &#8220;debian-installer/locale&#8221;, &#8220;console-keymaps-at/keymap&#8221; and other settings within the preseed.cfg, Debian-Installer keeps asking you for language, keyboard and other values straight after bootup</b></li>
</ul>
<p>This article won&#8217;t dig into the details of setting up the required boot environment and it&#8217;s particular configuration.<br />
I assume you have all of that in place already.</p>
<p>Your current configuration will most likely look like this in your <b>pxelinux.cfg/default</b> file:</p>
<p><code><br />
label debian507<br />
        MENU INDENT 1<br />
        MENU LABEL -&gt; Debian GNU 5.0.7<br />
        kernel /images/Debian/5.0.7/i386/linux<br />
        append vga=normal initrd=/images/Debian/5.0.7/i386/initrd.gz ramdisk_size=65536 \<br />
             root=/dev/rd/0 devfs=mount,dall rw auto \<br />
             url=http://some.webserver/configs/Debian/5.0.7/i386/preseed.cfg --<br />
</code></p>
<p>Within your preseed.cfg you define some settings with the intend of a full automation. Here&#8217;s an excerpt of mine:</p>
<p><code><br />
# keyboard and locale settings<br />
####################################################################</p>
<p>d-i     debian-installer/locale string en_US<br />
d-i     console-keymaps-at/keymap select sg-latin1</p>
<p># networking<br />
####################################################################</p>
<p>d-i     netcfg/disable_dhcp boolean false<br />
d-i     netcfg/get_hostname string  localhost<br />
d-i     netcfg/get_domain string  localdomain<br />
d-i     netcfg/choose_interface select eth0<br />
</code></p>
<p>You now would propably expect that having these lines in your preseed.cfg would cause Debian-Installation to stop prompting you after bootup. Instead you still end up being bugged with these prompts:</p>

<a href='http://phaq.phunsites.net/2010/12/08/debian-netinst-installer-ignores-network-and-locale-preseed-cfg-settings-upon-pxetftp-boot/screen1/' title='screen1'><img width="150" height="150" src="http://phaq.phunsites.net/files/2010/12/screen1-150x150.png" class="attachment-thumbnail" alt="screen1" title="screen1" /></a>
<a href='http://phaq.phunsites.net/2010/12/08/debian-netinst-installer-ignores-network-and-locale-preseed-cfg-settings-upon-pxetftp-boot/screen2/' title='screen2'><img width="150" height="150" src="http://phaq.phunsites.net/files/2010/12/screen2-150x150.png" class="attachment-thumbnail" alt="screen2" title="screen2" /></a>
<a href='http://phaq.phunsites.net/2010/12/08/debian-netinst-installer-ignores-network-and-locale-preseed-cfg-settings-upon-pxetftp-boot/screen3/' title='screen3'><img width="150" height="150" src="http://phaq.phunsites.net/files/2010/12/screen3-150x150.png" class="attachment-thumbnail" alt="screen3" title="screen3" /></a>
<a href='http://phaq.phunsites.net/2010/12/08/debian-netinst-installer-ignores-network-and-locale-preseed-cfg-settings-upon-pxetftp-boot/screen4/' title='screen4'><img width="150" height="150" src="http://phaq.phunsites.net/files/2010/12/screen4-150x150.png" class="attachment-thumbnail" alt="screen4" title="screen4" /></a>
<a href='http://phaq.phunsites.net/2010/12/08/debian-netinst-installer-ignores-network-and-locale-preseed-cfg-settings-upon-pxetftp-boot/screen5/' title='screen5'><img width="150" height="150" src="http://phaq.phunsites.net/files/2010/12/screen5-150x150.png" class="attachment-thumbnail" alt="screen5" title="screen5" /></a>
<a href='http://phaq.phunsites.net/2010/12/08/debian-netinst-installer-ignores-network-and-locale-preseed-cfg-settings-upon-pxetftp-boot/screen6/' title='screen6'><img width="150" height="150" src="http://phaq.phunsites.net/files/2010/12/screen6-150x150.png" class="attachment-thumbnail" alt="screen6" title="screen6" /></a>

<p>Now to the question, what causes this behaviour.</p>
<p>Essentially this is sort of a chicken-and-egg problem within Debian-Installer.<br />
Due to it&#8217;s internal architecture, the installer consists of multiple parts as lined out in the <a href="http://d-i.alioth.debian.org/doc/internals/ch02.html" target="_blank">Debian-Installer internals documentation</a>, which take care about the various stages.</p>
<p>First we have the debian-installer-startup and debian-installer binaries, which care about all the init stuff.<br />
Second we have the main-menu component, which does all the questioning and installation using the underlying debconf framework.</p>
<p>Well, so far so good. debian-installer will take care about a preliminary network setup so it can actually download the preseed.cfg file and will launch menu-menu afterwards.<br />
If will however only do so AFTER questioning for system locale, keyboard and basic network settings &#8211; just at a stage, where it simply didn&#8217;t (and in fact couldn&#8217;t) download the preseed.cfg file.</p>
<p>So, here&#8217;s the chicken: We want to get rid of the questioning by using a preseed.cfg, which cannot be download before answering some initial questions.<br />
Here&#8217;s the egg: To get rid of the questioning, we need the help of a preseed.cfg.</p>
<p>Well, there&#8217;s of course the possibility, to include the preseed.cfg to the initrd image.<br />
This imposes however a problem, as it may harden upgrades and especially automatic installation with different configurations.</p>
<p>Luckily, there is a way to work around this is by includubg these settings with the kernel append parameters through PXELinux as shown below:</p>
<p><code><br />
label debian507<br />
        MENU INDENT 1<br />
        MENU LABEL -&gt; Debian GNU 5.0.7<br />
        kernel /images/Debian/5.0.7/i386/linux<br />
        append vga=normal initrd=/images/Debian/5.0.7-2.6.32-bpo/i386/initrd.gz ramdisk_size=65536 \<br />
             root=/dev/rd/0 devfs=mount,dall rw auto \<br />
             url=http://some.webserver/configs/Debian/5.0.7/i386/preseed.cfg \<br />
             locale=en_US console-keymaps-at/keymap=sg-latin1 \<br />
             interface=eth0 hostname=localhost domain=localdomain --<br />
</code></p>
<p>This would indeed cause debian-installer to not prompt for the initial settings, continue with the network initialization, download the preseed.cfg and proceed to main-menu, which would then use the downloaded preseed configuration.</p>
<p>So, you&#8217;re here reading this. Maybe just because you slipped this little information in the official documentation?<br />
Ahem &#8230; it&#8217;s right <a href="http://www.debian.org/releases/stable/i386/apbs01.html.en#preseed-methods" target="_blank">there</a>:</p>
<p><b>quote</b><br />
An important difference between the preseeding methods is the point at which the preconfiguration file is loaded and processed. For initrd preseeding this is right at the start of the installation, before the first question is even asked. For file preseeding this is after the CD or CD image has been loaded. For network preseeding it is only after the network has been configured.</p>
<p>Obviously, any questions that have been processed before the preconfiguration file is loaded cannot be preseeded (this will include questions that are only displayed at medium or low priority, like the first hardware detection run). Section B.2.2, “Using boot parameters to preseed questions” offers a way to avoid these questions being asked.<br />
<b>end quote</b></p>
<p>My point for writing this topic: If you&#8217;re just getting started with preseeding using on of the many HowTo&#8217;s out there, without reading the official docs as well, this particular issue is very likely to slip <img src='http://phaq.phunsites.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2010/12/08/debian-netinst-installer-ignores-network-and-locale-preseed-cfg-settings-upon-pxetftp-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian GNU/kFreeBSD inside native FreeBSD jail</title>
		<link>http://phaq.phunsites.net/2007/01/06/debian-gnukfreebsd-inside-native-freebsd-jail/</link>
		<comments>http://phaq.phunsites.net/2007/01/06/debian-gnukfreebsd-inside-native-freebsd-jail/#comments</comments>
		<pubDate>Sat, 06 Jan 2007 19:10:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian GNU/Linux]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[jails]]></category>

		<guid isPermaLink="false">http://www.phunsites.net/wp/2007/01/06/debian-gnukfreebsd-inside-native-freebsd-jail/</guid>
		<description><![CDATA[It has been some time now since development on Debian GNU/kFreeBSD started, which aims at bringing together the FreeBSD kernel with a GNU userland. There exists a similar implementation called Gentoo GNU/kFreeBSD, although I had no time yet to review it. The Debian developers made some notable progress since last year, but there are still [...]]]></description>
			<content:encoded><![CDATA[<p>It has been some time now since development on <a target="_blank" href="http://www.debian.org/ports/kfreebsd-gnu/">Debian GNU/kFreeBSD</a> started, which aims at bringing together the FreeBSD kernel with a GNU userland.</p>
<p>There exists a similar implementation called Gentoo GNU/kFreeBSD, although I had no time yet to review it.<br />
<span id="more-70"></span><br />
The Debian developers made some notable progress since last year, but there are still lots of issues. Check out the <a target="_blank" href="http://wiki.debian.org/Debian_GNU/kFreeBSD">project website</a> for further details.</p>
<p>Now let&#8217;s look at an abscure idea, that struck me when I first looked at Debian GNU/kFreeBSD last spring.</p>
<p>Why not try to run Debian GNU/kFreeBSD inside a native FreeBSD jail (or inside a Debian GNU/kFreeBSD jail)?</p>
<p>One might argue where&#8217;s the point in doing so. But under that premise I could also ask, what&#8217;s the point then in having hundreds of Linux distros which basically do the same thing &#8212; only in a different way?</p>
<p>Let&#8217;s imagine the possibilities:</p>
<ul>
<li>Run native GNU/kFreeBSD hosts with both GNU/kFreeBSD and native FreeBSD userland jails</li>
<li>Run native FreeBSD hosts with both GNU/kFreeBSD and native FreeBSD userland jails</li>
</ul>
<p>If you&#8217;re familiar with the concepts of OpenVZ/Virtuozzo or the Linux VServer project, you&#8217;ll see some similarities and maybe even the reason for trying out this weird idea.</p>
<p>I must admit, that the current implementation is far away from production grade. There&#8217;s a lot of dirty handwork involved. Aparently there is no point in trying to streamline the process right now, since GNU/kFreebSD is still under heavy development. Automated setups should be easy to implement as soon as the Debian Installer is ported and package support is fixed in debootstrap.</p>
<p>Are you ready to read on? Ok, let&#8217;s go to work then&#8230;</p>
<p><!--more--></p>
<p>Let&#8217;s have a look at how to setup at installing Debian GNU/kFreeBSD inside a native FreeBSD jail.</p>
<p>First of all, get the Debian GNU/kFreeBSD netinst cd. You&#8217;ll find it at http://glibc-bsd.alioth.debian.org/install-cd</p>
<p># wget http://glibc-bsd.alioth.debian.org/install-cd/kfreebsd-i386/20061213/debian-20061213-kfreebsd-i386-install.iso</p>
<p>Now attach the iso image to a vnode and mount it.</p>
<p>#mdconfig -a -t vnode -f debian-20061213-kfreebsd-i386-install.iso<br />
md0<br />
#mkdir /mnt/debinst<br />
#mount_cd9660 /dev/md0 /mnt/debinst</p>
<p>Prepare your new root directory for the jail and untar the base dist. The base dist will  take up about 120 MB on disk.</p>
<p>#mkdir /var/jails/debian_jail<br />
#tar -xzpvf /mnt/debinst/base/base.tgz -C /var/jails/debian_jail</p>
<p>Edit the installer file at /var/jails/debian_jail/native-install and comment out the &#8216;set -e&#8217;  directive on line 31. The script will throw lot&#8217;s of errors when running inside the jail. If you leave the &#8216;set -e&#8217; directive as is, the script will abort and you will need to start over.</p>
<p>You&#8217;re ready now to start the jail. Please do it manually as shown, you will need to fiddle around with it.<br />
You can add it to /etc/rc.conf for regular startup later.</p>
<p>#ifconfig fxp0 inet alias 192.168.0.13/32<br />
#mount_procfs procfs /var/jails/debian_jail/proc<br />
#jail /var/jails/debian_jail debian_jail 192.168.0.13 /bin/sh</p>
<p>You are now inside the jail. Run the installer script from the root directory.<br />
The installer will ask you for time zone settings, set them as required.<br />
Answer to the popularity contest question to your own preferences.</p>
<p>#/native-install</p>
<p>The script will install and configure system packages. This will take a while.<br />
Don&#8217;t worry about errors and warnings, they&#8217;re ok for now.</p>
<p>After the script has finished it is time for some further work. Don&#8217;t leave the jail yet!</p>
<p>First create a valid /etc/resolv.conf. Then make sure your /etc/fstab is empty to prevent mount errors.</p>
<p>#echo&gt;/etc/fstab</p>
<p>And don&#8217;t forget to set the root password.</p>
<p>#passwd</p>
<p>Make sure init won&#8217;t tamper with /dev.</p>
<p>#update-rc.d -f makedev remove</p>
<p>Replace /etc/init.d/freebsd-utils by a dummy file as shown below and reconfigure the freebsd-utils package.</p>
<p>#echo exit 0&gt;/etc/init.d/freebsd-utils<br />
#dpkg-reconfigure freebsd-utils</p>
<p>Now you must leave the jail for a minute. &#8216;exit&#8217; should return you to your host.<br />
Back on the host you need to attach devfs to your jail.</p>
<p>#mount_devfs devfs /var/jails/debian_jail/dev</p>
<p>Then re-enter the jail:</p>
<p>#jail /var/jails/debian_jail debian_jail 192.168.0.13 /bin/sh</p>
<p>It&#8217;s time to import the gpg keys into apt and refresh your package list.</p>
<p>#gpg &#8211;keyserver subkeys.pgp.net &#8211;recv CD02E583 &amp;&amp; gpg &#8211;export CD02E583 | apt-key add -<br />
#apt-get update</p>
<p>As ssh is not part of the base system, I&#8217;d recommend to install it now.</p>
<p>#apt-get install ssh</p>
<p>Maybe you&#8217;d like to have aptitude as well? Feel free to install whatever you like.</p>
<p>#apt-get install aptitude</p>
<p>Depending on your software choice your jail will now use around 220 MB or more on disk.<br />
Leave the jail by entering &#8216;exit&#8217; on the prompt.<br />
Then try to start the jail as shown below.</p>
<p>#jail /var/jails/debian_jail debian_jail 192.168.0.13 /etc/init.d/rc 2<br />
Not starting internet superserver: no services enabled.<br />
Starting OpenBSD Secure Shell server: sshd.</p>
<p>Check if your jail shows up and your processes are running.</p>
<p>#jls<br />
JID  IP Address      Hostname                      Path<br />
71  192.168.0.13    debian_jail                   /var/jails/debian_jail</p>
<p>#pgrep -lfj 71<br />
95086 /usr/sbin/sshd</p>
<p>Your jail should now be accessible through SSH.</p>
<p>#ssh root@192.168.0.13<br />
The authenticity of host &#8217;192.168.0.13 (192.168.0.13)&#8217; can&#8217;t be established.<br />
DSA key fingerprint is c5:02:ad:c6:a8:43:30:25:4a:d0:bd:71:ca:cc:f0:25.<br />
Are you sure you want to continue connecting (yes/no)? yes<br />
Warning: Permanently added &#8217;192.168.0.13&#8242; (DSA) to the list of known hosts.<br />
root@192.168.0.13&#8242;s password:</p>
<p>The programs included with the Debian GNU/kFreeBSD system are free software;<br />
the exact distribution terms for each program are described in the<br />
individual files in /usr/share/doc/*/copyright.</p>
<p>Debian GNU/kFreeBSD comes with ABSOLUTELY NO WARRANTY, to the extent<br />
permitted by applicable law.<br />
debian_jail:~#</p>
<p>So far, so good. Your jail Debian GNU/kFreebSD is now up and running, sort of&#8230;</p>
<p>There&#8217;s a caveat that you may already have noticed. init(8) is not yet working as supposed to, so there&#8217;s actually no parent init process as it should. Neither is there proper resource or runlevel control. This is definitely an issue which would require further investigation.</p>
<p>Furthermore when playing around with it you&#8217;ll notice that there are other things not working properly, like process information tools (ps, top, etc), a multitude of errors in init scripts, most of them being access errors due to the jail enviroment, erratic behaviour on package configuration when it comes to accessing device nodes, and many, many more.</p>
<p>However one must consider Debian GNU/kFreeBSD still being under development on one hand, and it was never meant to be actually run inside a jail on the other.</p>
<p>It would be nice if it became a standing feature in the future, maybe even for sidekicks like Gentoo GNU/kFreeBSD and other distros out there.</p>
<p>Another task would be checking the jail functionality vice-versa to see, how a native FreeBSD userland can be run inside a jail on a Debian GNU/kFreeBSD host.<br />
As to my understanding of the existing implementation that shouldn&#8217;t be too tricky as FreeBSD userland is already fully jail-aware.</p>
<p>I&#8217;m looking forward to trying this on my own as soon as the jail utilities become available on Debian GNU/kFreeBSD one day.</p>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2007/01/06/debian-gnukfreebsd-inside-native-freebsd-jail/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing Debian on a SGI Indy</title>
		<link>http://phaq.phunsites.net/2006/08/29/installing-debian-on-a-sgi-indy/</link>
		<comments>http://phaq.phunsites.net/2006/08/29/installing-debian-on-a-sgi-indy/#comments</comments>
		<pubDate>Tue, 29 Aug 2006 08:32:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian GNU/Linux]]></category>

		<guid isPermaLink="false">http://www.phunsites.net/wp/2006/08/29/installing-debian-on-a-sgi-indy/</guid>
		<description><![CDATA[After I had finally found a solution to my 13W3-VGA adapter issue the time is ready to install Debian onto the machine. There are lots of howtos out there which cover netinstalling Debian/mips onto an SGI machine, hence most of them predate the official Debian/mips manual. One caveat is the fact the manual was written [...]]]></description>
			<content:encoded><![CDATA[<p>After I had finally found a solution to my <a href="/wp/2006/08/25/useing-a-sun-13w3-vga-adaptor-on-a-sgi-indy/">13W3-VGA adapter issue</a> the time is ready to install Debian onto the machine.<br />
<span id="more-56"></span><br />
There are lots of howtos out there which cover netinstalling Debian/mips onto an SGI machine, hence most of them predate the official <a target="_blank" href="http://www.debian.org/releases/stable/mips/ch04s03.html.en">Debian/mips manual</a>.</p>
<p>One caveat is the fact the manual was written for a bootstrap server running Linux in mind (have a look at section 4.3.2 Enabling the TFTP Server).</p>
<p>Since my bootstrap server is running FreeBSD a slight variation of the steps as lined out in section 4.3.2 is needed.</p>
<p>Path MTU discovery is disabled like this:</p>
<p>#sysctl net.inet.tcp.path_mtu_discovery=0</p>
<p>To further restrict source ports for TFTP to stay below 32767 as required by most elder SGI  PROM versions these additional commands must be run:</p>
<p>#sysctl net.inet.ip.portrange.first=2048<br />
#sysctl net.inet.ip.portrange.last=32767</p>
<p>This will effectively allow bootstrapping the Debian/mips netinst image from a FreeBSD host.</p>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2006/08/29/installing-debian-on-a-sgi-indy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting e1000 Interface Settings Permanently On Debian</title>
		<link>http://phaq.phunsites.net/2006/07/31/setting-e1000-interface-settings-permanently-on-debian/</link>
		<comments>http://phaq.phunsites.net/2006/07/31/setting-e1000-interface-settings-permanently-on-debian/#comments</comments>
		<pubDate>Mon, 31 Jul 2006 12:17:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian GNU/Linux]]></category>

		<guid isPermaLink="false">http://www.phunsites.net/wp/2006/07/31/setting-e1000-interface-settings-permanently-on-debian/</guid>
		<description><![CDATA[Well, sometimes obvious things aren&#8217;t quiet as obvious as supposed. After plugging in a dual Intel Pro 1000 into my Debian box and hooking it up to my ancient Cisco 1924 switch, I noticed this in the kernel logs: Jul 31 09:10:35 localhost kernel: e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Half Duplex [...]]]></description>
			<content:encoded><![CDATA[<p>Well, sometimes obvious things aren&#8217;t quiet as obvious as supposed.</p>
<p>After plugging in a dual Intel Pro 1000 into my Debian box and hooking it up to my ancient Cisco 1924 switch, I noticed this in the kernel logs:</p>
<p>Jul 31 09:10:35 localhost kernel: e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Half Duplex</p>
<p>I though it should be fairly easy set the interface speeds properly so the devices would actually talk to each other.<br />
<span id="more-45"></span><br />
While doing so on the Cisco was actually easy, the Linux box would refrain from doing so at a first glance.</p>
<p>#ethtool -s eth0 speed 100 duplex full</p>
<p>Running the command given above resulted in an error preventing me to set the parameters. It took me a while to find out that I had to actually turn off auto negotiation to make it work, too.</p>
<p>#ethtool -s eth0 speed 100 duplex full autoneg off</p>
<p>Now I had to make this change permanent as it would reset to defaults after the next reboot. I did so by adding the post-up line to my /etc/network/interfaces file:</p>
<p>auto eth0<br />
iface eth0 inet static<br />
post-up /usr/sbin/ethtool -s eth0 speed 100 duplex full autoneg off<br />
address 192.168.0.100<br />
netmask 255.255.255.0<br />
gateway 192.168.0.1</p>
<p>It should be noted, that the module documention at <a target="_blank" href="http://support.intel.com/support/network/sb/CS-009209.htm">Intel&#8217;s website</a> does not actually state that auto-negotiation must be turned off when setting interface speed and duplex modes. The question remains if this was only the case on my particular setup or if it is an absolute requirement after all.</p>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2006/07/31/setting-e1000-interface-settings-permanently-on-debian/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

