From owner-freebsd-questions Tue Oct 13 01:32:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA21516 for freebsd-questions-outgoing; Tue, 13 Oct 1998 01:32:18 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ns.wan (trltech.demon.co.uk [194.222.7.191]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA21510 for ; Tue, 13 Oct 1998 01:32:16 -0700 (PDT) (envelope-from richard@jezebel.demon.co.uk) Received: from rdls.dhcp.sw.wan (rdls.dhcp.sw.wan [192.9.201.75]) by ns.wan (8.8.8/8.8.8) with SMTP id JAA14037; Tue, 13 Oct 1998 09:34:35 +0100 (BST) (envelope-from richard@jezebel.demon.co.uk) Received: from [127.0.0.1] by rdls.dhcp.sw.wan with SMTP id 08284380; Tue, 13 Oct 1998 08:32:21 +0000 Message-ID: <36231015.4C59E79D@jezebel.demon.co.uk> Date: Tue, 13 Oct 1998 09:32:21 +0100 From: Richard Smith Organization: http://www.trltech.co.uk X-Mailer: Mozilla 4.05 [en] (WinNT; I) MIME-Version: 1.0 To: Doug White CC: Questions FreeBSD Subject: Re: Should a corrupt floppy disk cause a panic? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug White wrote: > > On Mon, 12 Oct 1998, Richard Smith wrote: > > > Hello, > > > > While reading a file off a particular msdos floppy disk I get: > > > > panic: isa_dmacheck: no physical page present > > syncing disks... panic: msdosfs_lock: locking against myself > > > > ...and the system reboots. > > You ARE remembering to dismount your disks before ejecting them, right? I don't get that far... The sequence of events from a clean boot and logging in as root, are: 1) insert floppy 2) mount_msdos /dev/fd0 /floppy 3) cat /floppy/etc.tgz 4) panic... I must reiterate that the floppy disk's image is indeed bad, dos chkdsk reports that the first allocation unit of the file in question is invalid. With good floppy disks, I have no problem. The problem I have is not with the fact that step 3) fails, but the severity of the failure mode. Should msdosfs handle the failure mode rather than panicking? ie. Is it a bug or a feature? :) Thanks for responding, Richard. > > Doug White > Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve > http://gladstone.uoregon.edu/~dwhite | www.freebsd.org -- Richard Smith Assistant Chief Engineer TRL Technology Limited To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message