Results 1 to 5 of 5

Thread: Running from CD changing swap file

  1. #1
    Junior Member
    Join Date
    May 2004
    Posts
    2

    Running from CD changing swap file

    I"m still running off the cd until I can work out a few small issues but until then I had a little question regarding the swap file.

    While in XP I created a linux swap partition on a spare drive hdb3 however it doesn't seem to be being used when I boot into the cd. It's 1.2G created with Acronis.

    The questions are I guess:

    Can I use it? and if so, how to set it up
    and can I do it from the boot screen?

    In case it wasn't totally obvious, I'm still very new at this but am dying to learn. I've tried searching for swap files, etc but most seem to deal with a hd install. Thanks for any input.

    KCK

  2. #2
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338
    Kck,

    From what I know...

    The swap file, using the CD, is just that, a file. It is created while you are booted to the CD, and can be created on a DOS, or FAT, partition.

    Once Knoppix is booted, goto KMenu -=> Knoppix -=> Configure ( I think ), and look for Create Swap File, or Configure Swap File...

    Running this, if I remember right, it will ask you which device you want to create the swap file on, this device should be the FAT, or DOS, partition, once selecting your device, it should tell you how much space it has available [?], and how large a swap file you want to create on that device.

    Knoppix should create a "file" on that device, just off the root of the drive, and name it something that has "knoppix" in the name, not sure, but I think the file name is "knoppix.swp" [?]

    To activate, and use, the swap file from within Knoppix, you will want to add the following to your boot: prompt:

    boot: knoppix swap=[device]
    or
    boot: knoppix swap=scan

    You should see it activate the swap file while Knoppix is boot, it will say something like: found swap on [...] activating, or found swap ... using (something like this)

    When you are in XP, you should be able to "see" the file that Knoppix created, and even be able to delete it. If you use a defrag program where the file is created, I have had problems with the swap after that point, usually requiring me to "re-create" the swap file again. If you delete the file, you will want to "re-create" the swap, in the above examples, again, as well.

    A "physical" swap partition is used when you install Knoppix to the hard drive, and will want you to use cfdisk to create the "Linux Swap" partition. When you are using the CD to boot, the "Linux Swap" partition is not used, but rather, a file is used for the swap.

    Hope this helps,
    Ms. Cuddles

  3. #3
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900
    Well I have no ideza what acronis is but it's a good idea to make linux partitions w/ linux utilities and M$ partitions w/ M$ utilities. That said....to activate a swap file simply do:

    Code:
    mkswap /dev/hdb3
    swapon /dev/hdb3
    voila!

    Is it being used?

    Code:
    free

  4. #4
    Junior Member
    Join Date
    May 2004
    Posts
    2
    Thanks for the replies. Actually I feel quite, QUITE embarrassed by my previous question. I asked it about three minutes too early. I did figure it out.

    One last question though while I'm on a roll. It does detect the linux swap on it's own while booting (the one I created on hdb3) and says it's using it. ?? Is that possible? It was mentioned above that this would only be the case if I installed to hd.

    I did create a file on hdb2 while in knoppix and it was there back in XP so how would I know which one it is using?

    I checked /proc/swaps and an entry was there but...

  5. #5
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900
    Quote Originally Posted by kck
    Thanks for the replies. Actually I feel quite, QUITE embarrassed by my previous question. I asked it about three minutes too early. I did figure it out.

    One last question though while I'm on a roll. It does detect the linux swap on it's own while booting (the one I created on hdb3) and says it's using it. ?? Is that possible? It was mentioned above that this would only be the case if I installed to hd.
    Knoppix will use a swap partition if it finds one be it from cd or hdd. To see if it's in use use the free command like so:

    Code:
    free
     total       used       free     shared    buffers     cached
    Mem:        127164     122368       4796          0       6332      48508
    -/+ buffers/cache:      67528      59636
    Swap:       249944     103796     146148

    I did create a file on hdb2 while in knoppix and it was there back in XP so how would I know which one it is using?
    Code:
    cat /proc/swaps

Similar Threads

  1. swap on a regular file
    By ddrex in forum Hardware & Booting
    Replies: 1
    Last Post: 04-07-2005, 04:35 PM
  2. changing permissions of /usr running liveCD
    By bernstine in forum General Support
    Replies: 1
    Last Post: 03-26-2005, 09:29 AM
  3. swap file question
    By herbyweed in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 02-07-2005, 06:31 PM
  4. swap file is gone after reboot
    By lothario in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 08-17-2004, 08:46 AM
  5. Hdd Install of swap file
    By fjon13 in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 04-29-2003, 06:13 AM

Posting Permissions

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


HPE ProLiant MicroServer Gen10 Plus 32GB RAM Xeon E-2224 3.40Ghz No HDD No AC  picture

HPE ProLiant MicroServer Gen10 Plus 32GB RAM Xeon E-2224 3.40Ghz No HDD No AC

$750.00



HP ProLiant MicroServer Gen8 Tower Server Xeon E3-1220 v2 2.3GHz 16GB RAM picture

HP ProLiant MicroServer Gen8 Tower Server Xeon E3-1220 v2 2.3GHz 16GB RAM

$289.99



HP Proliant MicroServer Gen 8 2.23GHz Xeon 16GB RAM NO SSD picture

HP Proliant MicroServer Gen 8 2.23GHz Xeon 16GB RAM NO SSD

$249.99



POGO ATLAS 1102 Server 32 Gb RAM 4TB Storage 2x2TB HDD’s (Tested-Working) No OS picture

POGO ATLAS 1102 Server 32 Gb RAM 4TB Storage 2x2TB HDD’s (Tested-Working) No OS

$179.85



New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G picture

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G

$449.99



Supermicro 5019D-4C-FN8TP Xeon D-2123IT (4C/8T) 64GB DDR4 10GbE 480GB 1U Server picture

Supermicro 5019D-4C-FN8TP Xeon D-2123IT (4C/8T) 64GB DDR4 10GbE 480GB 1U Server

$689.00



Supermicro Super Server 1029U-TN10RT Dual Xeon Silver 4210 - 10-Bay NVMe Rack picture

Supermicro Super Server 1029U-TN10RT Dual Xeon Silver 4210 - 10-Bay NVMe Rack

$500.00



Supermicro SuperServer E300-15 - SYS-e300-9C - 16GB RAM 240GB Samsung SSD picture

Supermicro SuperServer E300-15 - SYS-e300-9C - 16GB RAM 240GB Samsung SSD

$199.99



Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset picture

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset

$129.99



ASRock Rack ROMED8-2T/BCM Server Motherboard For Parts/Repair picture

ASRock Rack ROMED8-2T/BCM Server Motherboard For Parts/Repair

$365.00