LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-17-2006, 06:08 PM   #1
da_xlnc
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Rep: Reputation: 0
Line 7 in /etc/fstab is bad!!! Please Help


Hi....I m posting my /etc/fstab....while fc4 is loading I get a message saying that line 7 in /etc/fstab is bad. Line 7 is the one which says LABEL==....I have no clue what this is for and how do I fix it. Can I just delete the line out of there.



# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
LABEL==[Ñ¢Ž‹ ˜vš„] swap swap defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
dev/hda1 /mnt/windows ntfs rw,defaults,umask=0777 0 0



thanks for the help

angad
 
Old 07-17-2006, 06:56 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
So which partition is your swap partition??? From the console or xterm session type something like 'fdisk -l' minus the single quotemarks to find out. That is the lower case letter 'L' in the command not the number one.

The swap partition line may read something like;

Code:
/dev/hdaX        swap    swap    defaults     0 0
 
Old 07-17-2006, 07:35 PM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by da_xlnc
# This file is edited by fstab-sync
And everyone tried to tell me that fstab-sync was harmless...

Try upgrading your HAL package to a version which doesn't use fstab-sync.
 
Old 07-17-2006, 09:43 PM   #4
da_xlnc
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Original Poster
Rep: Reputation: 0
i typed fdisk -l in the terminal as root, but all it says is bash: fdisk: command not found. what am i doing wrong

[root@localhost ~]# fdisk -l
bash: fdisk: command not found
[root@localhost ~]#

thanks for the help
 
Old 07-17-2006, 10:06 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
fdisk is located in the /sbin directory. Typically /sbin is not in a users path environment so if you used su then you would see this error. Using su - will include roots path. You can always use the entire path i.e:
/sbin/fdisk -l
 
Old 07-18-2006, 07:35 PM   #6
AlienWarrior75
LQ Newbie
 
Registered: Feb 2006
Distribution: redhat/fedora core
Posts: 4

Rep: Reputation: 0
thanx

just wanted to say to all who posted;

this forum helped me save my swap partition and re-establish order to a sluggish fedora core 4 box.

my /etc/fstab had ambiguous remarks beside the swap entry

i corrected it to point to my 500 mb swap and now all is well

thanks !

:P

We live in a Universe whose age we can't quite compute, surrounded by stars whose distances we don't altogether know, filled with matter we can't identify, operating in conformance with physical laws whose properties we don't truly understand.

Last edited by AlienWarrior75; 07-18-2006 at 07:41 PM.
 
Old 07-19-2006, 07:39 PM   #7
da_xlnc
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Sorry for the late reply

fdsik -l gives me

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 7178 57657253+ 7 HPFS/NTFS
/dev/hda2 7179 9728 20482875 f W95 Ext'd (LBA)
/dev/hda5 7179 9662 19952698+ 83 Linux
/dev/hda6 9663 9727 522081 82 Linux swap / Solaris

The fstab contains

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
fix this line---> LABEL==[\u0462 \uffffv\uffff\uffff] swap swap defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0


how do i fix line 7
LABEL==[Ñ¢Ž‹ ˜vš„] swap swap defaults 0 0

thanx for the help

Last edited by da_xlnc; 07-19-2006 at 07:41 PM.
 
Old 07-19-2006, 07:54 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Change it to
Code:
/dev/hda6 swap swap defaults 0 0
Never could understand why RH bothered with labels - more trouble than it's worth.
 
Old 07-19-2006, 09:57 PM   #9
da_xlnc
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Original Poster
Rep: Reputation: 0
thaks for the help on thaty... i have one more problem i am trying to solve. I have an Intel Pro Wireles Card and i installed all the ipw2200 and ieee drivers as instructed on other forums, but still the card is detected as ethernet and not wireless do you know how I could fix it.


Thanks again
 
Old 07-20-2006, 06:03 AM   #10
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Simply edit (as root) the /etc/modprobe.conf file and change the alias for the device.
Also as root edit and rename the /etc/sysconfig/networking-scripts file to reflect the name change of the device.

When done with both restart the service; service network restart
 
  


Reply



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
FSTAB (line 7 is bad)- mounting NTFS filesystem lebabyg Fedora 5 03-19-2006 05:36 PM
Line 7 in fstab bad.... cooljed Linux - General 1 01-11-2006 06:42 AM
[mtent] line 7 in /etc/fstab is bad (CD Drives wont Mount) shof515 Linux - Hardware 1 11-24-2005 08:57 AM
Bad line in fstab dubya Fedora 2 06-19-2005 02:49 PM
WARNING: Bad format on line 10 of /etc/fstab thetwin Linux - Newbie 22 03-05-2003 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:40 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