Date: Sat, 19 Jan 2008 16:41:26 -0700 From: "Kelly Jones" <kelly.terry.jones@gmail.com> To: freebsd-questions@freebsd.org Subject: Recovering data from a newfs filesystem Message-ID: <26face530801191541i60740ba3g5dd5ba24dbaadf39@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26face530801191541i60740ba3g5dd5ba24dbaadf39>