From owner-freebsd-questions@FreeBSD.ORG Sat Jul 12 21:48:55 2003 Return-Path: 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 3C7B037B401 for ; Sat, 12 Jul 2003 21:48:55 -0700 (PDT) Received: from smtp0.adl1.internode.on.net (smtp0.adl1.internode.on.net [203.16.214.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDFB843F85 for ; Sat, 12 Jul 2003 21:48:53 -0700 (PDT) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp1839.sa.padsl.internode.on.net [150.101.26.46]) h6D4mWdj086424; Sun, 13 Jul 2003 14:18:33 +0930 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: Marcin Gryszkalis , Freebsd Date: Sun, 13 Jul 2003 14:18:22 +0930 User-Agent: KMail/1.4.3 References: <3F10AE01.7010003@fork.pl> In-Reply-To: <3F10AE01.7010003@fork.pl> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200307131418.22378.malcolm.kay@internode.on.net> Subject: Re: partition recovery X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 04:48:55 -0000 On Sun, 13 Jul 2003 10:25, Marcin Gryszkalis wrote: > Hi > > I have a problem with UFS partition > (I can't access it). I'll tell you the story: > > there was windows 2000 > [ ntfs ] > I made some place for FreeBSD How? In FreeBSD terminalogy this is now 2 slices:- > [ ntfs ][ ufs=3Dad0s2 ] > I created slices In FreeBSD terminology "created partitions" or more specifically "BSD partitions". > [ ntfs ][( s2a )( s2b )... ] > after some time I removed win2000 - and just > did newfs on first partition (no repartitioning, > no slices - only newfs) On the first "slice" -- no "BSD partitioning". > [ ufs=3Dad0s1 ][( s2a )( s2b )... ] The MBR (master boot record) table will still have the first slice marked as ntfs unless you ran fdisk to change it. > after some time I wanted to install debian GNU/Linux > (this is test-box) > [ ufs=3Dad0s1=3Dhda1 ][swap=3Dhda2][ext2=3Dhda3] > and here something bad happened during installation > (few reboots/kernel panics and so on) It seems you have now assigned all "slices" to Linux at least in your mind. But what types does fdisk think they are? > > Now I cannot mount ad01s/hda1 partition - > - linux sees it as NTFS partition, more - Probably because it is still marked as ntfs in the MBR. Change its type with fdisk. > it CAN mount it as NTFS (and I can even see > some windows files!) > - freebsd can see it as UFS but cannot mount Where is FreeBSD? -- it appeared you had given the FreeBSD slice ad0s2 over to Linux swap -- but then I'm not knowledgable with=20 respect to exactly what Linux means by hda2. > ('bad magic number' or bad superblock), > using backup superblock > (-b 32) doesn't work. > > What can I do to recover data from the first partition??? What data? -- the original ntfs data or what Linux may have installed? I suspect that in either case it is now pretty much corrupted. The sembla= nce=20 of windows files will have a scattering of blocks over written by newfs. > > regards You seem to be confused with slices and partitions -- but it IS confusing. Just remember Microsoft partitions are slices in the BSD world. Malcolm