From owner-freebsd-stable@FreeBSD.ORG Wed Nov 28 23:56:41 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1EAFF563 for ; Wed, 28 Nov 2012 23:56:41 +0000 (UTC) (envelope-from efraindector@motumweb.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id D5B5E8FC0C for ; Wed, 28 Nov 2012 23:56:40 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi5so4555228pad.13 for ; Wed, 28 Nov 2012 15:56:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:from:to:cc:references:in-reply-to:subject:date :organization:mime-version:content-type:content-transfer-encoding :x-priority:x-msmail-priority:importance:x-mailer:x-mimeole :x-gm-message-state; bh=VRQ1YcfEOvrtHhcps+uY6TnOQI+zf+lvKp6TXU3s7AE=; b=Bd7UCrYekOB3vbYwj26q52Unsz2fApPAtyKUSLOEhXyaH9OBmsX1nZitTUj7ZM2RS7 8BFyHJoR0+N5E/AA9iOsfJNzlGUmtNUrMWlW0w5bZCjn//oIah5y6ZFuYkrFOfGn9rSr PxP2ec5MRZUuw4sMSnaz1vD6ZHbHQCD5rzCG8HXrnpQ2GYWtDVqNvsb4NREharvJFhVG ajzvp92w6JOHX4jqASXYquPqOV1E4H6V1vUyJahXJBe0X4GT5I4qfRXRXL98+bKUt16h ee7JRU8q9n0XGw0C0WZp6TFN1D/aT1c420xVaQo1BxwcF/5cpbEgBH0OjKpbjcNOj6UK vhqA== Received: by 10.66.83.201 with SMTP id s9mr56417527pay.74.1354147000411; Wed, 28 Nov 2012 15:56:40 -0800 (PST) Received: from CMOTUM25PC ([187.210.81.114]) by mx.google.com with ESMTPS id c1sm13277587pav.23.2012.11.28.15.56.38 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Nov 2012 15:56:39 -0800 (PST) Message-ID: <089E24E28F8449EBB06C1E6C13D21EBA@CMOTUM25PC> From: =?utf-8?Q?Efra=C3=ADn_D=C3=A9ctor?= To: "Ben Morrow" References: <20121128005316.GA31348@anubis.morrow.me.uk> <64EBD6BA13904807892DEBECE7EEE821@CMOTUM25PC> <20121128021105.GI76138@anubis.morrow.me.uk> In-Reply-To: <20121128021105.GI76138@anubis.morrow.me.uk> Subject: Re: How to clean up / Date: Wed, 28 Nov 2012 17:56:41 -0600 Organization: =?utf-8?Q?HESA_T=C3=A9cnica?= MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3505.912 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3505.912 X-Gm-Message-State: ALoCoQku9BtTXrPE+Wt93mOaUepEW611LIAlk/TpQZPTZM8zKXJqzU0QxVP2de6MoLHVVZ/Msy6l Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2012 23:56:41 -0000 Yes, I installed linux_base sometime ago, and I forgot about it, since I'm not going to use it again I uninstalled it and it recommended that the files can be safely removed. Also let me thank you for telling me about how to setup IPFW without recompiling the kernel. Thank you all for your recommendations. -----Mensaje original----- From: Ben Morrow Sent: Tuesday, November 27, 2012 8:11 PM To: Efraín Déctor Cc: freebsd-stable@freebsd.org Subject: Re: How to clean up / At 7PM -0600 on 27/11/12 Efraín Déctor wrote: > From: Ben Morrow >> Quoth =?utf-8?Q?Efra=C3=ADn_D=C3=A9ctor?= : >> > >> > I recently upgraded to 9.1-RC3, everything went fine, however the / >> > partition its about to get full. Im really new to FreeBSD so I don’t >> > know what files can be deleted safely. >> > >> > 76M /compat/linux/usr/lib/locale/locale-archive.tmpl >> >> This shouldn't be in /. You should create a new filesystem for /compat >> alongside /usr and /var, or just make a symlink /compat -> /usr/compat >> and move everything there. > > I have a custom kernel on this system (for using IPFW) could be this > reason > so compat is there?. [Do you realise you don't need a custom kernel for ipfw? ipfw is available as a module, so you can keep GENERIC and put ipfw_load="YES" into /boot/loader.conf. This will cause ipfw to be loaded at boot time, before the network is started; you can load it at runtime by running kldload ipfw ] No, this is nothing to do with a custom kernel: it is part of one of the linux_base ports, which you must have installed. It needs to be where it is, under /compat/linux, but /compat/linux itself should not be on the root filesystem. Since the list of large files you posted is relatively short, I assume you are using the traditional partioning scheme, with a small root partition and larger partitions for /usr and /var (and maybe /home). There is not as much point to this as there used to be, but if you are going to use this scheme you need to avoid putting anything in the root partition that doesn't need to be there. /compat/linux contains libraries, binaries and other files needed for FreeBSD's Linux API emulation; this most certainly does *not* need to be in the root partition, so it should be moved somewhere else. There are two possible 'somewhere else's: you can put it in its own partition, which means you need to have space on your disk to allocate a new partition; or you can move the whole lot onto one of your other existing partitions, and use a symlink (or a nullfs mount, but let's not get complicated) to make the directory appear where it's supposed to be. Probably the latter is the easier option. /usr is the right filesystem to be storing this sort of thing on, so you want to mv /compat /usr ln -s usr/compat /compat The mv will take some time, since it is moving files cross-filesystem so it has to copy them all. Ben