From owner-freebsd-questions Mon Nov 6 4: 9:30 2000 Delivered-To: freebsd-questions@freebsd.org Received: from siafu.iconnect.co.ke (upagraha.iconnect.co.ke [209.198.248.2]) by hub.freebsd.org (Postfix) with ESMTP id B52EB37B479 for ; Mon, 6 Nov 2000 04:09:20 -0800 (PST) Received: from [212.22.163.2] (helo=poeza.iconnect.co.ke) by siafu.iconnect.co.ke with esmtp (Exim 2.12 #1) id 13sl3z-0000iP-00 for freebsd-questions@freebsd.org; Mon, 6 Nov 2000 15:07:47 +0300 Received: from wash by poeza.iconnect.co.ke with local (Exim 3.16 #1) id 13sl7B-000I6q-00 for freebsd-questions@FreeBSD.org; Mon, 06 Nov 2000 15:11:05 +0300 Date: Mon, 6 Nov 2000 15:11:05 +0300 From: Odhiambo Washington To: "FreeBSD Questions (E-mail)" Subject: Re: .core Files? Message-ID: <20001106151105.E67900@poeza.iconnect.co.ke> Mail-Followup-To: Odhiambo Washington , "FreeBSD Questions (E-mail)" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from "Drew Tomlinson" on Sun, Nov 05, 2000 at 08:54:32PM -0800 X-Operating-System: FreeBSD poeza.iconnect.co.ke 3.5-STABLE FreeBSD 3.5-STABLE X-Mailer: Mutt http://www.mutt.org/ X-Location: Mombasa, KE, East Africa Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Drew Tomlinson [20001106 07:57]: =>My system is running low on space in /. After the system was built, I had =>about 50% free. I haven't added anything substantial to the system since I =>built it but now the system is at 108%. => =>I have looked at the disk and found files *.core files that appear to be =>rather large. File names are syslogd.core, inetd.core, telnetd.core, and =>tcsh.core. They appear to be binary files. Are these files from core dumps? =>I don't even know if I've had a core dump or not but I have powered off the =>system without shutting down properly. Can these files be safely deleted? I'm pretty sure cleaning out those files will not harm your system. My understanding is that those files would be generated when an application crashes (I may be proved wrong) and I always delete them. I know of 2 ways to go: Move /tmp to /usr .If you have enough space in /usr then create /tmp there and make /tmp symlink to /usr/tmp (I am told this might create a problem later when you boot to single user mode, so better do the same in single user mode, which takes care of multi-user mode too). You can then delete /tmp And I use this script ocassionally to clean up: #!/bin/sh find / \( -name a.out -o -name core \ -o -name '#*#' \) -type f -atime +14 \ -exec rm -f {} \; -o -fstype nfs -prune You may adopt it....It does not clean on NFS file system. HTH -Wash -- Odhiambo Washington Inter-Connect Ltd., wash@iconnect.co.ke 5th Flr Furaha Plaza Tel: 254 11 222604 Nkrumah Rd., Fax: 254 11 222636 PO Box 83613 MOMBASA, KE. Calm down, it's *only* ones and zeroes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message