Date: Sun, 13 Jun 2010 02:16:48 +0200 From: Polytropon <freebsd@edvax.de> To: "Xihong Yin" <xyin@gmx.com> Cc: freebsd-questions@freebsd.org Subject: Re: detached a mounted ufs filesystem Message-ID: <20100613021648.4642654e.freebsd@edvax.de> In-Reply-To: <20100612235037.158980@gmx.com> References: <20100612235037.158980@gmx.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 12 Jun 2010 19:46:26 -0400, "Xihong Yin" <xyin@gmx.com> wrote: > I accidentally detached my usb external hard drive without > umount it. The hard driver filesysystem is ufs. Now I can't > mount it because I can't see the slices. What I get is only > da0 and da0a in the /dev directory. Is there a way to fix > the filesystem? First of all, what does # fdisk da0 say? Has there already been a try to run fsck for this disk? Which layout (slices, partitions) should the disk contain? In case you lost "just" a partition table, install the program "testdisk" from ports or packages. If you don't have a backup of the data on the disk, keep in mind that everything you do is basically able to do more damage. If you have enough hard disk space, make a dd copy of the whole disk first and continue working with this 1:1 copy. Before you start using forensic tools, you should try to get the disk back into action. If this fails, we'll talk about how to recover files. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100613021648.4642654e.freebsd>