[OLUG] swap partition fun

Daniel Pfile pfiled at marietta.edu
Tue Mar 28 04:17:19 UTC 2000


ha!

I was waiting for something like this. :)

RTFM...

mkswap isn't a hard command, you set the part type to swap, and run mkswap
on it... nothing to it... it's even easier than mkfs.ext2 :)

# Daniel Pfile        # I have no cool signature.
# pfiled at marietta.edu # Finger for free illegal software.

On Mon, 27 Mar 2000, W. Mark Hagler wrote:

> MKSWAP(8)           Linux Programmer's Manual           MKSWAP(8)
> 
> NAME
>        mkswap - set up a Linux swap area
> 
> SYNOPSIS
>        mkswap [-c] [-vN] [-f] device [size]
> 
> DESCRIPTION
>        mkswap sets up a Linux swap area on a device or in a file.
> 
>        (After creating the swap area, you need the swapon command
>        to  start  using  it.  Usually  swap  areas  are listed in
>        /etc/fstab so that they can be taken into use at boot time
>        by a swapon -a command in some boot script.)
> 
>        The  device  argument  will  usually  be  a disk partition
>        (something like /dev/hda4 or /dev/sdb7) but can also be  a
>        file.   The  Linux kernel does not look at partition Id's,
>        but many installation scripts will assume that  partitions
>        of  hex  type  82 (LINUX_SWAP) are meant to be swap parti-
>        tions.
> 
> ..snip..
> 
> You can, of course, read the rest by typing 'man mkswap'.
> 
> 
> 
> Adam Lassek wrote:
> > 
> > Like I said, I've never had to set up a swap partition by hand before. What
> > does mkswap do? Do I need to run it after I fdisk hdc8 to format it for swap?
> 
> 
> -------------------------------------------------------------------------
> Sent by OLUG Mailing list Manager, run by ezmlm.  http://olug.bstc.net/ 
> To unsubscribe: `echo unsubsribe | mail olug-unsubscribe at bstc.net` 
> 


-------------------------------------------------------------------------
Sent by OLUG Mailing list Manager, run by ezmlm.  http://olug.bstc.net/ 
To unsubscribe: `echo unsubsribe | mail olug-unsubscribe at bstc.net` 



More information about the OLUG mailing list