/etc/fstab + embedded spaces

View: New views
7 Messages — Rating Filter:   Alert me  

/etc/fstab + embedded spaces

by Carmel NY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I was attempting to create this entry in the /etc/fstab file. It is to
a WinXP machine.

//user@bios/My Documents /laptop smbfs rw,noauto  0  0

It fails because 'fstab' does not allow embedded spaces in device
names, not does it allow enclosing the name in quotes.

I did some Googling and discovered that I am not the only one annoyed
by this behavior. I discovered this patch that had been submitted awhile
ago.

http://lists.freebsd.org/pipermail/freebsd-bugs/2007-October/026469.html

Changing the share name is not really an option. Is there some way of
making this work in 'fstab'? I can use the name including spaces in
'mount_smbfs' so that is how I am currently mounting the share. It just
seems strange that 'fstab' by not accepting the use of quoting is not in
step with how FreeBSD usually operates.

--

Carmel
carmel_ny@...

|::::=======
|::::=======
|===========
|===========
|

It is much easier to suggest solutions
when you know nothing about the problem.
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: /etc/fstab + embedded spaces

by Michael Powell-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

carmel_ny wrote:

> I was attempting to create this entry in the /etc/fstab file. It is to
> a WinXP machine.
>
> //user@bios/My Documents /laptop smbfs rw,noauto  0  0
>
> It fails because 'fstab' does not allow embedded spaces in device
> names, not does it allow enclosing the name in quotes.
>
> I did some Googling and discovered that I am not the only one annoyed
> by this behavior. I discovered this patch that had been submitted awhile
> ago.
>
> http://lists.freebsd.org/pipermail/freebsd-bugs/2007-October/026469.html
>
> Changing the share name is not really an option. Is there some way of
> making this work in 'fstab'? I can use the name including spaces in
> 'mount_smbfs' so that is how I am currently mounting the share. It just
> seems strange that 'fstab' by not accepting the use of quoting is not in
> step with how FreeBSD usually operates.
>

Don't know if this works for fstab, but the normal way to escape spaces is
with a \, like this:

//user@bios/My\ Documents /laptop smbfs rw,noauto  0  0

May not work in fstab but you can try it and see.

-Mike


_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: /etc/fstab + embedded spaces

by Jerry-107 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 03 Nov 2009 12:13:24 -0500
Michael Powell <nightrecon@...> replied:

>carmel_ny wrote:
>
>> I was attempting to create this entry in the /etc/fstab file. It is
>> to a WinXP machine.
>>
>> //user@bios/My Documents /laptop smbfs rw,noauto  0  0
>>
>> It fails because 'fstab' does not allow embedded spaces in device
>> names, not does it allow enclosing the name in quotes.
>>
>> I did some Googling and discovered that I am not the only one annoyed
>> by this behavior. I discovered this patch that had been submitted
>> awhile ago.
>>
>> http://lists.freebsd.org/pipermail/freebsd-bugs/2007-October/026469.html
>>
>> Changing the share name is not really an option. Is there some way of
>> making this work in 'fstab'? I can use the name including spaces in
>> 'mount_smbfs' so that is how I am currently mounting the share. It
>> just seems strange that 'fstab' by not accepting the use of quoting
>> is not in step with how FreeBSD usually operates.
>>
>
>Don't know if this works for fstab, but the normal way to escape
>spaces is with a \, like this:
>
>//user@bios/My\ Documents /laptop smbfs rw,noauto  0  0
>
>May not work in fstab but you can try it and see.

Thanks for the suggestion. Unfortunately, it doesn't work either.

--
Jerry
gesbbb@...

|::::=======
|::::=======
|===========
|===========
|

The most winning woman I ever knew was hanged for poisoning three little
children for their insurance money.

Sherlock Holmes

_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: /etc/fstab + embedded spaces

by andrew clarke-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue 2009-11-03 06:57:12 UTC-0500, carmel_ny (carmel_ny@...) wrote:

> I was attempting to create this entry in the /etc/fstab file. It is to
> a WinXP machine.
>
> //user@bios/My Documents /laptop smbfs rw,noauto  0  0
>
> It fails because 'fstab' does not allow embedded spaces in device
> names, not does it allow enclosing the name in quotes.

A workaround may be to run mount_smbfs from /etc/crontab (or perhaps
the root user's crontab), eg.

@reboot /usr/sbin/mount_smbfs -N "//user@bios/My Documents" /laptop

or similar.

Regards
Andrew
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: /etc/fstab + embedded spaces

by Galactic_Dominator :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Nov 3, 2009 at 2:02 PM, andrew clarke <mail@...> wrote:

> On Tue 2009-11-03 06:57:12 UTC-0500, carmel_ny (carmel_ny@...)
> wrote:
>
> > I was attempting to create this entry in the /etc/fstab file. It is to
> > a WinXP machine.
> >
> > //user@bios/My Documents /laptop smbfs rw,noauto  0  0
> >
> > It fails because 'fstab' does not allow embedded spaces in device
> > names, not does it allow enclosing the name in quotes.
>
> A workaround may be to run mount_smbfs from /etc/crontab (or perhaps
> the root user's crontab), eg.
>
> @reboot         /usr/sbin/mount_smbfs -N "//user@bios/My Documents"
> /laptop
>
> or similar.
>
> Regards
> Andrew
> _______________________________________________
> freebsd-questions@... mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@..."
>

windows path's have alternate eg c:\Test~1


--
Adam Vande More
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: /etc/fstab + embedded spaces

by andrew clarke-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue 2009-11-03 14:07:37 UTC-0600, Adam Vande More (amvandemore@...) wrote:

>    windows path's have alternate eg c:\Test~1

Yes, files and paths may all have an MS-DOS 8.3 equivalent (I think
this option can be disabled in NTFS), however Windows SMB shares do
not.

"\\host\My Documents" is valid, but not "\\host\MYDOCU~1".
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: /etc/fstab + embedded spaces

by Galactic_Dominator :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Nov 3, 2009 at 2:20 PM, andrew clarke <mail@...> wrote:

> On Tue 2009-11-03 14:07:37 UTC-0600, Adam Vande More (
> amvandemore@...) wrote:
>
> >    windows path's have alternate eg c:\Test~1
>
> Yes, files and paths may all have an MS-DOS 8.3 equivalent (I think
> this option can be disabled in NTFS), however Windows SMB shares do
> not.
>
> "\\host\My Documents" is valid, but not "\\host\MYDOCU~1".
>

google also say use \040 in place of space


--
Adam Vande More
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."