LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   swap not detected!! (https://www.linuxquestions.org/questions/linux-newbie-8/swap-not-detected-179486/)

dongmin 05-08-2004 10:53 PM

swap not detected!!
 
ok i finally was able to figure out making the swap partition.. i created a 64 meg swap partition at the end of the drive.. i configured it as "Linux Swap" (82). then i typed "mkswap /dev/hda2".. it spat out a 1 liner with some numbers.. then i typed "swapon -a" and rebooted.

btw this was all done with tomsrtbt and fdisk.

i put in the dsl floppy and it still says "memory found 5480kb" then doesn't seem to use the swap space at all and runs out of memory!!

what's the problem!!

Tinkster 05-08-2004 11:38 PM

You'll need a valid fstab entry to turn swap on
during boot automagically :)

Code:

/dev/hda2        swap            swap        defaults        0  0


Cheers,
Tink

dongmin 05-08-2004 11:53 PM

how exactly do i do this?

slakmagik 05-09-2004 12:24 AM

$EDITOR /etc/fstab

dongmin 05-09-2004 06:26 AM

the only way i can do linux commands is with tomsrtbt.. i'm not even able to load DSL right now.. i think it's actually picking up the swap partition but still gives me out of memory errors, altho it doesn't say "putting you in a very limited shell" anymore. i tried making the swap partition bigger by doubling it to 128mb, but still no avail.. any suggestions?

slakmagik 05-09-2004 10:02 AM

How can you not issue commands in DSL? Are you trying to install or run?

toms has vi. If DSL is already installed, mount the root partition and 'vi /mnt/whatever/etc/fstab' - arrow down or hit 'j' a few times, hit '$' if you don't have a blank line and 'a' or just 'i' if you have a blank line - type Tink's line (modify for your partition), hit 'escape', and ':wq'.

If you're trying to install, there's a way to initialize the swap at the boot prompt, I believe, but I forget how. Maybe somebody can say or you can find that info. Don't the DSL install docs say?


All times are GMT -5. The time now is 08:24 PM.