Results 1 to 3 of 3

Thread: swap file question

  1. #1
    Junior Member
    Join Date
    Oct 2004
    Location
    Vancouver, B.C.
    Posts
    3

    swap file question

    how do I install a swap file If I installed knoppix on a single hard drive??? I did not make a linux swap drive, and dont have any other partitions, I just have the one that has knoppix is installed on.

    the knoppix swap file config. program doesnt seem to support this? any have an idea??

  2. #2
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    This was moved, as it so obviously belongs in the hdd install forum.

  3. #3
    Member registered user
    Join Date
    Jan 2005
    Posts
    71
    Hi,

    you can always use a file as swap area; this works as following:
    - first open a root shell (from the KNOPPIX menu or otherwise)
    - decide where to put the swap file; /var/run/swapfile might be a good place,
    but YMMV
    - decide how much space the swap file should take (eg 128M)
    - create the swap file:
    dd if=/dev/zero of=/var/run/swapfile bs=1024k count=128
    - create the swap signature:
    mkswap /var/run/swapfile
    - add the swap file to /etc/fstab as a line containing:
    /var/run/swapfile none swap defaults 0 0
    - activate the swap file:
    swapon -a

    If no errors occured, you now should have 128M swap. Check with "top"
    or by issueing "cat /proc/swaps"

    Ciao,
    Thomas

Similar Threads

  1. set swap file on boot up
    By fr3dt3ch in forum Hardware & Booting
    Replies: 1
    Last Post: 06-05-2006, 11:30 PM
  2. swap file configuration
    By aad in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 01-25-2006, 07:55 PM
  3. swap on a regular file
    By ddrex in forum Hardware & Booting
    Replies: 1
    Last Post: 04-07-2005, 04:35 PM
  4. Hdd Install of swap file
    By fjon13 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 04-29-2003, 06:13 AM
  5. swap question
    By sirmax in forum General Support
    Replies: 7
    Last Post: 04-10-2003, 11:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


SanDisk 256GB Ultra USB 3.0 Flash Drive - SDCZ48-256G-U46 picture

SanDisk 256GB Ultra USB 3.0 Flash Drive - SDCZ48-256G-U46

$19.99



SanDisk 256GB Ultra Dual Drive Go USB Type-C Flash Drive, Black- SDDDC3-256G-G46 picture

SanDisk 256GB Ultra Dual Drive Go USB Type-C Flash Drive, Black- SDDDC3-256G-G46

$21.99



SanDisk 32GB Ultra Drive Dual Go USB Type-C Flash Drive, Green - SDDDC3-032G-G46 picture

SanDisk 32GB Ultra Drive Dual Go USB Type-C Flash Drive, Green - SDDDC3-032G-G46

$8.99



SanDisk 128GB Ultra Dual Drive USB Type-C, USB 3.1 Flash Drive - SDDDC2-032G-G46 picture

SanDisk 128GB Ultra Dual Drive USB Type-C, USB 3.1 Flash Drive - SDDDC2-032G-G46

$10.99



New 32GB Sandisk Ultra Fit 3.1 Type A Flash SDCZ430-032G-A46 picture

New 32GB Sandisk Ultra Fit 3.1 Type A Flash SDCZ430-032G-A46

$5.00



64GB USB 3.0 Flash Drive USB Memory Stick High Speed Retractable USB Thumb Drive picture

64GB USB 3.0 Flash Drive USB Memory Stick High Speed Retractable USB Thumb Drive

$5.99



2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage New picture

2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage New

$10.79



2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage US STOCK picture

2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage US STOCK

$12.08



LOT 32GB 64GB 128GB USB 3.0 Flash Drive Memory Stick Retractable Thumb Drive picture

LOT 32GB 64GB 128GB USB 3.0 Flash Drive Memory Stick Retractable Thumb Drive

$420.99



USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$353.99