LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-12-2006, 11:56 AM   #1
Bob Oehler
LQ Newbie
 
Registered: Feb 2006
Posts: 12

Rep: Reputation: 0
Swap Space Recognition


Hi Again

Someday I may not be a newbie

Here is a question that may or may not be about nothing.

I installed slackware 10.2
80 gig hd
256 meg in (2) 128 meg chips


When installing I created partitions

Part. id system size
hda1 82 linux swap 518.68 M
hda2 83 linux 79504.59 M

when installing slackware / linux kernal 2.4.31
it found the swapspace and formatted it.
LILO is on the MBR.

When all was done and I took my old server off line I took out one of the 128 Meg chips and installed a 256 Meg chip. I now have 375 Meg reportable memory.
I did not run KDE Kinfo Center / memory before I change the chips.

here is the thing that I don't know about


I am in KDE and went to Kinfo Center / memory and it reports
Total memory 375.77 Meg
Swap space Not available

so I go into Kinfo Center / storage devices
and it sees several things but what I am interested in is hard dives and as far as those it sees only
/dev/hda2 71.7 gig

no where is /dev/hda1 listed.
I reran both fdisk and cfdisk and the /dev/hda1 is reported there.



Any ideas.

Thanks
Bob Oehler
 
Old 03-12-2006, 12:04 PM   #2
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Check /etc/fstab and look for /dev/hda1 as swap. But KInfoCenter under partitions should show it too.

Last edited by lestoil; 03-12-2006 at 12:08 PM.
 
Old 03-12-2006, 12:15 PM   #3
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 770

Rep: Reputation: 68
I dont seem to have "Kinfo Center / storage devices", but you can check if your swap is working

dmesg | grep swap

you should see something like
Adding 401584k swap on /dev/hda1. Priority:-1 extents:1

if not you can try
swapon -v /dev/hda1

also check /etc/fstab - it should contain a line like

/dev/hda1 swap swap defaults 0 0

tobyl
 
Old 03-12-2006, 12:21 PM   #4
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
On a Slack 10.2 install I did a couple of weeks ago on an aging Toshiba laptop, I too noticed that my swap partition wasn't bein mounted. During a reboot I noticed something to the effect of "Old style swap filesystem not supported, remake swap partition with mkswap -v1" (it went by pretty quick)

So, after logging in (and re-reading the message in dmesg) I ran

Code:
root@box~#  mkswap -v1 /dev/hda2
root@box~#  mount /dev/hda2
/dev/hda2 being my swap partition, and bingo.
 
Old 03-12-2006, 12:35 PM   #5
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Kde menu>System>KInfoCenter then partitions.
 
Old 03-12-2006, 12:55 PM   #6
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
Originally Posted by odevans
On a Slack 10.2 install I did a couple of weeks ago on an aging Toshiba laptop, I too noticed that my swap partition wasn't bein mounted. During a reboot I noticed something to the effect of "Old style swap filesystem not supported, remake swap partition with mkswap -v1" (it went by pretty quick)

So, after logging in (and re-reading the message in dmesg) I ran

Code:
root@box~#  mkswap -v1 /dev/hda2
root@box~#  mount /dev/hda2
/dev/hda2 being my swap partition, and bingo.
I have noticed this same behavior on a few of my recent installs. It doesn't do it every time for me though, and the solution is always the same.

I haven't tracked down what the problem is exactly, but it might be worth reporting to Pat if it hasn't been already.
 
Old 03-12-2006, 10:46 PM   #7
Ishkabibble
Member
 
Registered: Aug 2003
Location: Worcester MA
Distribution: Ubuntu 8.04
Posts: 120

Rep: Reputation: 15
I'm having the same problem. I checked dmesg but didn't find the message that odevans found, but I'm sure that doesn't mean anything. I'm running Slack 10.2 on a Tosh Portege 7140CT.

I do get a temporary fix with swapon /dev/hda1 (i.e., I have to do it every time I reboot), but how do I make this permanent?

/etc/fstab only shows:

/dev/hda2 / reiserfs defaults 1 1
/dev/hda3 /home reiserfs defaults 1 2
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

Do I just add the /dev/hda1 line and save? What should be the other values? Thanks!

Last edited by Ishkabibble; 03-12-2006 at 11:06 PM.
 
Old 03-12-2006, 11:37 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,361

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
Read post #3.
 
Old 03-13-2006, 12:01 AM   #9
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
for Bob Oehler
the output of "#fdisk -l " will b of some help.
identify the partition first.
post the output, since it is swap u can fix it by even creating a swap file if ur partion doesn't exists.
Quote:
how do I make this permanent?
ss as in the 3rd post add the line
Code:
/dev/hda1       swap             swap         defaults         0   0
 
Old 03-13-2006, 12:07 AM   #10
Bob Oehler
LQ Newbie
 
Registered: Feb 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Hi All:

Well got it running and it is reporting in Kinfo center.

Here is what I did

Checked the /etc/fstab and the

/dev/hda1 swap swap defaults 0 0

was not there so I added them rebooted and still not swap drive
my machine loads fast and I did not see yea or neigh for /dev/hda1 reports. But is was not there

so follow more suggestions

Did the lines below and rebooted

root@box~# mkswap -v1 /dev/hda2
root@box~# mount /dev/hda2

now I have a swap drive and it survived another reboot.

Many thanks again this site is a life saver.

Some day I will be in total controll of linux

Bob Oehler
 
Old 03-13-2006, 11:42 AM   #11
Ishkabibble
Member
 
Registered: Aug 2003
Location: Worcester MA
Distribution: Ubuntu 8.04
Posts: 120

Rep: Reputation: 15
EXCELLENT!! You guys are kings!

BTW, if I ever have to re-load my OS (I'm considering putting in a WinBlows partition) how can I avoid this problem? Was it an issue with my installation? Something I forgot to do?

Thanks!
 
Old 03-13-2006, 11:47 AM   #12
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
During slackware installation it asks you for swap partition location and adds it automatically. You don't need to edit fstab file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
Slow recognition of free space on deleted filesystems robthky Linux - Enterprise 1 07-30-2005 07:24 PM
No swap space Zerimas Linux - Newbie 7 03-10-2005 06:08 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
Odd VMware issue. (disk space recognition) ferreter Linux - General 1 08-31-2003 06:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration