[EMAIL PROTECTED] wrote:
> 
> On Mon, 8 May 2000, Marc Mutz wrote:
> 
> > Hi out there?
> 
> Hi, Marc.
> >
> > Can anyone tell me if it is possible to put mountpoints and/or device
> > names into /etc/fstab that contain spaces? I'm particularly thinking of
> > something like this:
> >
> > Q> //Marc/My Documents  /mnt/Marc  smbfs  <options>  0  0
> >
> > grepping man fstab and man mount for 'space' hasn't revealed a
> solution.
> > And I'm too lazy to go through the source of mount (in util-linux).
> >
> > TIA,
> > Marc
> >
> > --
> > Marc Mutz <[EMAIL PROTECTED]>        http://marc.mutz.com/Encryption-HOWTO/
> > University of Bielefeld, Dep. of Mathematics / Dep. of Physics
> >
> > PGP-keyID's:   0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)
> >
> You mean like this?
> Script started on Mon May  8 19:08:50 2000
> witsend:/oops# mount
> /dev/hda4 on / type ext2 (rw)
> /dev/hda2 on /dosw type ext2 (rw,nosuid,nodev)
> /dev/hda1 on /dosc type ext2 (rw,nodev)
> /dev/hdc1 on /free type ext2 (rw,nodev)
> /dev/hdd1 on /dosd type ext2 (rw)
> none on /proc type proc (rw)
> none on /dev/pts type devpts (rw,gid=5,mode=0660)
> /oops/cuz I can on /spare type vfat (rw,noexec,nosuid,nodev)
> witsend:/oops# exit
> exit
> 
> Script done on Mon May  8 19:09:15 2000
> 
> You can't put an entry with spaces in /etc/fstab without driving mount
> berserk, but you can make a node with spaces in the name, and you can
> make a syntactically clean symbolic link for it.  In this case, I used
> /oops/fooey as the device name in fstab; it is a symbolic link to
> /oops/cuz I can, block device 22 69.  I could just as well have used
> /dev/hdd5, but where's the challenge in that?
> 
> Lawson
> 
<snip>

Thanks for the hint, but I guess it on't work for the following reason
(I'll try it, though):
"//Marc/My Documents" is a kind of resource identifier in a win network.
I can mount the share on the Command line via
Q> $ mount -t smbfs //Marc/My\ Documents /mnt/Marc -o<blah>
but if I'd like to put it into fstab to automate it, of course. Now, I
can probably create /Marc/My Documents and symlink /Marc/link ->
//Marc/My Documents, but I reckon that the symlink is followed by the
VFS layer and userspace mount won't see the content of it. Also, this
will obviously break when Linux will eventually follow Posix'
//-is-magic.

So I guess that I have to invest some time in studying
util-linux/mount/fstab.[ch]. Maybe someone out there can tell me the
name of the function that parses lines in fstab, so's I don't need to
follow the call trace myself :-(

Marc

-- 
Marc Mutz <[EMAIL PROTECTED]>        http://marc.mutz.com/Encryption-HOWTO/
University of Bielefeld, Dep. of Mathematics / Dep. of Physics

PGP-keyID's:   0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to