From owner-freebsd-questions@FreeBSD.ORG Sun Jan 20 01:26:11 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7791F16A417 for ; Sun, 20 Jan 2008 01:26:11 +0000 (UTC) (envelope-from fbsdq@peterk.org) Received: from poshta.pknet.net (poshta.pknet.net [216.241.167.213]) by mx1.freebsd.org (Postfix) with SMTP id 1248F13C46A for ; Sun, 20 Jan 2008 01:26:10 +0000 (UTC) (envelope-from fbsdq@peterk.org) Received: (qmail 31070 invoked by uid 98); 20 Jan 2008 01:28:13 -0000 Received: from 216.241.167.213 by poshta.pknet.net (envelope-from , uid 82) with qmail-scanner-2.01 (clamdscan: 0.91.2/5145. spamassassin: 3.2.3. Clear:RC:1(216.241.167.213):. Processed in 0.058721 secs); 20 Jan 2008 01:28:13 -0000 Received: from unknown (HELO webmail.pknet.net) (216.241.167.213) by poshta.pknet.net with SMTP; 20 Jan 2008 01:28:13 -0000 Received: from 216.241.167.208 (SquirrelMail authenticated user fbsdq@peterk.org) by webmail.pknet.net with HTTP; Sat, 19 Jan 2008 18:28:13 -0700 (MST) Message-ID: <3834.216.241.167.208.1200792493.squirrel@webmail.pknet.net> Date: Sat, 19 Jan 2008 18:28:13 -0700 (MST) From: "Peter" To: "Kelly Jones" User-Agent: SquirrelMail/1.4.11 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-questions@freebsd.org Subject: Re: Recovering data from a newfs filesystem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2008 01:26:11 -0000 try 'testdisk' mailds:#cat /usr/ports/sysutils/testdisk/pkg-descr Tool to check and undelete partition Works with the following partitions: - FAT12 FAT16 FAT32 - Linux EXT2/EXT3 - Linux SWAP (version 1 and 2) - NTFS (Windows NT/W2K/XP) - BeFS (BeOS) - UFS (BSD) - Netware - ReiserFS TestDisk is under GNU Public License. You can compile it under Dos with DJGPP or under Linux or BSD with gcc. WWW: http://www.cgsecurity.org/ - Florent Thoumie flz@xbsd.org ]Peter[ > Months ago, I got a new USB drive for my Mac OS X, did "newfs > /dev/disk1" on it, and it's been working fine. > > I then foolishly did "disklabel -create /dev/disk1", which broke > it. How can I recover my data? I've tried fsck w/ alternate > superblocks to no avail. > > "less -f /dev/disk1" shows me the disk label I created: > > > "http://www.apple\ > .com/DTDs/PropertyList-1.0.dtd"> > > > Base > 131072 > Size > 500107730944 > > > > but also shows me my file names/content, so I'm convinced the data is > still there. > > How do I recover my data? I assume newfs creates a UFS by default? Can > I "decode" /dev/disk1 the way one might decode a TAR file? > > Posting here because I know Mac OS X is "FreeBSD inside". > > -- > We're just a Bunch Of Regular Guys, a collective group that's trying > to understand and assimilate technology. We feel that resistance to > new ideas and technology is unwise and ultimately futile. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >