From owner-freebsd-questions Fri Oct 22 15: 4:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cm-24-142-61-16.cableco-op.ispchannel.com (cm-24-142-61-16.cableco-op.ispchannel.com [24.142.61.16]) by hub.freebsd.org (Postfix) with ESMTP id 6458B14D72 for ; Fri, 22 Oct 1999 15:04:07 -0700 (PDT) (envelope-from jwg@netbox.com) Received: from localhost (jwg@localhost) by cm-24-142-61-16.cableco-op.ispchannel.com (8.8.8/8.8.8) with ESMTP id OAA12809 for ; Fri, 22 Oct 1999 14:59:09 -0700 (PDT) (envelope-from jwg@netbox.com) X-Authentication-Warning: cm-24-142-61-16.cableco-op.ispchannel.com: jwg owned process doing -bs Date: Fri, 22 Oct 1999 14:59:09 -0700 (PDT) From: Jeff Gray X-Sender: jwg@cm-24-142-61-16.cableco-op.ispchannel.com To: Questions at FreeBSD Subject: Re: newbie kernel question- strip problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG So, I tried it but.....does not appear to work. Running 3.3 Release # pwd / # strip -g --strip-debug kernel /usr/libexec/elf/strip: kernel: rename: Operation not permitted permissions are, -r-xr-xr-x 1 root wheel 10691754 Oct 21 10:19 kernel So, I tried, in preparation, # chmod 755 kernel chmod: kernel: Operation not permitted I then made a copy of the kernel in a /usr directory and ran the same strip -g --strip-debug /usr/play/kernel.debut Worked perfectly, took only a couple of seconds. Went from 10MB to 2 MB Rename the one from the play directory as kernel? Not very comfortable until understanding why the general instruction failled. Thanks jeff > > You probably have a debug kernel with symbols built into it. I think you > can "strip -g kernel" but it has been a while. Have never tried this so I wish to be a bit careful. Looking at man strip and the archives, for ELF kernels cd / strip -g --strip-debug kernel Nothing else required, this will reduce the size of the object file /kernel This is a real good thing if it is safe, for those with / partitions that are too small. Safe? Any other steps? Thanks jeff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message