Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Oct 2010 09:58:22 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Tim Dunphy <bluethundr@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: can't add entries to fsab
Message-ID:  <alpine.BSF.2.00.1010310955360.9357@wonkity.com>
In-Reply-To: <AANLkTikmtnU%2B%2BjepVwd-=rv4b6QTq5eLpK2mRa9LSrWe@mail.gmail.com>
References:  <AANLkTikS7vt8zFD-4hvTqpf27%2BHED4GWL34PfNYYG9s5@mail.gmail.com> <alpine.BSF.2.00.1010301805490.6585@wonkity.com> <AANLkTikmtnU%2B%2BjepVwd-=rv4b6QTq5eLpK2mRa9LSrWe@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---902635197-1243713345-1288540702=:9357
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

On Sun, 31 Oct 2010, Tim Dunphy wrote:

> On Sat, Oct 30, 2010 at 8:10 PM, Warren Block <wblock@wonkity.com> wrote:
>> On Sat, 30 Oct 2010, Tim Dunphy wrote:
>>
>>> I am having some trouble adding entries to /etc/fstab.. what happens
>>> to work under CentOS does not under FreeBSD!! no surprise there, I
>>> suppose.. heh
>>>
>>>
>>> I have nfs_client_enable="YES" in my /etc/rc.conf
>>>
>>> Yet if I add even one line such as
>>>
>>> nas2.summitnhome.com:/mnt/home   /home    nfs rw  0   0
>>>
>>> the system refuses to boot normally and I have to add the path to
>>> /bin//sh manually each time
>>
>> Add the "late" option ('man mount | less +3/late') to the rw option in that
>> line:
>>
>> nas2.summitnhome.com:/mnt/home   /home    nfs rw,late  0   0
>>
>>> why on Earth can I not add entries to fstab as I do to CentOS??
>>
>> Beyond knowing that they're different, dunno.  Maybe the async DHCP in
>> FreeBSD is different.
>
> thanks!! Yeah I tried adding the late option, but that didn't change
> anything. But then I thought that perhaps DNS was not loaded by the
> time the fstab is parsed making any DNS style mounts render the
> machine unbootable in normal mode.
>
> So I tried referring to the mount by the IP address rather than the
> DNS name, and that fixed it.. I suppose I could setup the order in
> which the services load in /etc/rc.d/ by pre-pending each one with
> numbers (i.e. 00netif 01named 02syslogd...etc etc).

Changing that order is not easy, there are internal dependencies. 
Forcing the startup to wait for DHCP in /etc/rc.conf may be enough:

ifconfig_re0="SYNCDHCP"

re0 used for example, change to whatever interface you have.
---902635197-1243713345-1288540702=:9357--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1010310955360.9357>