how to configure freeBSD kernel to mount NFS as a root file system

Monthadar Al Jaberi monthadar at gmail.com
Fri Jul 29 07:25:19 UTC 2011


On Fri, Jul 29, 2011 at 6:23 AM, satish kondapalli
<nitw.satish at gmail.com> wrote:
> Thanks
> Crest
>> Hi,
>>
>> How to configure freeBSD kernel to mount NFS as a root filesystem.
>> In case of Linux we will set the bootargs ( In kernel command line args,
>> we
>> will give the server ip and path of file system.)
>>
>> 1) In Free BSD, make installworld  will install all the utils in DESTDIR,
>> that DESTDIR we can use as the file system. am i correct?
>
> Yes export $DESTDIR via NFSv3
>
>> 2) If my first point is correct then how to configure my kernel  DESTDIR
>> as
>> a root filesytem. where to give the path of DESTDIR and DESTDIR machine IP
>> in the kernel.
>
> Your kernel needs to support (options NFS_ROOT). If you can't run
> /boot/loader than define the rootfs in the kernel config (options
> ROOTDEVNAME=\"ufs:/dev/ufs/rootfs\").
>
> My questions is:
> 1) we are not telling the NFS server ip address in above two options. where
> we will configure the server ip of NFS server in config options.

try this:
options		ROOTDEVNAME=\"nfs:192.168.1.103:/usr/obj/rspro_nfs/root\"

>
>
> --
> View this message in context: http://freebsd.1045724.n5.nabble.com/how-to-configure-freeBSD-kernel-to-mount-NFS-as-a-root-file-system-tp4640945p4645024.html
> Sent from the freebsd-arm mailing list archive at Nabble.com.
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>



-- 
//Monthadar Al Jaberi


More information about the freebsd-arm mailing list