From owner-freebsd-questions@FreeBSD.ORG Tue Oct 22 21:00:08 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CE58489C for ; Tue, 22 Oct 2013 21:00:08 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 934512824 for ; Tue, 22 Oct 2013 21:00:08 +0000 (UTC) Received: from r56.edvax.de (port-92-195-117-74.dynamic.qsc.de [92.195.117.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 6E35A27700; Tue, 22 Oct 2013 23:00:06 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r9ML00uB004291; Tue, 22 Oct 2013 23:00:00 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 22 Oct 2013 23:00:00 +0200 From: Polytropon To: Subject: Re: click-click in floppy disk drive Message-Id: <20131022230000.9bfa7add.freebsd@edvax.de> In-Reply-To: <20131021135605.DSZ95987@ms5.mc.surewest.net> References: <20131021135605.DSZ95987@ms5.mc.surewest.net> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Oct 2013 21:00:09 -0000 On Mon, 21 Oct 2013 13:56:05 -0700 (PDT), leeoliveshackelford@surewest.net wrote: > Good afternoon, dear FreeBSD enthusiast. I have recently > installed FreeBSD 9.1 on my Hewlett-Packard Z220 workstation. > I added a Sabrent u.s.b. floppy drive. Two days ago, I ran > the "periodic" program. The "periodic" facility is just a collection of scripts for cron that get run at specific intervals. Are you referencing to the stock system's /etc/periodic scripts or did you add any custom scripts? > Ever since then, the floppy drive clicks once every 2 seconds, > followed by a double blink of the hard drive light. This indicates a disk access. Do you maybe have an umount pending? You can physically remove the disk while it is mounted. Maybe something still tries to determine free disk space (or something like that) for a floppy that is no longer in the drive? Check the output of "lsof" as well as of "mount -v" for any suspicious entries. I've tried with an IBM USB floppy disk drive: ugen2.2: at usbus2 umass1: on usbus2 da3 at umass-sim1 bus 1 scbus4 target 0 lun 0 da3: Removable Direct Access SCSI-0 device da3: 1.000MB/s transfers da3: Attempt to query device size failed: NOT READY, Medium not present When given the null command, the device doesn't do anything; "true > /dev/da3" and ": > /dev/da3" don't make it show any activity. If I insert a disk, the drive gets active and the null command at least causes some action. Of course I can then access the floppy in the drive. Without any access, the drive will not show any further activity, no matter if there's a floppy inside or not. > The is no disk in the floppy drive. That could be the reason. Try inserting a floppy and see if it satisfies the system. :-) > Does anyone know how to stop this annoyance? I'd say the easiest way is to disconnect the drive, and then later on reconnect it. If that's not possible, you could use the "camcontrol" command to reset the channel where the floppy drive is attached to. Check "camcontrol devlist" to see which channel it is. Example: # camcontrol devlist at scbus0 target 0 lun 0 (pass0,cd0) at scbus0 target 1 lun 0 (pass1,cd1) at scbus3 target 0 lun 0 (pass2,da0) at scbus3 target 0 lun 1 (pass3,da1) at scbus3 target 0 lun 2 (pass4,da2) at scbus4 target 0 lun 0 (pass5,da3) In my case, I would have to "camcontrol reset 4:0:0". Also see "man camcontrol" for details, for example to find other commands like "stop" that could be sent to the floppy drive to make it stop clicking. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...