LinuxQuestions.org
Visit Jeremy's Blog.
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 04-17-2005, 08:42 AM   #1
Zurvan
LQ Newbie
 
Registered: Sep 2004
Location: Boston
Distribution: debian, solaris, fedora
Posts: 25

Rep: Reputation: 15
samba mounts in fstab


Hi, I seem to have run into a brick wall. I am trying to place a mount in fstab so that when I boot, my smaba shares are mounted for me. While I have been able to mount the share via the command line, I have not been able to get it to work via the fstab. My guess is that it stems from the fact that I have spaces in the share and when the fstab file is parsed it does not accept the escape characters. Is there some way that I can have the drive loaded at boot in either the fstab or another way? Here is my fstab in case there is an error in it that will let me mount the samba share at boot.
Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
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
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/dev/scd2               /media/cdrecorder       auto    pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0
/dev/scd1               /media/cdrom            auto    pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0
/dev/scd0               /media/cdrom1           auto    pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0
//rabi-en-rose/120\ gig\ drive /media/rabi      smbfs   user,rw,iocharset=utf8,uid=500,gid=500,fmask=775,dmask=775,credentials=/home/zurvan/smb.pass 0 0
Thank you,
- Zurvan
 
Old 04-17-2005, 09:12 AM   #2
ejoe
LQ Newbie
 
Registered: Oct 2003
Location: Australia
Posts: 8

Rep: Reputation: 0
You don't just need 'auto' in there?

...smbfs auto,user,rw,...
 
Old 04-17-2005, 09:42 AM   #3
Zurvan
LQ Newbie
 
Registered: Sep 2004
Location: Boston
Distribution: debian, solaris, fedora
Posts: 25

Original Poster
Rep: Reputation: 15
Ahh, yes. That would make it an auto mount, but that still does not seem to fix the issue with the fstab spliting the share name when it comes to a space.
Thank you,
-- Zurvan
 
Old 04-17-2005, 10:06 AM   #4
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15


Try:

//rabi-en-rose/120\040gig\040drive /media/rabi

better yet, would be to avoid spaces in your share names ...they're quite the headache
 
Old 04-17-2005, 10:11 AM   #5
Zurvan
LQ Newbie
 
Registered: Sep 2004
Location: Boston
Distribution: debian, solaris, fedora
Posts: 25

Original Poster
Rep: Reputation: 15
Bingo, that is it!!

Thank you for your help. All I had to do was use the \040 as a space and it worked. Out of curiosity, where did you find the answer, I tried google and man mount, and neither had that as a solution.

-- Zurvan
 
Old 04-17-2005, 10:13 AM   #6
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
man fstab
 
  


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
regular user mounts and fstab (again) clawder Slackware 7 12-31-2004 12:37 PM
fstab to define mounts on boot PhiMati Fedora 1 06-18-2004 05:29 PM
smb mounts in fstab failing gw1500se Mandriva 4 05-31-2004 08:51 AM
How to edit mounts - fstab problems... muzicman82 Linux - General 3 01-29-2004 10:06 PM
switching mounts in fstab elpresidente Linux - General 6 07-09-2002 07:54 PM

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

All times are GMT -5. The time now is 07:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration