Fedora Linux Support Community & Resources Center
  #1  
Old 4th September 2005, 03:17 AM
frozenrage Offline
Registered User
 
Join Date: Sep 2005
Posts: 14
fstab

ok, i am continously receiving an error

"line 11 in /etc/fstab is bad"

i have no idea about anything in the linux system (its a fair bit more "complex" to understand than windows but hey, i'll get it one day)

anyway, i opened the offendling file with vi and the offending line is
"LABEL=^[Eß%'5K¡x <9a>TQÅ swap swap defaults 0 0"

sooo, would anyone be able to help me out?

(on another note, is it possible to force an unmount of a cd?)
Reply With Quote
  #2  
Old 4th September 2005, 03:31 AM
caphrim007 Offline
Registered User
 
Join Date: Jun 2005
Location: Wheaton, IL
Age: 29
Posts: 21
Yeah, well it sure doesnt look right to me. It's the line for your swap space, so to fix the error, you'll want to find out which device holds your swap space. For example, mine looks like this

/dev/hdb1 swap swap defaults 0 0

The quickest way I can think of to find out which device is partitioned as swap, is to open a command line and type
fdisk -l

Look for the line that has "Linux swap" for it's System column. Then make your invalid line above look like the line I've got. Just replace my /dev/hdb1 with whatever your partition is.

See if that doesnt help

Tim
__________________
Lead developer for Flare, an open source web frontend for filesharing and group collaboration.
It's meant to replace proprietary solutions that colleges often invest in. Such as httpCommander and NetFiles.
Reply With Quote
  #3  
Old 4th September 2005, 03:33 AM
homey Offline
Registered User
 
Join Date: Feb 2005
Posts: 415
That is bad for sure.
My swap partition is /dev/hdb3 and looks like this.....
Code:
LABEL=SWAP-hdb3         swap                    swap    defaults        0 0
Change yours to whatever partition the swap is on. You can find that by running the command: ( as root user ) fdisk -l and look for the one with a type of 82
For my box, that looks like this .....
Code:
/dev/hdb3            9651        9729      634567+  82  Linux swap / Solaris
Reply With Quote
  #4  
Old 4th September 2005, 03:51 AM
frozenrage Offline
Registered User
 
Join Date: Sep 2005
Posts: 14
wellll, i think that worked. i kinda thought it might be something to do with the swap file but i thought i better check first. thanks guys. btw, for some reason fdisk doesnt work...weird i had to use qtparted to check. which btw came up with a couple of error saying corrupt filesystem (guess it thought the fstab was bad to eh?) anyway, i edited fstab with vi (was that how i should have done it?) and alls good now , and qtparted aint complaining

again, thanks for the help.
Reply With Quote
  #5  
Old 4th September 2005, 04:12 AM
gavinw6662 Offline
Registered User
 
Join Date: Feb 2005
Age: 34
Posts: 1,281
Quote:
Originally Posted by frozenrage
wellll, i think that worked. i kinda thought it might be something to do with the swap file but i thought i better check first. thanks guys. btw, for some reason fdisk doesnt work...weird i had to use qtparted to check. which btw came up with a couple of error saying corrupt filesystem (guess it thought the fstab was bad to eh?) anyway, i edited fstab with vi (was that how i should have done it?) and alls good now , and qtparted aint complaining

again, thanks for the help.
fdisk is in /sbin/fdisk, if you ran it a regular user (even with sudo rights) it might have said no command as the absolute path is what you needed there (if /sbin/ isn't in your path -- exho $PATH)
__________________
I read your e-mail
Reply With Quote
  #6  
Old 4th September 2005, 05:14 AM
frozenrage Offline
Registered User
 
Join Date: Sep 2005
Posts: 14
hmm, thanks. is it possible to add /sbin/ to the local path variable?
Reply With Quote
  #7  
Old 4th September 2005, 06:29 PM
mencargo Offline
Registered User
 
Join Date: Aug 2005
Posts: 13
I have the same problem, I already checked and my swap partition is at /dev/hdb2,
so should I edit fstab like this:
1) LABEL=/dev/hdb2 swap swap defaults 0 0
2) /dev/hdb2 swap swap defaults 0 0
3) LABEL=SWAP-hdb2 swap swap defaults 0 0
I just want to know who it is supossed to be...
Reply With Quote
  #8  
Old 4th September 2005, 10:17 PM
frozenrage Offline
Registered User
 
Join Date: Sep 2005
Posts: 14
i just did a google search. this is a bug in anaconda in FC4 that has been reported. seems a lot of people have this problem .

anyway, yeah, i'm prettyt sure you should just edit it like that. also remember to turn it on with "/sbin/swapon /dev/hdb2"

then to make sure its working do "cat /proc/swaps"

anyway, thats how i did it and its working for me.
Reply With Quote
  #9  
Old 4th September 2005, 10:26 PM
tomcat's Avatar
tomcat Offline
Registered User
 
Join Date: Aug 2005
Location: EU, Germany
Age: 39
Posts: 1,185
Quote:
Originally Posted by mencargo
I have the same problem, I already checked and my swap partition is at /dev/hdb2,
so should I edit fstab like this:
1) LABEL=/dev/hdb2 swap swap defaults 0 0
2) /dev/hdb2 swap swap defaults 0 0
3) LABEL=SWAP-hdb2 swap swap defaults 0 0
I just want to know who it is supossed to be...
The answer is
2) /dev/hdb2 swap swap defaults 0 0
__________________
Powered by Fedora & CentOS | Windows-free since 2002
Reply With Quote
  #10  
Old 4th September 2005, 11:52 PM
mencargo Offline
Registered User
 
Join Date: Aug 2005
Posts: 13
Thank you tomcat, I'll try that.
Reply With Quote
Reply

Tags
fstab

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
What's in a name? FC5 fstab mmanders EOL (End Of Life) Versions 3 29th March 2007 02:13 PM


Current GMT-time: 07:03 (Sunday, 26-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