public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Swap is manually 'swapon-able' but not via fstab...?
@ 2013-08-10 14:36 meino.cramer
  2013-08-11  5:32 ` Samuli Suominen
  0 siblings, 1 reply; 4+ messages in thread
From: meino.cramer @ 2013-08-10 14:36 UTC (permalink / raw
  To: Gentoo

 Hi,

 When I do a 
 
    beagleboneblack:/root>swapon /dev/sda2  
    beagleboneblack:/root>free
                total       used       free     shared    buffers     cached
    Mem:        507476      50812     456664          0      13108      17244
    -/+ buffers/cache:      20460     487016
    Swap:      5242876          0    5242876
    

swap is added to the system.

If I add

    /dev/sda2	none		 swap  sw		                 0 0

swapspace will not be used after a reboot.

dmesg has nothing specific...

What did I wrong here? Why get swap not used via fstab?

Thank you very much for any help in advance!

Best regards,
mcc






^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Swap is manually 'swapon-able' but not via fstab...?
  2013-08-10 14:36 [gentoo-user] Swap is manually 'swapon-able' but not via fstab...? meino.cramer
@ 2013-08-11  5:32 ` Samuli Suominen
  0 siblings, 0 replies; 4+ messages in thread
From: Samuli Suominen @ 2013-08-11  5:32 UTC (permalink / raw
  To: gentoo-user

On 10/08/13 17:36, meino.cramer@gmx.de wrote:
>   Hi,
>
>   When I do a
>
>      beagleboneblack:/root>swapon /dev/sda2
>      beagleboneblack:/root>free
>                  total       used       free     shared    buffers     cached
>      Mem:        507476      50812     456664          0      13108      17244
>      -/+ buffers/cache:      20460     487016
>      Swap:      5242876          0    5242876
>
>
> swap is added to the system.
>
> If I add
>
>      /dev/sda2	none		 swap  sw		                 0 0
>
> swapspace will not be used after a reboot.
>
> dmesg has nothing specific...
>
> What did I wrong here? Why get swap not used via fstab?

That fstab line looks correct, only things coming to mind are wrong 
filesystem type for the partition or missing localmount from the boot 
runlevel. You can check by,

# fdisk -l /dev/sda

Look at the "Id" line, it should be "82" if I remember correctly out 
from memory.

And,

# rc-update show |grep localmount

You should see:

localmount | boot

I don't think this will help, but I hope it does :P


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Swap is manually 'swapon-able' but not via fstab...?
       [not found] <lFiuJ-Kb-5@gated-at.bofh.it>
@ 2013-08-11  5:45 ` Gregory Shearman
  2013-08-11  7:18   ` meino.cramer
  0 siblings, 1 reply; 4+ messages in thread
From: Gregory Shearman @ 2013-08-11  5:45 UTC (permalink / raw
  To: gentoo-user

In linux.gentoo.user, you wrote:
>  Hi,
>
>  When I do a 
>  
>     beagleboneblack:/root>swapon /dev/sda2  
>     beagleboneblack:/root>free
>                 total       used       free     shared    buffers     cached
>     Mem:        507476      50812     456664          0      13108      17244
>     -/+ buffers/cache:      20460     487016
>     Swap:      5242876          0    5242876
>     
>
> swap is added to the system.
>
> If I add
>
>     /dev/sda2	none		 swap  sw		                 0 0
>
> swapspace will not be used after a reboot.
>
> dmesg has nothing specific...
>
> What did I wrong here? Why get swap not used via fstab?

Do you have swap added to the boot runlevel?

# rc-update add swap boot

-- 
Regards,
Gregory.
Gentoo Linux - Penguin Power

-- 
Regards,
Gregory.
Gentoo Linux - Penguin Power


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Swap is manually 'swapon-able' but not via fstab...?
  2013-08-11  5:45 ` Gregory Shearman
@ 2013-08-11  7:18   ` meino.cramer
  0 siblings, 0 replies; 4+ messages in thread
From: meino.cramer @ 2013-08-11  7:18 UTC (permalink / raw
  To: gentoo-user

Gregory Shearman <zekeyg@gmail.com> [13-08-11 07:48]:
> In linux.gentoo.user, you wrote:
> >  Hi,
> >
> >  When I do a 
> >  
> >     beagleboneblack:/root>swapon /dev/sda2  
> >     beagleboneblack:/root>free
> >                 total       used       free     shared    buffers     cached
> >     Mem:        507476      50812     456664          0      13108      17244
> >     -/+ buffers/cache:      20460     487016
> >     Swap:      5242876          0    5242876
> >     
> >
> > swap is added to the system.
> >
> > If I add
> >
> >     /dev/sda2	none		 swap  sw		                 0 0
> >
> > swapspace will not be used after a reboot.
> >
> > dmesg has nothing specific...
> >
> > What did I wrong here? Why get swap not used via fstab?
> 
> Do you have swap added to the boot runlevel?
> 
> # rc-update add swap boot
> 
> -- 
> Regards,
> Gregory.
> Gentoo Linux - Penguin Power
> 
> -- 
> Regards,
> Gregory.
> Gentoo Linux - Penguin Power
> 


Hi Samuli, hi Gregory,

...the rc-update of swap was missing! Thanks a lot!

Best regards,
mcc





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-11  7:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-10 14:36 [gentoo-user] Swap is manually 'swapon-able' but not via fstab...? meino.cramer
2013-08-11  5:32 ` Samuli Suominen
     [not found] <lFiuJ-Kb-5@gated-at.bofh.it>
2013-08-11  5:45 ` Gregory Shearman
2013-08-11  7:18   ` meino.cramer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox