From owner-freebsd-fs Sun Jun 23 1:56:11 2002 Delivered-To: freebsd-fs@freebsd.org Received: from www.e-complex.ru (L180.UT.net.ru [212.220.225.180]) by hub.freebsd.org (Postfix) with ESMTP id 32B4137B410; Sun, 23 Jun 2002 01:55:58 -0700 (PDT) Received: from 127.0.0.1 (cj [192.168.2.51]) by www.e-complex.ru (8.11.6/8.11.6) with ESMTP id g5N98qM07589; Sun, 23 Jun 2002 15:08:52 +0600 (YEKST) (envelope-from vadim@e-complex.ru) Date: Sun, 23 Jun 2002 15:01:39 +0600 From: vadim@e-complex.ru X-Mailer: The Bat! (v1.51) UNREG / CD5BF9353B3B7091 Reply-To: vadim@e-complex.ru X-Priority: 3 (Normal) Message-ID: <1577698468.20020623150139@e-complex.ru> To: freebsd-stable@freebsd.org, freebsd-fs@freebsd.org Subject: File system failure! URGENT Help needed! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi All! After adding new drive to system 2 of old drives was installed on one cable, and (by fatal flaw) both as slave. And after FBSD is booted it writed identical information onto both of that drivers simultaneously. As a result both filesystems is down. After that fsck was runed... and now very important data is lost. is was from words of the system administrator. Is it possible to recover data? I understand what I give you very small information, but it is all of I know. there is an example: newserver# ls /backup/ Distr Profiles all buh home pto smeta newserver# ls -i /backup/ ls: all: Bad file descriptor ls: buh: Bad file descriptor ls: smeta: Bad file descriptor 6007573 Distr 14348288 Profiles 7936 home 12054848 pto It is obvious, that the part of inodes was lost. How can we restore it? May be, it is possible to recover that by info what is in the files? Thank you in advance, and sorry for a bad English. Vl. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 23 2:44:13 2002 Delivered-To: freebsd-fs@freebsd.org Received: from moya.lambermont.dyndns.org (e165253.upc-e.chello.nl [213.93.165.253]) by hub.freebsd.org (Postfix) with ESMTP id DD6F437B400; Sun, 23 Jun 2002 02:44:09 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by moya.lambermont.dyndns.org (Postfix) with ESMTP id 0143C3640C; Sun, 23 Jun 2002 11:44:08 +0200 (CEST) Received: by moya.lambermont.dyndns.org (Postfix, from userid 1001) id EAEB936409; Sun, 23 Jun 2002 11:44:05 +0200 (CEST) Date: Sun, 23 Jun 2002 11:44:05 +0200 To: vadim@e-complex.ru Cc: freebsd-stable@freebsd.org, freebsd-fs@freebsd.org Subject: Re: File system failure! URGENT Help needed! Message-ID: <20020623114405.A42706@moya.lambermont.dyndns.org> References: <1577698468.20020623150139@e-complex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1577698468.20020623150139@e-complex.ru>; from vadim@e-complex.ru on Sun, Jun 23, 2002 at 03:01:39PM +0600 From: hans@lambermont.dyndns.org (Hans Lambermont) X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org vadim@e-complex.ru wrote: ... > booted it writed identical information onto both of that drivers ... > It is obvious, that the part of inodes was lost. How can we restore > it? May be, it is possible to recover that by info what is in the > files? I leave the inode magic to someone else, but for your filedata; I'd start with making a binary file copy of the whole drive (dd using raw device) so that you can dig trough it, maybe even copy the data parts that you need from it. If you have a spare drive that is exactly the same type you could make a binary copy of the disk to it, and don't need to worry about making the prolem worse while recovering the data with inode magic. Hope this helps you a bit. Hans Lambermont -- http://lambermont.webhop.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 23 2:57:44 2002 Delivered-To: freebsd-fs@freebsd.org Received: from www.e-complex.ru (L180.UT.net.ru [212.220.225.180]) by hub.freebsd.org (Postfix) with ESMTP id 0D28C37B400; Sun, 23 Jun 2002 02:57:40 -0700 (PDT) Received: from 127.0.0.1 (cj [192.168.2.51]) by www.e-complex.ru (8.11.6/8.11.6) with ESMTP id g5NAATM07918; Sun, 23 Jun 2002 16:10:30 +0600 (YEKST) (envelope-from vadim@e-complex.ru) Date: Sun, 23 Jun 2002 16:03:15 +0600 From: vadim@e-complex.ru X-Mailer: The Bat! (v1.51) UNREG / CD5BF9353B3B7091 Reply-To: vadim@e-complex.ru X-Priority: 3 (Normal) Message-ID: <5711394421.20020623160315@e-complex.ru> To: hans@lambermont.dyndns.org ((Hans Lambermont)) Cc: freebsd-stable@freebsd.org, freebsd-fs@freebsd.org Subject: Re[2]: File system failure! URGENT Help needed! In-Reply-To: <20020623114405.A42706@moya.lambermont.dyndns.org> References: <1577698468.20020623150139@e-complex.ru> <20020623114405.A42706@moya.lambermont.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org HL> If you have a spare drive that is exactly the same type you could make a HL> binary copy of the disk to it, and don't need to worry about making the HL> prolem worse while recovering the data with inode magic. Yes, of course, I did it. Thanks! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 23 3:23: 5 2002 Delivered-To: freebsd-fs@freebsd.org Received: from postfix1-2.free.fr (postfix1-2.free.fr [213.228.0.130]) by hub.freebsd.org (Postfix) with ESMTP id 835AA37B404 for ; Sun, 23 Jun 2002 03:22:53 -0700 (PDT) Received: from anphor (montpellier-1-a7-62-147-83-252.dial.proxad.net [62.147.83.252]) by postfix1-2.free.fr (Postfix) with SMTP id F1F60AB664 for ; Sun, 23 Jun 2002 12:22:50 +0200 (CEST) From: "Patrick Bihan-Faou" To: Subject: Strange behavior of 'union' mounted filesystems Date: Sun, 23 Jun 2002 12:22:43 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <1577698468.20020623150139@e-complex.ru> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, While playing with FS options, I came accross something that looks suspicious to me while using the 'union' mount option (not the UNIONFS): Here is what I have in my /etc/fstab: /dev/ad0s1a / ufs rw,suiddir,groupquota 0 1 /dev/ad0s1b none swap sw 0 0 /dev/ad0s1e /var ufs rw 0 2 /dev/ad0s1f /data ufs rq,suiddir,groupquota 0 3 /dev/ad0s1b /tmp_mfs mfs rw,-s65536,union,noauto 0 3 proc /proc procfs rw 0 0 Now initially, after booting, I have: bash-2.04# mount /dev/ad0s1a on / (ufs, local, with quotas, suiddir) /dev/ad0s1e on /var (ufs, local) /dev/ad0s1f on /data (ufs, local, with quotas, suiddir, soft-updates) procfs on /proc (procfs, local) If I put a file in /tmp_mfs at this stage everything is OK, and when I mount the /tmp_mfs filesystem, everything works as expected: I can see the existing file(s), etc. My problem is when I put a flag on the files in /tmp_mfs *BEFORE* mounting the /tmp_mfs FS: bash-2.04# ls /tmp_mfs/ bash-2.04# echo "test" > /tmp_mfs/test bash-2.04# chflags schg /tmp_mfs/test bash-2.04# ls -lio /tmp_mfs/ total 1 10678 -rw-r--r-- 1 root wheel schg 5 Jun 23 11:53 test bash-2.04# And then I mount the filesystem: bash-2.04# cat /tmp_mfs/test test bash-2.04# mount /tmp_mfs Warning: Block size restricts cylinders per group to 23. bash-2.04# mount /dev/ad0s1a on / (ufs, local, with quotas, suiddir) /dev/ad0s1e on /var (ufs, local) /dev/ad0s1f on /data (ufs, local, with quotas, suiddir, soft-updates) procfs on /proc (procfs, local) mfs:38280 on /tmp_mfs (mfs, asynchronous, local, union) bash-2.04# ls -lio /tmp_mfs total 1 10678 -rw-r--r-- 1 root wheel schg 5 Jun 23 11:53 test bash-2.04# cat /tmp_mfs/test test bash-2.04# echo "bad" > /tmp_mfs/test bash-2.04# cat /tmp_mfs/test bad bash-2.04# ls -lio /tmp_mfs total 1 3 -rw-r--r-- 1 root wheel - 4 Jun 23 11:56 test As you can see the 'schg' flag on the underlying flag is not checked if the file is open for writing. It is however checked in case I try to delete the file: bash-2.04# rm /tmp_mfs/test # get rid of the overriding file bash-2.04# rm /tmp_mfs/test # get rid of the underlying file override rw-r--r-- root/wheel schg for /tmp_mfs/test? y rm: /tmp_mfs/test: Operation not permitted Now, this to me seems like a bug, but it could very well be due to my lack of understanding of how union mounted filesystems work. If the file exists in the underlying FS, shouldn't the permissions and flags be honored before a 'create' is attempted in the 'upper' FS ? This clearly does not look like it is the case currently. These tests were done on a FreeBSD-stable system: FreeBSD kawa.local.mindstep.com 4.4-STABLE FreeBSD 4.4-STABLE #0: Fri Jan 25 02:59:41 CET 2002 root@kawa.local.mindstep.com:/data/users/patrick/build/25.4/tmpobj/data/user s/patrick/build/25.4/freebsd-src/sys/ZUNOBOX_DEV i386 If somebody can enlighten me, it would really be appreciated. Patrick. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 23 3:51:39 2002 Delivered-To: freebsd-fs@freebsd.org Received: from www.e-complex.ru (L180.UT.net.ru [212.220.225.180]) by hub.freebsd.org (Postfix) with ESMTP id 5994437B401; Sun, 23 Jun 2002 03:51:34 -0700 (PDT) Received: from 127.0.0.1 (cj [192.168.2.51]) by www.e-complex.ru (8.11.6/8.11.6) with ESMTP id g5NB4UM08166; Sun, 23 Jun 2002 17:04:31 +0600 (YEKST) (envelope-from vadim@e-complex.ru) Date: Sun, 23 Jun 2002 16:57:16 +0600 From: vadim@e-complex.ru X-Mailer: The Bat! (v1.51) UNREG / CD5BF9353B3B7091 Reply-To: vadim@e-complex.ru X-Priority: 3 (Normal) Message-ID: <5714634859.20020623165716@e-complex.ru> To: freebsd-stable@freebsd.org, freebsd-fs@freebsd.org Subject: UFS\FFS physical layout description MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi! Is it availiable description of physical layout of the UFS\FFS? I need it for trying to recover failed filesystem. thanks a lot. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 23 5:18: 2 2002 Delivered-To: freebsd-fs@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id D6BC537B400; Sun, 23 Jun 2002 05:17:53 -0700 (PDT) Received: from pool0005.cvx22-bradley.dialup.earthlink.net ([209.179.198.5] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17M6JR-0004z6-00; Sun, 23 Jun 2002 05:17:49 -0700 Message-ID: <3D15BC47.45DB3CA1@mindspring.com> Date: Sun, 23 Jun 2002 05:17:11 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: vadim@e-complex.ru Cc: freebsd-stable@freebsd.org, freebsd-fs@freebsd.org Subject: Re: UFS\FFS physical layout description References: <5714634859.20020623165716@e-complex.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org vadim@e-complex.ru wrote: > Is it availiable description of physical layout of the UFS\FFS? I > need it for trying to recover failed filesystem. /usr/include/ufs/ffs -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 23 5:36:29 2002 Delivered-To: freebsd-fs@freebsd.org Received: from www.e-complex.ru (L180.UT.net.ru [212.220.225.180]) by hub.freebsd.org (Postfix) with ESMTP id 791AB37B50F; Sun, 23 Jun 2002 05:35:41 -0700 (PDT) Received: from 127.0.0.1 (cj [192.168.2.51]) by www.e-complex.ru (8.11.6/8.11.6) with ESMTP id g5NCmaM08407; Sun, 23 Jun 2002 18:48:37 +0600 (YEKST) (envelope-from vadim@e-complex.ru) Date: Sun, 23 Jun 2002 18:41:19 +0600 From: vadim@e-complex.ru X-Mailer: The Bat! (v1.51) UNREG / CD5BF9353B3B7091 Reply-To: vadim@e-complex.ru X-Priority: 3 (Normal) Message-ID: <17720878203.20020623184119@e-complex.ru> To: Terry Lambert Cc: freebsd-stable@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re[2]: UFS\FFS physical layout description In-Reply-To: <3D15BC47.45DB3CA1@mindspring.com> References: <5714634859.20020623165716@e-complex.ru> <3D15BC47.45DB3CA1@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >> Is it availiable description of physical layout of the UFS\FFS? I >> need it for trying to recover failed filesystem. TL> /usr/include/ufs/ffs yes, I know about it... I mean, something like table with name, arragement and description, specially for teapot like me :) It's too long for me to explain what is ufs_daddr_t and how long, for example. My situation didn't take me plenty of time... If that table is unavaliable, I will happen to do it by my hand... :( Or may be you can to prompt how bring csum in balance with actually information exist in the cylinder group info? I see csum has incorrect information and think what cg* info is correct... Vl. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 23 6:37:12 2002 Delivered-To: freebsd-fs@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id 5B94C37B43F; Sun, 23 Jun 2002 06:36:40 -0700 (PDT) Received: from pool0005.cvx22-bradley.dialup.earthlink.net ([209.179.198.5] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17M7Xd-00024Q-00; Sun, 23 Jun 2002 06:36:34 -0700 Message-ID: <3D15CEB2.11412BC9@mindspring.com> Date: Sun, 23 Jun 2002 06:35:46 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: vadim@e-complex.ru Cc: freebsd-stable@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: UFS\FFS physical layout description References: <5714634859.20020623165716@e-complex.ru> <3D15BC47.45DB3CA1@mindspring.com> <17720878203.20020623184119@e-complex.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org vadim@e-complex.ru wrote: > >> Is it availiable description of physical layout of the UFS\FFS? I > >> need it for trying to recover failed filesystem. > TL> /usr/include/ufs/ffs > yes, I know about it... I mean, something like table with name, > arragement and description, specially for teapot like me :) > > It's too long for me to explain what is ufs_daddr_t and how long, for example. > My situation didn't take me plenty of time... > > If that table is unavaliable, I will happen to do it by my hand... :( > > Or may be you can to prompt how bring csum in balance with actually > information exist in the cylinder group info? > > I see csum has incorrect information and think what cg* info is > correct... fsck will fix this. Or if it's not just correcting the bits, then one of the "Desing and Implementation" books will have the information you are asking for, as pretty pictures: http://citeseer.nj.nec.com/mckusick84fast.html http://www.amazon.com/exec/obidos/ASIN/0201549794/ref=pd_sr_ec_ir_b/102-7714006-3202557 http://www.amazon.com/exec/obidos/ASIN/0201546299/qid=1024839281/sr=1-3/ref=sr_1_3/102-7714006-3202557 -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 23 8:57:59 2002 Delivered-To: freebsd-fs@freebsd.org Received: from taka.swcp.com (taka.swcp.com [198.59.115.12]) by hub.freebsd.org (Postfix) with ESMTP id EBEE537B400; Sun, 23 Jun 2002 08:57:55 -0700 (PDT) Received: from same.swcp.com (same.swcp.com [216.184.2.4]) by taka.swcp.com (8.12.3/8.12.3) with ESMTP id g5NFvhbJ002506; Sun, 23 Jun 2002 09:57:44 -0600 (MDT) Received: (from cheeks@localhost) by same.swcp.com (8.9.3+Sun/8.9.1) id JAA02487; Sun, 23 Jun 2002 09:57:41 -0600 (MDT) Date: Sun, 23 Jun 2002 09:57:41 -0600 From: Mark Costlow To: vadim@e-complex.ru Cc: "(Hans Lambermont)" , freebsd-stable@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: File system failure! URGENT Help needed! Message-ID: <20020623095741.A2391@same.swcp.com> References: <1577698468.20020623150139@e-complex.ru> <20020623114405.A42706@moya.lambermont.dyndns.org> <5711394421.20020623160315@e-complex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <5711394421.20020623160315@e-complex.ru>; from vadim@e-complex.ru on Sun, Jun 23, 2002 at 04:03:15PM +0600 X-Spam-Status: No, hits=-3.4 required=10.0 tests=IN_REP_TO,PLING,X_NOT_PRESENT version=2.21 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Jun 23, 2002 at 04:03:15PM +0600, vadim@e-complex.ru wrote: > HL> If you have a spare drive that is exactly the same type you could make a > HL> binary copy of the disk to it, and don't need to worry about making the > HL> prolem worse while recovering the data with inode magic. > > Yes, of course, I did it. Thanks! Now that you have a copy of the data, this tool can help you extract your data from the damaged file system: http://www.porcupine.org/forensics/tct.html Be sure to read the instructions carefully before starting to use it. It is a slow process, but it works. Mark -- Mark Costlow | Southwest Cyberport | Fax: +1-505-232-7975 cheeks@swcp.com | Web: www.swcp.com | Voice: +1-505-232-7992 "Education is never a waste" - Viscount du Valmont To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 23 9:20:34 2002 Delivered-To: freebsd-fs@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 740C837B40C; Sun, 23 Jun 2002 09:20:11 -0700 (PDT) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020623162011.RJYS11659.rwcrmhc53.attbi.com@InterJet.elischer.org>; Sun, 23 Jun 2002 16:20:11 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id JAA47133; Sun, 23 Jun 2002 09:15:15 -0700 (PDT) Date: Sun, 23 Jun 2002 09:15:13 -0700 (PDT) From: Julian Elischer To: vadim@e-complex.ru Cc: freebsd-stable@freebsd.org, freebsd-fs@freebsd.org Subject: Re: File system failure! URGENT Help needed! In-Reply-To: <1577698468.20020623150139@e-complex.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I suspect that data to both drives was written to both drives.. :-( My suspicion is that some unknown amount of data was irretrievably lost. The mantra of sysads is always: "Do a full backup before changing the hardware" On Sun, 23 Jun 2002 vadim@e-complex.ru wrote: > Hi All! > > After adding new drive to system 2 of old drives was installed on > one cable, and (by fatal flaw) both as slave. And after FBSD is booted it writed > identical information onto both of that drivers simultaneously. > As a result both filesystems is down. After that fsck was runed... > and now very important data is lost. > > is was from words of the system administrator. > > Is it possible to recover data? I understand what I give you very > small information, but it is all of I know. > > there is an example: > > newserver# ls /backup/ > Distr Profiles all buh home pto smeta > newserver# ls -i /backup/ > ls: all: Bad file descriptor > ls: buh: Bad file descriptor > ls: smeta: Bad file descriptor > 6007573 Distr 14348288 Profiles 7936 home 12054848 pto > > It is obvious, that the part of inodes was lost. How can we restore > it? May be, it is possible to recover that by info what is in the > files? > > Thank you in advance, and sorry for a bad English. > > Vl. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-fs" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 23 9:54: 5 2002 Delivered-To: freebsd-fs@freebsd.org Received: from digitalfreaks.org (digitalfreaks.org [216.151.95.156]) by hub.freebsd.org (Postfix) with SMTP id 2F70137B403 for ; Sun, 23 Jun 2002 09:53:56 -0700 (PDT) Received: (qmail 91221 invoked by uid 1000); 23 Jun 2002 16:55:54 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 23 Jun 2002 16:55:54 -0000 Date: Sun, 23 Jun 2002 12:55:54 -0400 (EDT) From: Chad Ziccardi To: Hans Lambermont Cc: vadim@e-complex.ru, , Subject: Re: File system failure! URGENT Help needed! In-Reply-To: <20020623114405.A42706@moya.lambermont.dyndns.org> Message-ID: <20020623125321.A90926-100000@digitalfreaks.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org begin quote from Hans Lambermont written...: > vadim@e-complex.ru wrote: > > ... > > booted it writed identical information onto both of that drivers > ... > > It is obvious, that the part of inodes was lost. How can we restore > > it? May be, it is possible to recover that by info what is in the > > files? > > I leave the inode magic to someone else, but for your filedata; I'd > start with making a binary file copy of the whole drive (dd using raw > device) so that you can dig trough it, maybe even copy the data parts > that you need from it. > > If you have a spare drive that is exactly the same type you could make a > binary copy of the disk to it, and don't need to worry about making the > prolem worse while recovering the data with inode magic. > > Hope this helps you a bit. > > Hans Lambermont > On one of the spare disks put the data on with dd, here's two utils that will help: /usr/ports/sysutils/ffsrecov /usr/ports/sysutils/gpart As well as TCT. -- Chad Ziccardi, Professional Slacker cz@digitalfreaks.org "Some cause happiness wherever they go; others whenever they go." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sun Jun 23 10:52: 7 2002 Delivered-To: freebsd-fs@freebsd.org Received: from www.e-complex.ru (L180.UT.net.ru [212.220.225.180]) by hub.freebsd.org (Postfix) with ESMTP id B993337B40F; Sun, 23 Jun 2002 10:51:59 -0700 (PDT) Received: from 127.0.0.1 (cj [192.168.2.51]) by www.e-complex.ru (8.11.6/8.11.6) with ESMTP id g5NI4rM09047; Mon, 24 Jun 2002 00:04:53 +0600 (YEKST) (envelope-from vadim@e-complex.ru) Date: Sun, 23 Jun 2002 23:57:29 +0600 From: vadim@e-complex.ru X-Mailer: The Bat! (v1.51) UNREG / CD5BF9353B3B7091 Reply-To: vadim@e-complex.ru X-Priority: 3 (Normal) Message-ID: <3611325562.20020623235729@e-complex.ru> To: Chad Ziccardi Cc: Hans Lambermont , freebsd-stable@freebsd.org, freebsd-fs@freebsd.org Subject: Re[2]: File system failure! URGENT Help needed! In-Reply-To: <20020623125321.A90926-100000@digitalfreaks.org> References: <20020623125321.A90926-100000@digitalfreaks.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >> If you have a spare drive that is exactly the same type you could make a >> binary copy of the disk to it, and don't need to worry about making the >> prolem worse while recovering the data with inode magic. >> Hope this helps you a bit. CZ> On one of the spare disks put the data on with dd, here's two utils that will CZ> help: CZ> /usr/ports/sysutils/ffsrecov That program isn't output any sensible information. ffsrecov -p shows garbage, ffsrecov -s is coredumping even on live filesystems. CZ> /usr/ports/sysutils/gpart That seems to bee unusable in my situation - I think what primary partition table is already correct. :( Vl. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jun 25 3: 6:18 2002 Delivered-To: freebsd-fs@freebsd.org Received: from hotmail.com (oe54.pav2.hotmail.com [64.4.36.47]) by hub.freebsd.org (Postfix) with ESMTP id 2E8E737B489; Tue, 25 Jun 2002 02:55:55 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 25 Jun 2002 02:55:15 -0700 X-Originating-IP: [203.144.144.233] From: "mont" To: Subject: =?windows-874?B?cGFydC10aW1lIDUsMDAwLTEwLDAwMCCk2LOh57fT5LTpICEhIQ==?= Date: Tue, 25 Jun 2002 16:46:59 +0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_020C_01C21C67.ECC8FF80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 25 Jun 2002 09:55:15.0514 (UTC) FILETIME=[67C9B1A0:01C21C2E] Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_020C_01C21C67.ECC8FF80 Content-Type: text/plain; charset="windows-874" Content-Transfer-Encoding: quoted-printable = =C3=D0=BA=BA=A1=D2=C3=B7=D3=A7=D2=B9=A2=CD=A7=B8=D8=C3=A1=D4=A8=E3=B9=CD=B9= =D2=A4=B5 =B7=D3=E4=B4=E9=A7=E8=D2=C2 = =E1=C5=D0=CA=C3=E9=D2=A7=C3=D2=C2=E4=B4=E9=A7=D2=C1=A8=D2=A1=A1=D2=C3=B7=D3= =A7=D2=B9=BC=E8=D2=B9=C3=D0=BA=BA =BC=C1=C1=D5=C3=D2=C2=E4=B4=E9=C1=D2=A1=A1=C7=E8=D2 30,000 / = =E0=B4=D7=CD=B9 = =A8=D2=A1=A1=D2=C3=B7=D3=A7=D2=B9=E0=BE=D5=C2=A7=C7=D1=B9=C5=D0 2-3 = =AA=D1=E8=C7=E2=C1=A7=E0=B7=E8=D2=B9=D1=E9=B9 =E2=CD=A1=D2=CA=C1=D2=B6=D6=A7=A4=D8=B3=E1=C5=E9=C7 ! = =E0=CB=C5=D7=CD=E1=B5=E8=E0=BE=D5=C2=A7=A4=D8=B3=A8=D0=A4=C7=E9=D2=C1=D1=B9= =CB=C3=D7=CD=E0=BB=C5=E8=D2 =A1=D2=C3=BA=C3=C3=C2=D2=C2=E1=B9=D0=B9=D3=B8=D8=C3=A1=D4=A8 = International E-Business =E0=C3=D5=C2=B9=C3=D9=E9=C7=D4=B8=D5=A1=D2=C3=B7=D3=A7=D2=B9 = =B8=D8=C3=A1=D4=A8=B9=D2=B9=D2=AA=D2=B5=D4 =BA=B9 Internet=20 = =E0=C3=D5=C2=B9=C3=D9=E9=E1=BC=B9=A1=D2=C3=B7=D3=A7=D2=B9=E0=BE=D4=E8=C1=C3= =D2=C2=E4=B4=E9=BE=D4=E0=C8=C9=E3=B9=E1=B5=E8=C5=D0=E0=B4=D7=CD=B9 = =E1=BC=B9=C3=D2=C2=E4=B4=E9=CD=C2=E8=D2=A7=A8=C3=D4=A7=A8=D1=A7=E1=BA=BA=B7= =D3=A7=D2=B9 Part-time 15,000 =B6=D6=A7 60,000 =BA=D2=B7/=E0=B4=D7=CD=B9 =E0=C7=C5=D2=B7=D5=E8=B5=E9=CD=A7=E3=AA=E9 : 7- 14 =AA=C1. = /=CA=D1=BB=B4=D2=CB=EC=20 = =E1=BC=B9=C3=D2=C2=E4=B4=E9=CD=C2=E8=D2=A7=A8=C3=D4=A7=A8=D1=A7=E1=BA=BA=B7= =D3=A7=D2=B9 full-time 30,000 =B6=D6=A7 170,000 =BA=D2=B7/=E0=B4=D7=CD=B9 =E0=C7=C5=D2=B7=D5=E8=B5=E9=CD=A7=E3=AA=E9 : 20- 40 =AA=C1. = /=CA=D1=BB=B4=D2=CB=EC=20 =A2=E8=D2=C7=B4=D5 ! =CA=D3=CB=C3=D1=BA = =BC=D9=E9=B7=D5=E8=CD=C2=D9=E8=E3=B9=E0=A2=B5 =A1=C3=D8=A7=E0=B7=BE=CF = =E1=C5=D0=BB=C3=D4=C1=C5=B1=C5 = =CA=D3=C3=CD=A7=B7=D5=E8=B9=D1=E8=A7=E0=BE=D7=E8=CD=BF=D1=A7=A1=D2=C3=BA=C3= =C3=C2=D2=C2 =BF=C3=D5 !!! = ************************************************************* = =A2=CD=CD=C0=D1=C2=CB=D2=A1=A2=E9=CD=A4=C7=D2=C1=B9=D5=E9=E4=BB=B6=D6=A7=A4= =D8=B3=E2=B4=C2=BA=D1=A7=E0=CD=D4=AD=CB=D2=A1=A4=D8=B3=E4=C1=E8=B5=E9=CD=A7= =A1=D2=C3=C3=D1=BA=A2=E9=CD=A4=C7=D2=C1=B9=D5=E9=CD=D5=A1 =A1=C3=D8=B3=D2 =E1=A8=E9=A7 Mail = =A2=CD=A7=A4=D8=B3=B7=D5=E8=B5=E9=CD=A7=A1=D2=C3=C5=BA=C1=D2=B7=D5=E8 = "Unsubscribe" =20 =20 ------=_NextPart_000_020C_01C21C67.ECC8FF80 Content-Type: text/html; charset="windows-874" Content-Transfer-Encoding: quoted-printable

=C3=D0=BA=BA=A1=D2=C3=B7=D3=A7=D2=B9=A2=CD=A7=B8=D8=C3=A1=D4=A8= =E3=B9=CD=B9=D2=A4=B5
=B7=D3=E4=B4=E9=A7=E8=D2=C2=20 = =E1=C5=D0=CA=C3=E9=D2=A7=C3=D2=C2=E4=B4=E9=A7=D2=C1=A8=D2=A1=A1=D2=C3=B7=D3= =A7=D2=B9=BC=E8=D2=B9=C3=D0=BA=BA
=BC=C1=C1=D5=C3=D2=C2=E4=B4=E9=C1=D2=A1=A1=C7=E8=D2=20 30,000 / =E0=B4=D7=CD=B9 = =A8=D2=A1=A1=D2=C3=B7=D3=A7=D2=B9=E0=BE=D5=C2=A7=C7=D1=B9=C5=D0 2-3=20 = =AA=D1=E8=C7=E2=C1=A7=E0=B7=E8=D2=B9=D1=E9=B9

=E2=CD=A1=D2=CA=C1=D2=B6=D6=A7=A4=D8=B3=E1=C5=E9=C7=20 !
=E0=CB=C5=D7=CD=E1=B5=E8=E0=BE=D5=C2=A7=A4=D8=B3=A8=D0=A4=C7= =E9=D2=C1=D1=B9=CB=C3=D7=CD=E0=BB=C5=E8=D2

=A1=D2=C3=BA=C3=C3=C2=D2=C2=E1=B9=D0=B9=D3=B8=D8=C3=A1=D4= =A8 International=20 E-Business
=E0=C3=D5=C2=B9=C3=D9=E9=C7=D4=B8=D5=A1=D2=C3=B7=D3=A7=D2= =B9 =B8=D8=C3=A1=D4=A8=B9=D2=B9=D2=AA=D2=B5=D4 =BA=B9 Internet=20
=E0=C3=D5=C2=B9=C3=D9=E9=E1=BC=B9=A1=D2=C3=B7=D3=A7=D2=B9= =E0=BE=D4=E8=C1=C3=D2=C2=E4=B4=E9=BE=D4=E0=C8=C9=E3=B9=E1=B5=E8=C5=D0=E0=B4= =D7=CD=B9

=E1=BC=B9=C3=D2=C2=E4=B4=E9=CD=C2=E8=D2=A7=A8=C3=D4=A7=A8=D1=A7=E1=BA= =BA=B7=D3=A7=D2=B9 Part-time
15,000 =B6=D6=A7 = 60,000=20 = =BA=D2=B7/=E0=B4=D7=CD=B9
=E0=C7=C5=D2=B7=D5=E8=B5=E9=CD=A7=E3=AA=E9 = : 7- 14 =AA=C1. /=CA=D1=BB=B4=D2=CB=EC=20 =
=E1=BC=B9=C3=D2=C2=E4=B4=E9=CD=C2=E8=D2=A7=A8=C3=D4=A7=A8=D1=A7=E1=BA= =BA=B7=D3=A7=D2=B9 full-time
30,000 =B6=D6=A7 170,000=20 = =BA=D2=B7/=E0=B4=D7=CD=B9
=E0=C7=C5=D2=B7=D5=E8=B5=E9=CD=A7=E3=AA=E9 = : 20- 40 =AA=C1. /=CA=D1=BB=B4=D2=CB=EC

=A2=E8=D2=C7=B4=D5=20 !     = =CA=D3=CB=C3=D1=BA = =BC=D9=E9=B7=D5=E8=CD=C2=D9=E8=E3=B9=E0=A2=B5=20 =A1=C3=D8=A7=E0=B7=BE=CF  = =E1=C5=D0=BB=C3=D4=C1=C5=B1=C5
=CA=D3=C3=CD=A7=B7=D5=E8=B9=D1=E8=A7=E0=BE=D7=E8=CD=BF=D1=A7=A1=D2= =C3=BA=C3=C3=C2=D2=C2   = =BF=C3=D5 !!!
*************************************************************
          &nbs= p; =20 =A2=CD=CD=C0=D1=C2=CB=D2=A1=A2=E9=CD=A4=C7=D2=C1=B9=D5=E9=E4=BB= =B6=D6=A7=A4=D8=B3=E2=B4=C2=BA=D1=A7=E0=CD=D4=AD=CB=D2=A1=A4=D8=B3=E4=C1=E8= =B5=E9=CD=A7=A1=D2=C3=C3=D1=BA=A2=E9=CD=A4=C7=D2=C1=B9=D5=E9=CD=D5=A1
=   =20 =            =        =20 =A1=C3=D8=B3=D2 =E1=A8=E9=A7 Mail=20 = =A2=CD=A7=A4=D8=B3=B7=D5=E8=B5=E9=CD=A7=A1=D2=C3=C5=BA=C1=D2=B7=D5=E8 = "Unsubscribe"

------=_NextPart_000_020C_01C21C67.ECC8FF80-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 29 16:10:13 2002 Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE8AB37B400; Sat, 29 Jun 2002 16:09:57 -0700 (PDT) Received: from public.ls.xz.cn (public.ls.xz.cn [202.98.224.136]) by mx1.FreeBSD.org (Postfix) with SMTP id DD16143E13; Sat, 29 Jun 2002 16:09:44 -0700 (PDT) (envelope-from jacskr44@mail.ru) Received: from 216.77.61.89([213.219.67.70]) by public.ls.xz.cn(AIMC 2.9.5.2) with SMTP id jm1b3d1e96db; Sun, 30 Jun 2002 07:09:20 +0800 To: From: "kirbie" Subject: How to enlarge your penis 1-4"...guaranteed Date: Sat, 29 Jun 2002 19:10:24 -1600 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Message-Id: <20020629230944.DD16143E13@mx1.FreeBSD.org> Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Our sales aren't the only thing GROWING with this product! Increase penis size 1-4"...guaranteed!! For complete information on how to gain back your self esteem: http://www.freehostchina.com/site2/69chevelle/index.html +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ AS Seen On TV!! *Want to attract that special woman? *Interested in a little extra edge in business affairs? *Ever wonder why some people seem to have it all? If you answered yes to any of the above questions, and would like to gain that unfair advantage to attract that special woman or women: http://www.freehostchina.com/Minshan/shezwan/index.html +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ To "optOut": mailto:nogirls4me@iafrica.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Sat Jun 29 16:10:22 2002 Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE24337B408; Sat, 29 Jun 2002 16:09:57 -0700 (PDT) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AE8B43E09; Sat, 29 Jun 2002 16:09:57 -0700 (PDT) (envelope-from tony@ubik.demon.co.uk) Received: from ubik.demon.co.uk ([194.222.125.229]) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 17ORLn-0005VS-0X; Sun, 30 Jun 2002 00:09:56 +0100 Message-ID: Date: Sat, 29 Jun 2002 23:08:43 +0000 To: Terry Lambert Cc: vadim@e-complex.ru, freebsd-stable@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG From: Anthony Naggs Subject: Re: UFS\FFS physical layout description References: <5714634859.20020623165716@e-complex.ru> <3D15BC47.45DB3CA1@mindspring.com> <17720878203.20020623184119@e-complex.ru> <3D15CEB2.11412BC9@mindspring.com> In-Reply-To: <3D15CEB2.11412BC9@mindspring.com> MIME-Version: 1.0 X-Mailer: Turnpike Integrated Version 5.01 U Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In article <3D15CEB2.11412BC9@mindspring.com>, Terry Lambert writes > >Or if it's not just correcting the bits, then one of the "Desing and >Implementation" books will have the information you are asking for, >as pretty pictures: These books I've found handy for other stuff, but they have coverage of file system layout too: "Solaris Internals - Core Kernel Architecture", 2001, $59.99 Jim Mauro, Richard McDougall Sun Microsystems Press/Prentice Hall, ISBN 0-13-022496-0 Particularly Chapter 14, The UNIX File System, which has a section on the UFS on-disk format. "Unix Internals - The New Frontiers", 1996 Uresh Vahalia Prentice Hall, ISBN 0-13-101908-2 Chapter 9 covers File System Implementations Publisher's info on these, including tables of contents, at: http://www.pearsonptg.com/book_detail/0,3771,0130224960,00.html http://www.pearsonptg.com/book_detail/0,3771,0131019082,00.html ttfn, Tony To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message