From owner-freebsd-questions@FreeBSD.ORG Mon Jul 27 23:26:15 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEF861065670 for ; Mon, 27 Jul 2009 23:26:15 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: from mail-ew0-f217.google.com (mail-ew0-f217.google.com [209.85.219.217]) by mx1.freebsd.org (Postfix) with ESMTP id 4F6BE8FC17 for ; Mon, 27 Jul 2009 23:26:15 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: by ewy17 with SMTP id 17so1735646ewy.43 for ; Mon, 27 Jul 2009 16:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=HC85yOpRJoKdQf1GIIPvXX98hgJv3zWsObz4KIq4xJg=; b=HvfWp5FYsMdb0vdV8rwUcCY3GC+F2YppWR/Fo4VOf+WGlUlFNAaq4SRJHWKrX6k6sv OwbIFooAKUlj0xUZdMYIiOdnQWdlGiDflonjZuBcgMUR8zjSsFfjJa1Sn6G0kHh0nEtU VGXBjNCby7UjfQ38634LtLxel3rhYcUsEaMvs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=aZhhvZsZ7Isgg9Ju8OjOn2qQe76xvUleJTlqlvzQK/dDRCPWwWgV43z+FYjGG4jT/k R2sy+HMj4CAdAt1XD+0BQNG7WCgaF3Xq52ytG76C2rRkKXlpM+lV1n+LLRr+62YJRgC8 KqTQZPA/4NFyp8XJ0TS9N5r6A5V3SH0KbmcUY= MIME-Version: 1.0 Received: by 10.216.8.209 with SMTP id 59mr1958695wer.18.1248735942136; Mon, 27 Jul 2009 16:05:42 -0700 (PDT) In-Reply-To: References: <4A67EC78.1090304@a1poweruser.com> <1248355625.17716.7.camel@localhost> <4A6A96E5.6090900@a1poweruser.com> <4A6DF24F.30008@hdk5.net> From: Chris Rees Date: Tue, 28 Jul 2009 00:05:22 +0100 Message-ID: To: Mikel King Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions Subject: Re: How to doc available? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2009 23:26:16 -0000 2009/7/27 Mikel King : > Anyone know of a good tutorial for making a system on a USB key in limited > space? I have a project that requires enough of running system with lighttpd > and php5 to do some network magick. I would like to keep the thing below > 512MB but if that is not feasible then I'll shoot for whatever the smallest > I can get away with. > > Thanks, in advance. > > Cheers. > m > I'm going to try to answer your question rather than tell you you're wrong. It's possible, and not difficult. Option 1) I'm pretty sure a default install of FreeBSD covers a little less than 640 MB; have you just tried that? [chris@amnesiac]/usr% df -h / Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 421M 203M 185M 52% / [chris@amnesiac]/usr% du -hc /boot/xboxkern.0/ 112M /boot/xboxkern.0/ 112M total [chris@amnesiac]/usr% du -hc bin include lib sbin share games libdata 292M share/doc 428M total [chris@amnesiac]/usr% So, excluding /usr/share/doc, and /boot/xboxkern.0 (a leftover from when amnesiac was an xbox), my install with no ports etc is ~203-112=91MB for /, 428-292=136MB for /usr, plus /var and /tmp (both minimal if properly managed and trimmed) makes <~250 MB; way less than the 500 MB specified. You could probably even install Apache on that! If I've missed anything glaringly obvious, please correct me someone.... Option 2) Try http://www.freebsd.org/doc/en/articles/nanobsd/index.html Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list?