From owner-freebsd-questions@FreeBSD.ORG Sat Jun 25 23:57:36 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 192F216A41C for ; Sat, 25 Jun 2005 23:57:36 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from royk.itea.ntnu.no (royk.itea.ntnu.no [129.241.190.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id C938043D48 for ; Sat, 25 Jun 2005 23:57:35 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from localhost (localhost [127.0.0.1]) by royk.itea.ntnu.no (Postfix) with ESMTP id 7927A66DAF for ; Sun, 26 Jun 2005 01:57:34 +0200 (CEST) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by royk.itea.ntnu.no (Postfix) with SMTP for ; Sun, 26 Jun 2005 01:57:34 +0200 (CEST) Received: (qmail 15641 invoked by uid 1001); 26 Jun 2005 01:57:33 +0200 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 26 Jun 2005 01:57:33 +0200 Date: Sun, 26 Jun 2005 01:57:33 +0200 (CEST) From: Svein Halvor Halvorsen X-X-Sender: sveinhal@maren.thelosingend.net To: questions@freebsd.org Message-ID: <20050626015255.D15610@maren.thelosingend.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: Subject: Chop off end of file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2005 23:57:36 -0000 I have a ~70GB, of which the last ~50GB is garbage. I know exactly at what byte I want to cut the file, but I do not have enough free diskspace to do a dd if=orig of=pre bs=... count=.... Is it possible to just chop off the end of a file, without making a copy of its beginning? It's a dv-file, resulting from "fwcontrol -R". I left my home and forgot about it. When I returned home, the disk was full, and now I need to delete the garbage. I know at exactly what byte to cut the stream. Svein Halvor