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

Re: fstab syntax question



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.
>>


Reply to: