From owner-freebsd-questions@FreeBSD.ORG Tue Dec 11 22:08:45 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D64A6219 for ; Tue, 11 Dec 2012 22:08:45 +0000 (UTC) (envelope-from btillman99@yahoo.com) Received: from nm28.bullet.mail.bf1.yahoo.com (nm28.bullet.mail.bf1.yahoo.com [98.139.212.187]) by mx1.freebsd.org (Postfix) with ESMTP id 7AE6B8FC08 for ; Tue, 11 Dec 2012 22:08:45 +0000 (UTC) Received: from [98.139.212.149] by nm28.bullet.mail.bf1.yahoo.com with NNFMP; 11 Dec 2012 22:08:39 -0000 Received: from [98.139.212.220] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 11 Dec 2012 22:08:39 -0000 Received: from [127.0.0.1] by omp1029.mail.bf1.yahoo.com with NNFMP; 11 Dec 2012 22:08:39 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 148822.65740.bm@omp1029.mail.bf1.yahoo.com Received: (qmail 35091 invoked by uid 60001); 11 Dec 2012 22:08:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1355263719; bh=8n0mGThPpXZuUgCOdVWkYPQVVuMPQRGWMkiWRlRMBqo=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=RcYnvqYAuB/Zsw75v1f41HHx6RLFV92B2mHAs84x5liKZrBdRFLplODi1NpS0onWt4O+787TiDhNZbRQfoFOUt4u4mMEcvhEsM5TMZ29fKe9VLAjBLax3OxKNZDisjJRapXEn0fpmfHH1vuw6cdvRKqUnC1oC2AUd85FN4B0qiM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=gLTjMEzSpthr5PzMJMA4ShImtLXKhX8qnW05/nrwajFvBYaSB0CFKDtPw+56/Q7Hun5wBKWKsKNK4fZ8cOJhMc608uBoVp4tJHVfHGhyLjdKP4dioeCcI8Uxg22H/hAA5RXEsHiuOJ0vIrmdSSVvdvQfyYtGwm62jHC+sXgjSW0=; X-YMail-OSG: c9wcDbMVM1leqz3ZsSjwRjhnt.K56DqqXUFYZngstQtaQP0 f_vGAhZ0FtwTVMFIqVp181vURitcVOrN4bc4xmH3oGZr.SoOb49Y.PjqXx1x 1uZDo_zeM66_QmrL6gl.5J3pdYXTs4gA0JgUMTwSw4fw65nzVK_Dg_gz.EAf 2DwCxN.sMOUiAMrujzzokwtHatm5c0vsfCgnJHimCD0nJHq_gsXnu2m1H1XB kkbZjtsyogqLXWC96D221mQVdxNOD.CKu6zsGyevhhC0hZKv3ue9Fgv6Kjjj q3r_9fZnY7nCeYKsoGcfXU3ZZedmCRRPOsFQaDqXAPaZ9csR1MMABlEPuIss TBHE_84jffP_cSQEI8_XO7gPuxfg7xvdZ33qXh2kOWgd0.RtTCjzRdVrnvJR BJsBWR5nMvo1dfJWq6nk92ZaDFT3CRU_3wetxYqJivvwknoQDVdPzOH.0qbX iJPn8jIphpDBoEsoS3tjUiyAVqdjnE4MOKxuAIxWX11V0AFD5CmQ0rQDvqvQ fA69oKg6fSTiI.TaNm0NUtQ-- Received: from [173.221.141.195] by web165003.mail.bf1.yahoo.com via HTTP; Tue, 11 Dec 2012 14:08:38 PST X-Rocket-MIMEInfo: 001.001, CgoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCkZyb206IFBvbHl0cm9wb24gPGZyZWVic2RAZWR2YXguZGU.ClRvOiBIYW5hZmkgU3lhaHJvaW5pIDxoYW5hZmlAemlnbWEtanAuY29tPiAKQ2M6IGZyZWVic2QtcXVlc3Rpb25zQGZyZWVic2Qub3JnIApTZW50OiBUdWVzZGF5LCBEZWNlbWJlciAxMSwgMjAxMiAxMTo1NyBBTQpTdWJqZWN0OiBSZTogTW91bnRpbmcgYSBzYW1iYSBzaGFyZSBvbiBib290PwoKT24gVHVlLCAxMSBEZWMgMjAxMiAyMzoyNTo1NiArMDcwMCwgSGFuYWZpIFN5YWhyb2kBMAEBAQE- X-Mailer: YahooMailWebService/0.8.128.478 References: <20121211175759.310ec79f.freebsd@edvax.de> Message-ID: <1355263718.29274.YahooMailNeo@web165003.mail.bf1.yahoo.com> Date: Tue, 11 Dec 2012 14:08:38 -0800 (PST) From: Bill Tillman Subject: Re: Mounting a samba share on boot? To: "freebsd-questions@freebsd.org" In-Reply-To: <20121211175759.310ec79f.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Bill Tillman List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Dec 2012 22:08:45 -0000 =0A=0A=0A=0A________________________________=0AFrom: Polytropon =0ATo: Hanafi Syahroini =0ACc: freebsd-questio= ns@freebsd.org =0ASent: Tuesday, December 11, 2012 11:57 AM=0ASubject: Re: = Mounting a samba share on boot?=0A=0AOn Tue, 11 Dec 2012 23:25:56 +0700, Ha= nafi Syahroini wrote:=0A> [nothing]=0A=0AFirst of all, it's not uncommon to= place the question into=0Athe message body (which you did not), and using = a descriptive=0Asubject (which you did). :-)=0A=0ASo I assume your question= is _how_ to mount a SMB share at=0Aboot.=0A=0AThis can be easily done by a= dding the required line to the=0A/etc/fstab file. Because network connectio= n is required to=0Aperform the mount, you could use the "late" option in=0A= addition to other options you might need. See "man mount"=0Afor detais, as = well as /etc/rc.d/mountlate.=0A=0AThe line would be like this:=0A=0A=A0=A0= =A0 //USERNAME@SERVERNAME/share=A0 /smb/share=A0 smbfs=A0 rw,late=A0 0=A0 0= =0A=0AIn this example, SERVERNAME is the server to access, and "share"=0Ath= e name of the share; /smb/share will be the directory it will=0Abe mounted = at.=0A=0AAccess to multiple "drive letters" would look like this:=0A=0A=A0= =A0=A0 //Administrator@WINPC/a$=A0 /smb/a=A0 smbfs=A0 rw,late=A0 0=A0 0=0A= =A0=A0=A0 //Administrator@WINPC/c$=A0 /smb/c=A0 smbfs=A0 rw,late=A0 0=A0 0= =0A=A0=A0=A0 //Administrator@WINPC/d$=A0 /smb/d=A0 smbfs=A0 rw,late=A0 0=A0= 0=0A=A0=A0=A0 //Administrator@WINPC/e$=A0 /smb/e=A0 smbfs=A0 rw,late=A0 0= =A0 0=0A=A0=A0=A0 //Administrator@WINPC/f$=A0 /smb/f=A0 smbfs=A0 rw,late=A0= 0=A0 0=0A=0AHere "WINPC" is the name of the server. Using "Administrator"= =0Ain this case is not safe, but no problem in settings where=0Apeople don'= t care for security anyway. :-)=0A=0AAlso see "man smbfs" and "man fstab" f= or details.=0A=0AIt might be required to put additional information in=0A/e= tc/nsmb.conf, for example:=0A=0A=A0=A0=A0 [default]=0A=A0=A0=A0 workgroup= =3DYOUR_WORKGROUP_NAME=0A=0A=A0=A0=A0 [SERVERNAME]=0A=A0=A0=A0 addr=3D192.1= 68.2.2=0A=0A=A0=A0=A0 [SERVERNAME:USERNAME]=0A=A0=A0=A0 password=3DTOPSECRE= T=0A=0ASubstitute SERVERNAME, USERNAME and TOPSECRET for the=0Aorganisation= al information and access credentials that apply.=0ASee "man nsmb.conf" for= details.=0A=0AFurther instructions can easily be found in the online docs:= =0A=0Ahttp://www.freebsd.org/doc/faq/book.html#mount-smb-share=0A=0Ahttp://= www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-samba.html=0A=0A= =0A=0ANote that if you still encounter network problems, it's better=0Ato w= rite a short rc.d style script that performs the mount_smb=0Acommands, and = use the proper keywords to have it run when the=0Anetwork connection is up = and running. See "man rc.d" for=0Adetails.=0A=0A=0A-- =0APolytropon=0AMagde= burg, Germany=0AHappy FreeBSD user since 4.0=0AAndra moi ennepe, Mousa, ...= =0A_______________________________________________=0Afreebsd-questions@free= bsd.org mailing list=0Ahttp://lists.freebsd.org/mailman/listinfo/freebsd-qu= estions=0ATo unsubscribe, send any mail to "freebsd-questions-unsubscribe@f= reebsd.org"=0A=0A=0AThat's a great answer but let me insert that most peopl= e, not all but most, do not use Samba to access a server from other FreeBSD= servers. So I feel the two replies thus far are overkill. Typically, Samba= is used so that Windows or other SMB type OS'es can access the server. Tha= t said, I would simplify all this with the way I have mine setup. You will = of course need the shares configured in your smb.conf, then simply put a co= mmand in your /etc/rc.local or /etc/rc.d/ to launch smdb and nmbd. I don't = rely on anything in /etc/fstab to use samba. It's all in my smb.conf file.= =0A=0AHowever, Polytropon has presented a great answer here. From owner-freebsd-questions@FreeBSD.ORG Tue Dec 11 22:13:27 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5147245C; Tue, 11 Dec 2012 22:13:27 +0000 (UTC) (envelope-from vrwmiller@gmail.com) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 983E68FC16; Tue, 11 Dec 2012 22:13:26 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id j13so4255865lah.13 for ; Tue, 11 Dec 2012 14:13:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=jwoZtTsCwlw9bhanv8e2LmpmGRNTxSbnO4+QPd6sBZc=; b=YiH17uQPt06e1XPfHKwW0A7ll19/CAxNZHy/oikVRedUYuNEMWHzbX7WbdctAb6UnI lfoWEBQ+ZLCKmYoPhqELF0OBYIJd14g/p+DhDYHxM3/ynH5NaRzuv1sYUK70FwZTY4CP qIHSKCssW/UNQ0kTScYU9KgkmuXLOqV2kWm2XxuMlfULcgUby8tt5NgGUe7BsquPbk+A xlJW3axVZ5gVzFjAaMN9fbIU9U2+KgEtMUYe85mNqmzodaMRwoh1QP3K83Kzlxd/RjOn QUVwCdr9G827cU6ZS7TSQRBwFOB/eWG0KMi9hPWymOiom8kNz3ScjjdR03QuVl4nbQ93 9aVA== MIME-Version: 1.0 Received: by 10.112.44.225 with SMTP id h1mr8409032lbm.63.1355264004969; Tue, 11 Dec 2012 14:13:24 -0800 (PST) Sender: vrwmiller@gmail.com Received: by 10.112.3.68 with HTTP; Tue, 11 Dec 2012 14:13:24 -0800 (PST) In-Reply-To: <1531C946-2259-4295-B388-42DC94FBE7FB@fisglobal.com> References: <04ABE8E0-8D63-4C68-92C4-69B516818160@fisglobal.com> <1531C946-2259-4295-B388-42DC94FBE7FB@fisglobal.com> Date: Tue, 11 Dec 2012 17:13:24 -0500 X-Google-Sender-Auth: FICsztrrQcux_uqqBkCzns0Q1aQ Message-ID: Subject: Re: make release and mfsroot From: Rick Miller To: Devin Teske Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Dec 2012 22:13:27 -0000 On Tue, Dec 11, 2012 at 5:05 PM, Devin Teske wrote: > > Though, to resize the mfsroot, I still rely on release(7) and the above > patches. Here's another question, have you applied this approach to boot_crunch.conf? I simply replaced the default boot_crunch.conf with my own in the source tree. This is how I discovered MFSSIZE, because the resulting boot_crunch binary was larger than the available space. -- Take care Rick Miller