LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-02-2005, 08:05 PM   #1
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Rep: Reputation: 30
HELP: fstab woes :S


I have done a first-time clean installation of Fedora Core 4. I notice there's something wrong during startup. It says syntax error in fstab and is ignoring from line 4 onwards, etc.

I look in /etc/fstab and it's like:

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=&^L^U: ^@^S=#^S swap swap defaults 0 0


Interesting. I though something went wrong during installation. So I reinstalled again. Guess what. Exactly the same /etc/fstab gets generated. I was a Fedora Core 3 user and never had this fstab problem.

I don't have my cdrom mount. What is the usual cdrom fstab line? Even better, is there a auto/regenerate the proper fstab file?
 
Old 11-02-2005, 08:55 PM   #2
kurtdriver
Member
 
Registered: May 2005
Location: Vancouver, Canada
Distribution: Fedora 18, Puppy Linux, various others
Posts: 107

Rep: Reputation: 15
mine has these-Happy computing, Kurt

/dev/fd0 /media/floppy vfat users,pamconsole 0 0
/dev/hdc /media/cdrom iso9660 users,pamconsole 0 0
 
Old 11-03-2005, 02:21 PM   #3
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by a thing
Code:
/dev/hda6               /                       ext3    defaults                        1       1
/dev/hda7               /boot                   ext2    defaults                        1       2
/dev/devpts             /dev/pts                devpts  gid=5,mode=620                  0       0
/dev/shm                /dev/shm                tmpfs   defaults                        0       0
/dev/hda9               /home                   ext3    defaults                        1       2
/dev/proc               /proc                   proc    defaults                        0       0
/dev/sys                /sys                    sysfs   defaults                        0       0
/dev/hda8               /usr/local              ext3    defaults                        1       2
/dev/hda5               swap                    swap    defaults                        0       0
/dev/sda1               /media/usbdrive         auto    pamconsole,rw,exec,noauto       0       0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto          0       0
/dev/hdd                /media/dvdr             auto    pamconsole,exec,noauto          0       0
/dev/hdc                /media/cdr              auto    pamconsole,exec,noauto          0       0
That's my fstab. Remake yours based on that.
Thanks. The swap line helped a lot. I was wondering why my linux was running awfully slow.

Actually. I am not sure which hda partition is my swap. any ideas how I can find out?

What am wondering is why did my /etc/fstab get corrupted, twice in a row installations?

Last edited by kevingpo; 11-03-2005 at 02:32 PM.
 
Old 11-03-2005, 04:18 PM   #4
kevingpo
Member
 
Registered: Nov 2004
Location: Edinburgh, UK
Distribution: Fedora Core 3
Posts: 188

Original Poster
Rep: Reputation: 30
I just installed FC3 again and this is what my /etc/fstab looks like:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/1 / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-hda4 swap swap defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,fscontext=sys
tem_ubject_r:removable_t,ro,exec,noauto,managed 0 0



I believe that my partition has a bad sector in it and that's why FC4 /etc/fstab got corrupted. I will fsck my disk soon and let you know.
 
Old 11-03-2005, 07:51 PM   #5
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
The swap label corruption issue is a known bug with the Fedora installer (disk druid, I think). You can search redhat's bugzilla if you want details. It happens only if you specify partitions during installation and don't let disk druid partition automatically. The swap partition is actually created, but its label in fstab is corrupted, and swap may or may not be active at bootup.

Just edit fstab to set the label to the correct partition and execute "swapon -a" to make sure it gets activated.

Edit: Here's the bug report. https://bugzilla.redhat.com/bugzilla....cgi?id=159087

Last edited by jcliburn; 11-04-2005 at 07:19 AM.
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM
X woes norfenstein Slackware 9 03-13-2003 12:11 AM
fstab woes kierl Linux - General 4 02-21-2003 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:28 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration