What happened to my swap ? !!

C. Linus Hicks lhicks at nc.rr.com
Sun Jan 2 18:22:42 UTC 2005


On Sun, 2005-01-02 at 09:50 -0800, Appeet wrote:
> I originally installed my installation with swap on hdb4 (linux on
> hda2)
>  
> However when I "physically" mounted my second harddrive I had to
> install it as a secondary slave. Because of this reason the definition
> for my swap is now hdd4. When I do a "top" I see that swap available
> is "0" (I originally had 1 gb on hdb4) so i guess my question now is
> how do I make linux use hdd4 as swap.
>  
> Thanks in advance.

Look at /etc/fstab where you'll see something like this:

/dev/sda5       swap            swap    defaults        0 0

You will have to be root to edit it, just change the device name as is
appropriate for your new disk name.

-- 
C. Linus Hicks <lhicks at nc dot rr dot com>




More information about the users mailing list