Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #162715 > unrolled thread

fstab syntax question

Started bySteve Matzura <sm@noisynotes.com>
First post2016-01-06 18:30 +0100
Last post2016-01-07 13:40 +0100
Articles 5 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  fstab syntax question Steve Matzura <sm@noisynotes.com> - 2016-01-06 18:30 +0100
    Re: fstab syntax question Gary Dale <garydale@torfree.net> - 2016-01-06 19:20 +0100
      Re: fstab syntax question Steve Matzura <sm@noisynotes.com> - 2016-01-07 06:40 +0100
        Re: fstab syntax question mudongliang <mudongliangabcd@hotmail.com> - 2016-01-07 08:20 +0100
          Re: fstab syntax question Steve Matzura <sm@noisynotes.com> - 2016-01-07 13:40 +0100

#162715 — fstab syntax question

FromSteve Matzura <sm@noisynotes.com>
Date2016-01-06 18:30 +0100
Subjectfstab syntax question
Message-ID<qO04j-4bH-9@gated-at.bofh.it>
I have two things that need to go into /etc/fstab. One's a network
share with a username and password. The other is a Windows share which
is public, no username and password for that one. Both shares will
bmnounted on the Debian system read-only. I know how to do this with
mount and the -t switch, and the options for the -o switch to make
them read-only and provide a username and password. What I don't know
is what is supposed to go into fstab. I've tried a few different
syntaxes, but so far none have worked. The networked drive is called
//DISKSTATION1/BigVol1. The Windows share is //box1/e (drive "E:" on
the system calling itself `box1'.

Thanks in advance.

[toc] | [next] | [standalone]


#162716

FromGary Dale <garydale@torfree.net>
Date2016-01-06 19:20 +0100
Message-ID<qO0QG-4Ih-11@gated-at.bofh.it>
In reply to#162715
On 06/01/16 12:25 PM, Steve Matzura wrote:
> I have two things that need to go into /etc/fstab. One's a network
> share with a username and password. The other is a Windows share which
> is public, no username and password for that one. Both shares will
> bmnounted on the Debian system read-only. I know how to do this with
> mount and the -t switch, and the options for the -o switch to make
> them read-only and provide a username and password. What I don't know
> is what is supposed to go into fstab. I've tried a few different
> syntaxes, but so far none have worked. The networked drive is called
> //DISKSTATION1/BigVol1. The Windows share is //box1/e (drive "E:" on
> the system calling itself `box1'.
>
> Thanks in advance.
>

the lines are almost identical to the mount command.
<share to be mounted> <mount point> <file system> <options> 0 0

for options you probably need ro,username=<whatever>,password=<whatever> 
for the one that needs the username and password. For the other, ro is 
probably sufficient.

[toc] | [prev] | [next] | [standalone]


#162740

FromSteve Matzura <sm@noisynotes.com>
Date2016-01-07 06:40 +0100
Message-ID<qObsJ-3Dn-1@gated-at.bofh.it>
In reply to#162716
Thanks Gary. I was overdoing it (as usual). I put in things like the
`-t' in front of `cifs' and the `-o' in front of the options list. All
fixed now.

On Wed, 6 Jan 2016 13:13:31 -0500, you wrote:

>On 06/01/16 12:25 PM, Steve Matzura wrote:
>> I have two things that need to go into /etc/fstab. One's a network
>> share with a username and password. The other is a Windows share which
>> is public, no username and password for that one. Both shares will
>> bmnounted on the Debian system read-only. I know how to do this with
>> mount and the -t switch, and the options for the -o switch to make
>> them read-only and provide a username and password. What I don't know
>> is what is supposed to go into fstab. I've tried a few different
>> syntaxes, but so far none have worked. The networked drive is called
>> //DISKSTATION1/BigVol1. The Windows share is //box1/e (drive "E:" on
>> the system calling itself `box1'.
>>
>> Thanks in advance.
>>
>
>the lines are almost identical to the mount command.
><share to be mounted> <mount point> <file system> <options> 0 0
>
>for options you probably need ro,username=<whatever>,password=<whatever> 
>for the one that needs the username and password. For the other, ro is 
>probably sufficient.
>

[toc] | [prev] | [next] | [standalone]


#162750

Frommudongliang <mudongliangabcd@hotmail.com>
Date2016-01-07 08:20 +0100
Message-ID<qOd1v-4IS-13@gated-at.bofh.it>
In reply to#162740
Maybe a little later. However, I think man pages for fstab is great.
Refer to "man fstab".

    - mudongliang

On 01/07/2016 01:33 PM, Steve Matzura wrote:
> Thanks Gary. I was overdoing it (as usual). I put in things like the
> `-t' in front of `cifs' and the `-o' in front of the options list. All
> fixed now.
>
> On Wed, 6 Jan 2016 13:13:31 -0500, you wrote:
>
>> On 06/01/16 12:25 PM, Steve Matzura wrote:
>>> I have two things that need to go into /etc/fstab. One's a network
>>> share with a username and password. The other is a Windows share which
>>> is public, no username and password for that one. Both shares will
>>> bmnounted on the Debian system read-only. I know how to do this with
>>> mount and the -t switch, and the options for the -o switch to make
>>> them read-only and provide a username and password. What I don't know
>>> is what is supposed to go into fstab. I've tried a few different
>>> syntaxes, but so far none have worked. The networked drive is called
>>> //DISKSTATION1/BigVol1. The Windows share is //box1/e (drive "E:" on
>>> the system calling itself `box1'.
>>>
>>> Thanks in advance.
>>>
>> the lines are almost identical to the mount command.
>> <share to be mounted> <mount point> <file system> <options> 0 0
>>
>> for options you probably need ro,username=<whatever>,password=<whatever> 
>> for the one that needs the username and password. For the other, ro is 
>> probably sufficient.
>>

[toc] | [prev] | [next] | [standalone]


#162762

FromSteve Matzura <sm@noisynotes.com>
Date2016-01-07 13:40 +0100
Message-ID<qOi1c-86g-29@gated-at.bofh.it>
In reply to#162750
On Thu, 7 Jan 2016 15:17:00 +0800, you wrote:

>Maybe a little later. However, I think man pages for fstab is great.
>Refer to "man fstab".
>
>    - mudongliang

I did, but sometimes what is stated in manpages, while being 100%
accurate, is also 100% unclear--e.g., are options switches included or
not, which option(s) must come before others, which one(s) imply
others or exclude others, etc.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web