[CentOS] What's going on with my Linux Swap?

Bryan J. Smith b.j.smith at ieee.org
Thu Sep 8 14:10:00 UTC 2005


On Thu, 2005-09-08 at 22:59 +0900, Dave Gutteridge wrote:
> Thank you for the advice. With a little tweaking, my partitions now look 
> like this:
>    Device Boot      Start         End      Blocks   Id  System
> /dev/hdb1   *           1        3644    29270398+  83  Linux
> /dev/hdb2            3645        3737      747022+  82  Linux swap
> Will Linux automatically start using that as a swap, or do I have to 
> do something to mount it or in any way initiate it's use?

mkswap /dev/hdb2
swapon /dev/hdb2

And add this to your /etc/fstab: 
  /dev/hdb2    swap    swap    defaults   0 0

-- Bryan

P.S.  I hope /dev/hdb2 isn't a slave ATA device?  Or is it an SATA
device?


-- 
Bryan J. Smith     b.j.smith at ieee.org     http://thebs413.blogspot.com
----------------------------------------------------------------------
The best things in life are NOT free - which is why life is easiest if
you save all the bills until you can share them with the perfect woman




More information about the CentOS mailing list