Re: Mounting a samba share via fstab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 10 January 2008 03:55:43 pm Daniel B. Thurman wrote:
> On Thursday 10 January 2008 03:36:59 pm Craig White wrote:
> > On Thu, 2008-01-10 at 15:26 -0800, Dan Thurman wrote:
> > > On Thursday 10 January 2008 02:24:56 pm Daniel B. Thurman wrote:
> > > > I have read many google threads and cannot seem to figure this one
> > > > out. What I did:
> > > > 1) mkdir /media/Music_A-F
> > > > 2) chmod 0777 /media/Music_A-F
> > > > 3) Edited /etc/fstab and added entry (broken up below but single
> > > > line): //server/share/Music%20A-F
> > > >     <TAB>/mnt/share/Music_A-F
> > > >     <TAB>cifs
> > > >     <TAB>nosuid,nodev,noexec,
> > > >                 username=user,password=passwd,uid=500,
> > > >                 gid=500,file_mode=0664,dir_mode=0755
> > > >      <TAB>0 0
> > > > 4) mount -a
> > > >      (No errors reported)
> > > > 5) ls -ld /media/Music_A-F
> > > >     d????????? ? ?    ?        ?                ? Music-AF
> > > > 6) ls /media/Music_A-F
> > > >     ls: cannot access Music-AF: No such file or directory
> > > > 7) umount /media/Music_A-F
> > > >     (No errors reported)
> > > > 8) ls /media/Music_A-F
> > > >     (no errors reported, listed empty directory)
> > > > Anything I am missing?
> > > > Thanks-
> > > > --
> > >
> > > I discovered the problem.  It is that %20 (space) that is not
> > > recognized and causes the mount to blow up.  Can someone tell me how to
> > > add spaces in the string: //server/share/Music%20A-F ?  What I want is:
> > > //server/share/Music A-F/
> >
> > ----
> > enclose in double quotes - omit trailing slash
> > "//server/share/Music A-F"
> > Craig
>
> That does not work.  Mount complains :
> +  mount -a
> [mntent]: line 9 in /etc/fstab is bad
> Any ideas?

OK - I finally got it.  Replace all spaces with \040 and you are good to go.

Sorry to bother-
Dan




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux