Results 1 to 8 of 8

Thread: Problems creating swap file

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jan 2005
    Location
    Ebermannstadt, Germany
    Posts
    6

    Problems creating swap file

    Hi,

    today I burnt my Knoppix 3.7 CD and made it boot. However, so far I cannot use Knoppix because creating the swap file somehow seems not not work.

    After detecting and auto-configuring some devices, I get a message saying I have only 47504 KB free RAM (on a 64MB machine). The only way to answer this message is entering OK, whereas the welcome text on the CD (Knoppix/index.html) says that Knoppix needs only 20 MB of RAM - at least for text mode.

    After I have entered OK, Knoppix tries to create a DOS swap file. However this fails with the message

    /usr/sbin/mkdosswapfile: line 11: usr/bin/id: Eingabe/Ausgabefehler (which means I/O error)

    and it seems to be in an endless loop showing this message again and again. It does not even react to any keystrokes (Ctrl-Z, Ctrl-C, Ctrl-D, ...) so the only way for me to get out has been a hardware reset and booting Windows again.

    Can anyone give me a clue as to what has gone wrong? Do I need any preliminary actions in order to create a swap file? Or is there a possibility to start in text mode? (I did not find any option "textmode" or "noKDE" or whatever)

    Thank you very much,

    Matthias

  2. #2
    Junior Member registered user
    Join Date
    Dec 2004
    Location
    The Looking Glass
    Posts
    22
    did you do like "knoppix24 3" to get text only mode?
    knoppix26 3 should work if you use that

    should have a better chance of figuring out the swap file if you can fiddle in text mode

  3. #3
    Junior Member
    Join Date
    Jan 2005
    Location
    Ebermannstadt, Germany
    Posts
    6
    I already tried "knoppix 2" (should be identical to "knoppix24 2") (which, according to the list of cheatcodes, means "Runlevel 2, Textmode only) with the same result - which really astonished me!

    Having read your reply, I tried knoppix26, but it gets stuck when accessing the cdrom drive.

    Then I tried knoppix 3 - again same result - I am forced to run mkdosswapfile before getting any prompt, and this loops with the mentioned I/O error.

    Regards,

    Matthias

  4. #4
    Junior Member
    Join Date
    Jan 2005
    Location
    Ebermannstadt, Germany
    Posts
    6
    Additional informatetion: Knoppix detects 61656 KB (which is considerably less than 64 M) of RAM and then creates a ramdisk of 44212 K on shared memory.

    I still cannot understand why I am forced into mkdosswapfile even if I enter "knoppix 2" on the boot prompt.

    Regards

    Matthias

  5. #5
    Junior Member
    Join Date
    Jan 2005
    Location
    Ebermannstadt, Germany
    Posts
    6
    Now I tried booting "failsafe", and I succeeded in creating two swap files (one on each of my HDD partitions, why?).
    Then I could start a KDE session.

    So I hoped that Knoppix would detect the swap files on the next boot
    However, booting "knoppix" (the normal way) again gives me the same problem as before.

    How can I get any clues as to what went wrong in the hardware detection and swap file handling?

    Regards,

    Matthias

  6. #6
    Junior Member
    Join Date
    Jan 2005
    Location
    Ebermannstadt, Germany
    Posts
    6
    Meanwhile I have found the cause for Knoppix not being able to create or use a swap file: It was the DMA acceleration.

    With "knoppix nodma", I can start Knoppix, KDE also starts, and it apparently uses the previously created swap files (One on each of my two partitions).

    However, when I try to configure the swap files from KDE, I get an error message "no suitable DOS partitions for creating a swap file".

    My "other" OS is Win98, file system Fat32.

    What may have gone wrong here?

    Regards,

    Matthias

  7. #7
    Junior Member registered user
    Join Date
    Jan 2005
    Posts
    20
    I'm not sure what's going on with your machine. I'm running Knoppix 3.7 on a laptop as a sraight Linux disk, and also on a windows 2000(fat32) desktop with an attached usb drive. I have 1gb swap files on the laptop, and the usb drive, which knoppix sees as /dev/sda2. I used QTParted to create Linix ext3 partitions for programs and data, and then the special "swap file" format for the swap files. that's the only thing I can think of. Are your swap files Formatted by cfdisk or QTParted as "swap file" ? When I boot knoppix, it automatically looks around for an available swap file, I never have to tell it where to go to find one .

  8. #8
    Junior Member
    Join Date
    Jan 2005
    Location
    Ebermannstadt, Germany
    Posts
    6
    Hi rgarden,

    I did not use cfdisk, QParted, nor anything like that for the swap files. I just had Knoppix make them in the startup process (this step is called automatically when there is not enough RAM to run KDE). For this purpose, Knoppix uses a built-in shell script named mkdosswapfile, and I do not know its details yet.

    As I mentioned earlier, my Knoppix does use the swap file (and automatically detects it on startup), if I start it with the nodma cheatcode. I just cannot configure the swap file from the KDE (you get this menu when clicking on the penguin symbol).

    regards,

    Matthias

Similar Threads

  1. Creating Linux and Swap partitions on a blank drive
    By pezz453 in forum Hardware & Booting
    Replies: 7
    Last Post: 08-11-2005, 10:07 PM
  2. Replies: 1
    Last Post: 07-14-2005, 04:27 AM
  3. swap on a regular file
    By ddrex in forum Hardware & Booting
    Replies: 1
    Last Post: 04-07-2005, 04:35 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
  •  


Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" x Xeon E5-2680 v2 2.8GHz 20-Cores 128gb 4x Trays

$349.99



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays

$259.99



Dell PowerEdge R710 Server 2x Xeon E5620 2.4GHz 96GB DDR3 Rackmount picture

Dell PowerEdge R710 Server 2x Xeon E5620 2.4GHz 96GB DDR3 Rackmount

$139.99



Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5

Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w

$174.95



Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core | 32GB | HBA330 | 2x 1100w picture

Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core | 32GB | HBA330 | 2x 1100w

$359.99



Dell PowerEdge R640  8xSFF Server Barebone 2 x Heat Sink w / 2x 1100W PSU picture

Dell PowerEdge R640 8xSFF Server Barebone 2 x Heat Sink w / 2x 1100W PSU

$315.00



Dell Poweredge T420 SFF 2x E5-2430 v2 2.5Ghz / 64gb / H710 / 8x Trays / 2x 495w picture

Dell Poweredge T420 SFF 2x E5-2430 v2 2.5Ghz / 64gb / H710 / 8x Trays / 2x 495w

$394.99



Dell R640 Diskless Servers 2x Gold 18-Cores 6254 3.10GHz CPU, 32gb RAM, No Raid picture

Dell R640 Diskless Servers 2x Gold 18-Cores 6254 3.10GHz CPU, 32gb RAM, No Raid

$699.00



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99