LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-06-2004, 07:09 AM   #1
EPa
LQ Newbie
 
Registered: Mar 2004
Distribution: suse 9.0
Posts: 3

Rep: Reputation: 0
fstab error in line 11, what's wrong?


Hi!

I have been editing fstab file so that linux will mount windows server folders in right places in the linux machine. There is 3 folders in the server that i want to mount and i have been successful with 2 folders (fstab line 10 and line 12). But when i boot the machine it always says that fstab line 11 is bad and that folder is not mounted. Fstab file is:

/dev/hda2 / reiserfs defaults 1 1
/dev/hdc2 /data1 auto noauto,user 0 0
/dev/hda1 swap swap pri=42 0 0
/dev/hdc1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
//SERVERI/MiddleSchool /home/tectpupil/SERVERI/MiddleSchool smbfs credentials=/home/tectpupil/.salasana 0 0
//SERVERI/High School /home/tectpupil/SERVERI/HighSchool smbfs credentials=/home/tectpupil/.salasana 0 0
//SERVERI/Teachers /home/teacher/SERVERI smbfs credentials=/home/teacher/.salasana 0 0

Is the bad thing that there is space between High and School in the server folder name? line 10 has same syntax without space and .salasana file and it works .

Thanks!
 
Old 03-06-2004, 08:07 AM   #2
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
Quote:
Is the bad thing that there is space between High and School in the server folder name? line 10 has same syntax without space and .salasana file and it works .
That'll do it. Try escapeing the space, e.g.:

//SERVERI/High\ School /home/tectpupil/SERVERI/HighSchool smbfs credentials=/home/tectpupil/.salasana 0 0


I don't know if qouting the string would work, couldn't find anything in the docs about it.

a truncated name may also work - again, I'm not sure. e.g. HIGHSC~1
 
Old 03-06-2004, 09:59 AM   #3
EPa
LQ Newbie
 
Registered: Mar 2004
Distribution: suse 9.0
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, but didn't help.


Quote:
Originally posted by bnice
That'll do it. Try escapeing the space, e.g.:

//SERVERI/High\ School /home/tectpupil/SERVERI/HighSchool smbfs credentials=/home/tectpupil/.salasana 0 0


I don't know if qouting the string would work, couldn't find anything in the docs about it.

a truncated name may also work - again, I'm not sure. e.g. HIGHSC~1
 
Old 03-06-2004, 10:45 AM   #4
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Code:
//SERVERI/HighSchool /home/tectpupil/SERVERI/HighSchool smbfs
 credentials=/home/tectpupil/.salasana 0 0
close up the space and don't use a / (slash mark)
 
Old 03-06-2004, 10:46 AM   #5
EPa
LQ Newbie
 
Registered: Mar 2004
Distribution: suse 9.0
Posts: 3

Original Poster
Rep: Reputation: 0
YES!!!!

I found an answer with cheating the LinNeighborhood program. I mounted with that program that //SERVERI/High School in to /home/tectpupil/SERVERI/High School. Then i looked mtab file and i noticed that space in /home..../High School was written High\040School . I used that method in fstab //SERVERI/High\040School ... And IT WORKS!
 
  


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
Whats wrong with this line of fstab Boffy Linux - General 4 02-25-2005 04:32 PM
what is wrong with this /etc/fstab entry? d1l2w3 Linux - Hardware 10 01-31-2005 11:15 PM
fstab defaults sets wrong permissions dibblethewrecke Linux - Newbie 3 12-11-2004 02:10 PM
fstab entry changed by system to wrong device cmbguy Linux - General 2 08-19-2004 09:04 PM
What am I doing wrong in my Fstab? Mounting for Users jimdaworm Slackware 4 11-07-2003 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:15 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
Open Source Consulting | Domain Registration