LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-06-2004, 12:13 PM   #1
fobius
Member
 
Registered: Sep 2003
Location: California
Distribution: Slackware 9.1, Mandrake 9.2
Posts: 94

Rep: Reputation: 15
activating swap partition


i've just upgraded my kernel to 2.6.2 but for some reason I'm having trouble mounting my swap partitions during boot time. I'm using Mandrake 9.2, which I believe had been including supermount in their kernels; I'm not sure a plain kernel includes supermount features. Anyway, I get a boot time error message that says the mounting of my swap partitions failed. i've looked in /etc/fstab too and i do have my swap partitions listed there as well. how do i fix this?
 
Old 02-06-2004, 12:29 PM   #2
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
Would you show what you get for an error message at boot time and your fstab contents? Thanks. Also, can you activate your swap partitions manually after boot?

-Josh
 
Old 02-06-2004, 06:15 PM   #3
fobius
Member
 
Registered: Sep 2003
Location: California
Distribution: Slackware 9.1, Mandrake 9.2
Posts: 94

Original Poster
Rep: Reputation: 15
ok here goes:

fstab:

Code:
/dev/hda9 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda11 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=iso8859-1,codepage=850,umask=0 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,sync,codepage=850,umask=0 0 0
/dev/hda1 /mnt/win_c vfat iocharset=iso8859-1,codepage=850,umask=0 0 0
/dev/hda5 /mnt/win_d ntfs iocharset=iso8859-1,ro,umask=0 0 0
none /proc proc defaults 0 0
/dev/hda7 swap swap defaults 0 0
/dev/hda10 swap swap defaults 0 0
the boot time error message tells me that when it's activating my swap partition, (/dev/hda7) with swapon, /dev/hda7 seems to be an invalid argument. here's the output of fdisk -l:

Code:
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       638   5124703+   b  Win95 FAT32
/dev/hda2           639      4865  33953377+   f  Win95 Ext'd (LBA)
/dev/hda5           639      3443  22531131    7  HPFS/NTFS
/dev/hda6          4766      4811    369463+  83  Linux
/dev/hda7          4812      4821     80293+  82  Linux swap
/dev/hda8          4822      4865    353398+  83  Linux
/dev/hda9          3444      4207   6136798+  83  Linux
/dev/hda10         4208      4270    506016   82  Linux swap
/dev/hda11         4271      4765   3976056   83  Linux
i've tried using
Code:
 swapon /dev/hda7
and it also tells me that /dev/hda7 is an invalid argument.
 
Old 02-06-2004, 09:32 PM   #4
tearinox
Member
 
Registered: Aug 2003
Location: you dont want to know
Distribution: Gentoo 2004.2, Slackware 10, Windows XP, Windows 2003 Server
Posts: 348

Rep: Reputation: 30
make sure your root!

swapon /dev/hda7

or

swapon /dev/hda10


That should work
 
Old 02-06-2004, 09:41 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,800

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Check with the command ls -l /dev/hda*. Do you have a /dev/hda7 device?

My /dev/hda devices are actually symlinks to /dev/ide//host0/bus0/lun0/part(1 for hda1 etc).
 
Old 02-06-2004, 09:49 PM   #6
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
Another way to find out which drives you have available and their designators would be to type the following: dmesg | grep hd

Then you would see a list of devices that you can configure.

-Josh
 
Old 02-06-2004, 10:14 PM   #7
benjaminrtz
Member
 
Registered: Jul 2002
Location: India
Distribution: Ubuntu, Gentoo
Posts: 99

Rep: Reputation: 15
How abt doing a mkswap again on ur swap partitions ? HTH!
 
Old 02-07-2004, 03:21 AM   #8
fobius
Member
 
Registered: Sep 2003
Location: California
Distribution: Slackware 9.1, Mandrake 9.2
Posts: 94

Original Poster
Rep: Reputation: 15
i tried doing dmesg | grep hd and i noticed that there was a message about my /dev/hda7 being an old swap and that I should do 'mkswap -v1 /dev/hda7' to change it to a new swap style. then I did swapon /dev/hda7. it seems to be working now, but under my 2.4.21 kernel, it seems that I have more swap space and that that more of it was being used. could this be due to the fact that I let Mandrake install my 2.4.21 kernel and it included a whole bunch of extra stuff that I didn't really need?
 
Old 02-07-2004, 10:28 AM   #9
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
I'm sure that Mandrake did install a whole bunch of stuff that you didn't need... If you have less and are using less, I'd say that's a good thing...unless you're using all that you have.

-Josh
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUSE 9.3 Activating SWAP partition Hangs 1kyle Suse/Novell 0 08-29-2005 09:40 AM
Swap not Activating and Sound v2-ncl Slackware 2 10-22-2003 05:29 PM
boot freezes on "activating swap partition" sometimes dabicho Linux - Software 4 10-05-2003 10:53 AM
Activating swap partition early in install Septus Linux - Newbie 3 09-10-2003 10:54 PM
Error activating swap partition flyboy320 Linux - General 3 01-31-2002 04:22 AM


All times are GMT -5. The time now is 09:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration