From owner-freebsd-questions Thu Jun 24 14:18:36 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ds9.dreamhaven.org (dt0f4nfc.san.rr.com [24.94.22.252]) by hub.freebsd.org (Postfix) with ESMTP id E299A153E4 for ; Thu, 24 Jun 1999 14:18:29 -0700 (PDT) (envelope-from data@ds9.dreamhaven.org) Received: from data (helo=localhost) by ds9.dreamhaven.org with local-esmtp (Exim 2.12 #2) id 10xGtB-000KOb-00 for freebsd-questions@freebsd.org; Thu, 24 Jun 1999 14:18:29 -0700 Date: Thu, 24 Jun 1999 14:18:29 -0700 (PDT) From: Bryce Newall To: FreeBSD Questions List Subject: fsck'ing an ext2fs drive Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greetings all, I have a Linux system whose root drive went belly-up. I am attempting to use one of the /home hard drives in a FreeBSD system. I'm running FreeBSD 3.1-STABLE, and have EXT2FS support compiled into the kernel. When I go to mount the drive, I get the following error: [131]root@calico:/root # mount -t ext2fs /dev/da4s1 /home2 ext2fs: /dev/da4s1: Operation not permitted Correspondingly, this message appears in /var/log/messages: Jun 24 15:15:39 calico /kernel: WARNING: R/W mount denied. Filesystem is not clean - run fsck Run fsck -- that much I can do. However, when I try to run fsck on the drive, I get this: [133]root@calico:/root # fsck /dev/da4s1 ** /dev/rda4s1 BAD SUPER BLOCK: MAGIC NUMBER WRONG ioctl (GCINFO): Invalid argument fsck: /dev/rda4s1: can't read disk label That's the one I'm concerned about. I did run fdisk and verified that da4s1 is the correct partition. I also noticed that, when running the labeler, nothing shows up. However, I assumed that was because there are no FreeBSD partitions on the drive. The best choice would, of course, be to fsck the under Linux, since that's its native partition. Unfortunately, that's not an option for me right now. Is there a way to "force" an fsck on that drive, or am I S.O.L. here? Thanks! (Please cc: my email address on any replies to this, as I am not subscribed to the list.) ********************************************************************** * Bryce Newall * Email: data@dreamhaven.net * * WWW: http://www.dreamhaven.net/~data * ICQ: 32620929 * * "Insanity takes its toll. Please have exact change." * ********************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message