Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jan 2008 18:28:13 -0700 (MST)
From:      "Peter" <fbsdq@peterk.org>
To:        "Kelly Jones" <kelly.terry.jones@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Recovering data from a newfs filesystem
Message-ID:  <3834.216.241.167.208.1200792493.squirrel@webmail.pknet.net>

next in thread | raw e-mail | index | archive | help
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:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
> "http://www.apple\
> .com/DTDs/PropertyList-1.0.dtd">
> <plist version="1.0">
> <dict>
>         <key>Base</key>
>         <integer>131072</integer>
>         <key>Size</key>
>         <integer>500107730944</integer>
> </dict>
> </plist>
>
> 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"
>





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3834.216.241.167.208.1200792493.squirrel>