[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

lowmem and activating a swap partition in dbootstrap



The following is from http://www.ourmanpann.com/linux/lowmem.html.
Thoughts? 

It seems a bit too hairy to try to fix for slink.

--
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>

<H2><B>One Bug</b> (and a workaround)</H2>
<p>
There is a bad bug in the low memory installation, but fortunately there is
a simple workaround. Note that if you do not use this workaround you'll
end up attempting to boot your new Linux system with no swap partition and
it will surely hang somewhere in the boot process.
<p>
The problem is that as part of the low memory installation procedure you will
initialize and activate a swap partition. When you get to the
<b>Swap Partition</b>
part of the standard installation, this isn't recognized and you are offered
several options, all of which are bad.
<p>
When you do get to this point use <b>Alt-F2</b> to get another console,
and do this:
<p>
<b><code># cat /proc/meminfo</code></b>
<p>
It should show you (1) that you have swap available, and (2) that no
swap is currently being used. If condition (2) isn't met you'll have to
edit <b><code>/etc/fstab</code></b> to add a swap line as the <b>last
step before you reboot</b>.
<p>

If you're among the fortunate (should be everybody), do the following:
<p>
<b><code># /sbin/swapoff /dev/hda3</code></b>
<p>
(<b><code>/dev/hda3</code></b> is my swap partition: use yours, please)
<p>
Another
<p>
<b><code># cat /proc/meminfo</code></b>
<p>
should show no swap available. Now exit the second console and select
<b>Activate a Previously Initialized Swap Partition</b> from the installation
menu and do the rest of the installation by the numbers.
<p>
Your <b><code>/etc/fstab</code></b>
will be created correctly, and you should be able to reboot your low
memory machine successfully when the installation is complete.


Reply to: