linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Mark Hatle <fray@mvista.com>
To: James F Dougherty <jfd@GigabitNetworks.COM>
Cc: linuxppc-embedded@lists.linuxppc.org, jfd@krakatoa.gigabitnetworks.com
Subject: Re: swapspace in HHL 2.0
Date: Fri, 07 Sep 2001 13:27:16 -0500	[thread overview]
Message-ID: <3B991184.7CCB4E15@mvista.com> (raw)
In-Reply-To: 200109071118.EAA14228@krakatoa.gigabitnetworks.com


James F Dougherty wrote:
>
> Hi,
>
> I used initdconfig to enable mountall.sh and have an /etc/fstab like
> so:
>
> # /etc/fstab: static file system information.
> #
> # <file system> <mount point>   <type>  <options>               <dump>  <pass>
> /dev/root       /               auto    defaults,errors=remount-ro      0 0
> /proc           /proc           proc    defaults                        0 0
> /dev/hda1       /               auto    rw                              0 1
> /dev/hda2       swap            swap    defaults                        0 2
>
> When the system boots, it says that it is enabling the swapspace, however
> if you cat /proc/meminfo, it shows that it is really not enabled.
> Now, if you do a "swapon -a" instead of "swapon -a 2" (like in the mountall.sh)
> then swap comes on.
>
> What am I doing wrong?

The file on one of my targets is:

/dev/hda3       /               ext2    defaults,errors=remount-ro
1 1
/dev/hda4       /usr/local      ext2    defaults,errors=remount-ro
1 2
/dev/hda2       /boot           hfs     defaults
1 2
proc            /proc           proc    defaults
0 0
/var/swap       swap            swap    defaults
0 0

(and that works)  FYI my swap is in a file not a partition, that way I
can increase/decrease the size of the swap file at will...  (Only down
side, is that swap is not read/write until after the root filesystem is
mounted in my case...)

So the only thing I can think of the is "pass" flag you have set to 2.
I don't know why that would effect anything though.

Look at the "checkroot.sh" and "mountall.sh" initscripts, they enable
the swap spaces.

--Mark

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2001-09-07 18:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-07 11:18 swapspace in HHL 2.0 James F Dougherty
2001-09-07 18:27 ` Mark Hatle [this message]
2001-09-18 16:49 ` applications in HHL 2.0, 405GP David Updegraff
2001-09-18 19:05   ` Joe Green
2001-09-19  2:07     ` David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B991184.7CCB4E15@mvista.com \
    --to=fray@mvista.com \
    --cc=jfd@GigabitNetworks.COM \
    --cc=jfd@krakatoa.gigabitnetworks.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).