From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 23 08:35:02 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5FD016A4D2 for ; Sat, 23 Oct 2004 08:35:02 +0000 (GMT) Received: from smtp2.dnainternet.net (smtp2.dnainternet.net [62.240.72.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF71043D31 for ; Sat, 23 Oct 2004 08:35:01 +0000 (GMT) (envelope-from erik.u@dnainternet.net) Received: from b-204-211.cable.kpy.customers.dnainternet.fi ([212.149.204.211]:51553smtp2.dnainternet.net with ESMTP id S1228762AbUJWIfA (ORCPT ); Sat, 23 Oct 2004 11:35:00 +0300 Message-ID: <417A17B5.20501@dnainternet.net> Date: Sat, 23 Oct 2004 11:35:01 +0300 From: Erik Udo User-Agent: Mozilla Thunderbird 0.8 (X11/20041012) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: label editing X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Oct 2004 08:35:02 -0000 So i got my partition back, and succesfully mounted it. All the old data was there. Now i just need my old slice on that partition back. Here's what happend in chronological order of what i did: - I boot 4.4 installdisk to fix mbr - I set ad0s1 as bootable, and write changes - Then i boot to HD installation of FreeBSD 5.3RC1 - And then i notice, my 150GB partition is gone, it's now 100GB 4.2BSD and 50GB unused - I delete 100GB partition, and merge 100GB and 50GB into one partition, and save changes. -I run gpart and scan_ffs unsuccesfully -Then i figured i can mount /dev/ad0s3, and that i didn't need labels. -And now i'm messing with disklabel -e to recover my old partition. Now remember i only did one slice on that partition some time ago using sysinstall. It was ad0s3d. Here's what bsdlabel -e /dev/ad0s3 gives me: # /dev/ad0s3: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 398297072 16 unused 0 0 c: 335389005 0 unused 0 0 # "raw" part, don't edit Then i try to save it, with no modifications, i get: /tmp/EdDk.tiDLEmTpvt: 5 lines, 223 characters. partition a: partition extends past end of unit re-edit the label? [y]: So i'm asking for correct changes i could try to recover my lost slice.