Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th November 2007, 02:10 AM
AllanPen's Avatar
AllanPen Offline
Registered User
 
Join Date: Mar 2007
Location: Nanoose Bay, B.C. Canada
Age: 72
Posts: 229
Assign swapfile

I have F7 on another partition. Went back to it because I couldn't get java to work on 8. Anyways I re-installed 8 to mess with in my spare time. I controlled the partitioning and gave myself a home partition for the first time. What I forgot was to direct F8 to the existing swapfile. It shows in fstab and I tried mount -a but, it stil boots showing no swapfile. Here is fstab,
Edit: Still have F7.
LABEL=/1 / ext3 defaults 1 1
LABEL=/media/storage /media/storage ext3 defaults 1 2
LABEL=/home /home ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda2 swap swap defaults 0 0
__________________
MB: Gigabyte P55A-UD4P ATX LGA1156
CPU: Intel Core i5 750 Quad Core Processor
Mem: 8GB G.SKILL Ripjaws PC3-12800
Windows 7, Ubuntu Fedora, Suse
Reply With Quote
  #2  
Old 20th November 2007, 03:05 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello:
If your F7 installation is not using LVM then you should have nothing to worry about as F8 would pick that swap partiton up and use it.

From F8, what is the output of
su -
swapon -s

BTW, there is a swap denoted in the fstab file you posted above ?
Quote:
/dev/sda2 swap swap defaults 0 0
Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #3  
Old 20th November 2007, 03:26 AM
AllanPen's Avatar
AllanPen Offline
Registered User
 
Join Date: Mar 2007
Location: Nanoose Bay, B.C. Canada
Age: 72
Posts: 229
Hello Seve; output zilch
[root@localhost opt]# swapon -s
Filename Type Size Used Priority

That's what I figured; that it would pick up on the existing swapfile.
__________________
MB: Gigabyte P55A-UD4P ATX LGA1156
CPU: Intel Core i5 750 Quad Core Processor
Mem: 8GB G.SKILL Ripjaws PC3-12800
Windows 7, Ubuntu Fedora, Suse
Reply With Quote
  #4  
Old 20th November 2007, 03:40 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Hello:
Is your F7 using LVM ?
If you created a custom partition [non-LVM] for F8 and are using LVM for F7 then you cannot share the swap.

If that's not the case and the output of
fdisk -l
shows something like
/dev/sda2 14339 14593 2048256 82 Linux swap / Solaris
and it matches what you have in your /etc/fstab file

then try
su -
swapon -a
then
swapon -s

and post the output

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #5  
Old 20th November 2007, 03:50 AM
AllanPen's Avatar
AllanPen Offline
Registered User
 
Join Date: Mar 2007
Location: Nanoose Bay, B.C. Canada
Age: 72
Posts: 229
[root@localhost opt]# swapon -a
swapon: /dev/sda2: Invalid argument
[root@localhost opt]# swapon -s
Filename Type Size Used Priority
[root@localhost opt]#

and excerpt from fdisk -l

/dev/sdb2 11474 11664 1534207+ 82 Linux swap / Solaris
__________________
MB: Gigabyte P55A-UD4P ATX LGA1156
CPU: Intel Core i5 750 Quad Core Processor
Mem: 8GB G.SKILL Ripjaws PC3-12800
Windows 7, Ubuntu Fedora, Suse
Reply With Quote
  #6  
Old 20th November 2007, 04:01 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,376
Quote:
Originally Posted by AllanPen
[root@localhost opt]# swapon -a
swapon: /dev/sda2: Invalid argument
[root@localhost opt]# swapon -s
Filename Type Size Used Priority
[root@localhost opt]#

and excerpt from fdisk -l

/dev/sdb2 11474 11664 1534207+ 82 Linux swap / Solaris
Hello:
You need to edit your /etc/fstab file and change
/dev/sda2 swap swap defaults 0 0
to
/dev/sdb2 swap swap defaults 0 0
save, exit and then
try
swapon -a
then
swapon -s

swapon -a will activate any valid swap partition from the information denoted in your /etc/fstab file and since what is now there <=> to /dev/sdb2 it's throwing out the error you posted above.

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #7  
Old 20th November 2007, 05:01 AM
AllanPen's Avatar
AllanPen Offline
Registered User
 
Join Date: Mar 2007
Location: Nanoose Bay, B.C. Canada
Age: 72
Posts: 229
Ahh Jeez of course.

Thanks Seve
__________________
MB: Gigabyte P55A-UD4P ATX LGA1156
CPU: Intel Core i5 750 Quad Core Processor
Mem: 8GB G.SKILL Ripjaws PC3-12800
Windows 7, Ubuntu Fedora, Suse
Reply With Quote
Reply

Tags
assign, swapfile

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I make swapfile after install FC8? qazx903 Using Fedora 5 15th October 2008 08:28 AM
How to create a pagefile(may be swapfile) linuxpcmancn Using Fedora 3 8th January 2008 10:46 AM
How to assign ip to hvm domain (Xen on FC6) sootkun Using Fedora 0 7th January 2007 03:11 AM
How to assign or find IRQ ? enggabhinandan Hardware & Laptops 1 18th June 2006 08:57 AM
Software suspend2 swapfile problem inexpensive Using Fedora 4 16th February 2005 09:04 PM


Current GMT-time: 03:46 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat