LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-19-2004, 01:33 PM   #1
bleedingturnips
Member
 
Registered: Sep 2003
Distribution: Slackware 10.2, Slackware-Current
Posts: 48

Rep: Reputation: 15
Failure to mount swap space on boot


Hello,

I'm running Fedora Core 1.

I previously had FreeDOS installed on one partition and Fedora Core 1 on another.

My system was running poorly, so I decided to convert the FreeDOS (FAT 16) partition, /dev/hda1, to swap. I did this by just using fdisk to convert the file system type to 82 (Linux swap). I didn't delete the FAT 16 partition and then create the swap space from the freespace. Maybe this was the wrong thing to do?

Fedora _seems_ to be running better with the extra swap, though this could be wishful thinking on my part because on boot up I see


Remounting root filesystem in read-write mode:
Activating swap partitions:
swapon: /dev/hda1: Invalid argument: [Failed]


and then


Mounting local filesystems:
Enabling local filesystem quotas:
swapon: /dev/hda1: Invalid argument:
Enabling swap space: [OK]


fdisk -l outputs:

Device Boot Start End Blocks Id System
/dev/hda1 1 77 310432+ 82 Linux swap
/dev/hda2 * 78 102 100800 83 Linux
/dev/hda3 103 896 3201408 83 Linux
/dev/hda4 897 993 391104 5 Extended
/dev/hda5 897 993 391072+ 82 Linux swap

My fstab is

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda1 swap swap defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0


So my question is are both swap spaces actually being mounted? And how can I get rid of the error messages? Is this a permissions issue on /dev/hda1?

Thanks for your help.
 
Old 09-19-2004, 01:46 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,678

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Look at the output the free command. If total swap is sum of both partitions then it is working.

Did you actually format the swap partition using the mkswap command?
 
Old 09-19-2004, 04:19 PM   #3
bleedingturnips
Member
 
Registered: Sep 2003
Distribution: Slackware 10.2, Slackware-Current
Posts: 48

Original Poster
Rep: Reputation: 15
Oops....nope I didn't use mkswap. But I just tried it and that fixed it! Thanks so much.

I'd only changed the filesystem type using fdisk.

Thanks again.
 
Old 11-03-2004, 01:07 AM   #4
majolee
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
swap problem

Hello,

We are using RedHat 9 since 1 year now.

But we have not researched more on Linux basics yet

Recently we changed the system hard disk to a another motherboard, ram and cd rom. The motherboard is of same configuration but the RAM has been reduced and cd drive is changed.

Now the boot loader gives error

/dev/hda3 Activating swap failed

so we searched web for answers to get the things back to normal..and we found this post of yours..

here is our current fdisk -l thing

Disk /dev/hdc: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 13 104391 83 Linux
/dev/hdc2 14 4740 37969627+ 83 Linux
/dev/hdc3 4741 4870 1044225 82 Linux swap

whereas the fstab shows ..

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0

Please help..

Majolee InfoTech
 
Old 11-03-2004, 01:10 AM   #5
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
change the entry in fstab, from /dev/hda3 to /dev/hdc3


That will fix it.
 
Old 11-03-2004, 01:19 AM   #6
majolee
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
Hello,

While doing post I just tried to change the same thing you said and after reboot all was working well..

But could not understand why this would have happened..

Thanks a lot for quick reply.

Majolee Infotech
 
  


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
boot failure due to insufficient space ?? samik Fedora - Installation 3 07-27-2005 01:22 PM
after Enabling swap space Fedora hangs on boot ejbest Linux - Newbie 11 10-07-2004 08:27 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
Swap fails to mount at boot Omni Arch 3 03-17-2004 09:09 AM
Add Hard disk for swap space with problems in boot sector rkes7 Linux - Hardware 1 01-25-2004 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:13 PM.

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