From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fcd71ed86677fc66 X-Google-Attributes: gidfee84,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Recovering a trashed filesystem Date: 1999/05/11 Message-ID: <7h9tkf$ba3$1@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 476702814 Distribution: world References: <3736AF41.ABD71D6B@astro.su.se> Organization: Digital Equipment Corporation Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Newsgroups: comp.unix.osf.osf1 In article <3736AF41.ABD71D6B@astro.su.se>, "Matt Delaney (System Manager)" writes: >I have managed to trash the filesystem on an alpha running DU 4.0. The >disk itself is fine, but disklabel -r reports that all partitions are >"unused". >Is there any way of recovering the data that is in these partitions? Maybe. But you haven't given enough information to recommend how. I think the two most important questions you need to answer are: 1. What file system were you using? 2. What did you to "trash" it? If all you did was to clear the disklabel, then all the data and file system structure is still there. If the file system happened to be on the whole disk, how it was partitioned doesn't matter. If there were multiple file systems or you were using a custom partition table, it gets a little harder. If the disk was under the control of LSM and then carved up, it gets even harder. If the file system is actually damaged and you were using AdvFS you may be able to use salvage to recover some of the data. If the file system was UFS and is relatively unharmed you just need to get a partition starting at the right offset, so that the primary superblock is at sector 16 from that offset. > -- Alan Rollow alan@nabeth.cxo.dec.com