Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 1999 14:18:29 -0700 (PDT)
From:      Bryce Newall <data@dreamhaven.net>
To:        FreeBSD Questions List <freebsd-questions@freebsd.org>
Subject:   fsck'ing an ext2fs drive
Message-ID:  <Pine.NEB.4.10.9906241414070.68413-100000@ds9.dreamhaven.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.4.10.9906241414070.68413-100000>