From owner-freebsd-embedded@freebsd.org Tue Sep 10 15:16:48 2019 Return-Path: Delivered-To: freebsd-embedded@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 71D59D9778 for ; Tue, 10 Sep 2019 15:16:48 +0000 (UTC) (envelope-from fabien.costard@free.fr) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46STCM4NC0z4YPQ for ; Tue, 10 Sep 2019 15:16:47 +0000 (UTC) (envelope-from fabien.costard@free.fr) Received: from [IPv6:2a01:e34:ec92:d840:fde2:5e67:71ac:b50e] (unknown [IPv6:2a01:e34:ec92:d840:fde2:5e67:71ac:b50e]) (Authenticated sender: stardco) by smtp5-g21.free.fr (Postfix) with ESMTPSA id 896D75FFD4; Tue, 10 Sep 2019 17:16:42 +0200 (CEST) Subject: Re: Default parameters for NanoBSD To: Warner Losh Cc: "freebsd-embedded@freebsd.org" References: <70eb2817-31d6-5671-11c2-dc2c4cc21850@free.fr> From: Fabien Costard Message-ID: <6bf94b97-50a6-91ab-111e-dece2b22dfe4@free.fr> Date: Tue, 10 Sep 2019 17:16:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Rspamd-Queue-Id: 46STCM4NC0z4YPQ X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fabien.costard@free.fr has no SPF policy when checking 212.27.42.5) smtp.mailfrom=fabien.costard@free.fr X-Spamd-Result: default: False [2.66 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[free.fr]; IP_SCORE(0.00)[ip: (5.86), ipnet: 212.27.32.0/19(2.78), asn: 12322(-1.97), country: FR(-0.00)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DMARC_NA(0.00)[free.fr]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.86)[0.860,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(1.00)[1.000,0]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[5.42.27.212.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[free.fr]; ASN(0.00)[asn:12322, ipnet:212.27.32.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Sep 2019 15:16:48 -0000 Le 10/09/2019 à 15:53, Warner Losh a écrit : > > > On Tue, Sep 10, 2019 at 3:28 AM Fabien Costard > wrote: > > Hello everyone, > > This is a question about the default values used for the nanobsd. > In the current default configuration (defaults.sh), the media size is > set to 2000000 (NANO_MEDIASIZE=2000000). > This size (1GB) does not allow to make an image when you follow the > documentation online. > > I know that the purpose of the nanobsd is to make "light" FreeBSD > system > but would it be better to change the default media size when someone > (like me) try to use and understand it step by step ? > > I found the media size have to be 9600000 (around 4.8GB) (to work > with 2 > images) > > What do you think about it ? > > > I built an image yesterday, and 1GB was still large enough. What arch > were you doing? What other things went onto the package? FreeBSD > itself, without compilers, should clock in around 300MB. > > I have no problem bumping the size. Today it's hard to buy something > smaller than 16GB (though there's a lot of lots of 4GB and 8GB on > amazon, the sweet spot for price has moved to 32GB). It's likely time. > I like to keep it small because the images are copied around and that > takes up space. > > Warner What I just mean is if you just use the nanobsd.sh script without touching anything it fails with the message: "/usr/obj/nanobsd.full/_.mnt: write failed, filesystem is full". But I totally agree about the size and my next step is to work on that optimization :-) Fabien