LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2002, 01:09 PM   #1
lacrimae
Member
 
Registered: Feb 2002
Distribution: slackware 8.1; redhat 7.2
Posts: 65

Rep: Reputation: 15
but there is no line 10


SO iedited my etc/fstab, to mount the good old windows partition, which incidentally workd fine from command line if I mount it after I boot.

When I restarted computer I got a "WARNING: wrong format on line 10 in /etc/fstab." Then it boots fine.

So I exchange that new fstab for the old one I had saved as a backup because I didn't want to fool with it right then.
I am really sure I did that, that I removed the one I meant to remove and put in place the old one that I meant to restore. No confusion there.

Next time I boot, I get the same error. The old fstab is in place...(and even the one I had added win partition to had only 9 lines.)

Whats up with line 10? Lets say I never even switched back...it was not there anyway.

Last edited by lacrimae; 07-30-2002 at 01:13 PM.
 
Old 07-30-2002, 04:11 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Are you sure there isn't a line above the first line in your file? Maybe a spacer to get the beginning of the file down a bit to make it appear more organized? Don't forget that usually blanks also count as a line.
 
Old 07-30-2002, 06:30 PM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
And I believe that the fstab needs a blank line at the end (one with no characters). Perhaps there is a line 10, but it is not entirely blank?
 
Old 08-01-2002, 12:53 PM   #4
lacrimae
Member
 
Registered: Feb 2002
Distribution: slackware 8.1; redhat 7.2
Posts: 65

Original Poster
Rep: Reputation: 15
Ok, the man page didn't explain that....how do I add a blank line?
I mean, seems like there's one there, right?
 
Old 08-01-2002, 01:03 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Mine don't have blank lines at the end of them.
 
Old 08-01-2002, 02:20 PM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Neither is mine,
just check that everything's in place this is mine /etc/fstab as it is taken from freshly installed RH7.2 on one of my new workstations
Code:
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
/dev/hdb5               /home                   ext3    defaults        1 2
/dev/hda7               /opt                    ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/tmp              /tmp                    ext3    defaults        1 2
LABEL=/usr              /usr                    ext3    defaults        1 2
LABEL=/var              /var                    ext3    defaults        1 2
/dev/hda5               swap                    swap    defaults        0 0
/dev/dvd                /mnt/dvd                iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrw             /mnt/cdrw            iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
 
Old 08-01-2002, 07:48 PM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Oh, well! Just deleted the blank line from mine and it worked fine! Perhaps I'm going crazy (note: this is not a poll on whether I'm crazy or not ).
 
  


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
bash shell script read file line by line. Darren[UoW] Programming 57 04-17-2016 07:07 PM
BASH: read every line in the files and use the line as parameters as another program tam3c36 Programming 10 12-07-2010 02:42 PM
C++ text file line by line/each line to string/array Dimitris Programming 15 03-11-2008 09:22 AM
ADSL Router line 1 Mandrake 10. Line 2 is win xp pro virtthemaest Linux - Networking 0 08-05-2004 01:35 AM
linux scripting help needed read from file line by line exc commands each line read atokad Programming 4 12-26-2003 11:24 PM


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