LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-08-2008, 01:23 PM   #1
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
hald and clicking floppy drive


I just finished a fresh install of slackware 12.1 on a new system, everything seems to have gone smoothly, except that the floppy drive clicks every few seconds.
syslog says:
"kernel: end_request: I/O error, dev fd0, sector 0
last message repeated 16 times"
Short-term way to fix this is I go and run `/etc/rc.d/rc.hald stop`, but I don't think this a great long-term solution.

I don't know much about HAL configs, and this is the first time I've seen this problem. Any tips?
 
Old 11-09-2008, 10:22 PM   #2
Alstare
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 79

Rep: Reputation: 15
Is unpluging/disabling the floppy drive an option?

I can't see the use for such an outdated piece of hardware being of much use these days honestly aside from slowing bootup time.
 
Old 11-10-2008, 03:05 AM   #3
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Disabling it in the bios is another option.
Or do you still actually use your floppy drive?
I think I haven't used mine for years, now that everyone has pendrives and CD/DVD media are so cheap...
 
Old 11-10-2008, 09:35 AM   #4
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Same thing happened to me on my last Slack install. Couldn't be bothered to figure out what was going on so I unplugged it.... It's been over 3 years since I used it anyway.
 
Old 11-10-2008, 01:16 PM   #5
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 921

Rep: Reputation: 92
Powertop had suggested that I do

/usr/bin/hal-disable-polling --device /dev/hda

to stop hald from polling my CDROM device. Maybe you can try this with your floppy too (using the appropriate drive letter of course). Putting it in rc.local should to do it at every boot.
 
Old 11-10-2008, 02:36 PM   #6
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
yea, that's a good idea. It should write an /etc/hal/fdi file or something like that so it stays global...
 
Old 11-10-2008, 11:06 PM   #7
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 30
I tried
`/usr/bin/hal-disable-polling --device /dev/fd0`
And I get back 'Polling is already disabled on the given drive.'

I looked at the fdi files in /usr/share/hal/fdi/ and didn't find many references to my floppy drive.
Actually, here's the only reference I found:
in /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi
Code:
     <!-- this is to be able to mount media in drives we cannot poll, e.g. IDE Zip Drives and PC style floppy drives -->
    <match key="storage.media_check_enabled" bool="false">
      <match key="storage.no_partitions_hint" bool="true">

        <append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.Volume</append>

        <append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Mount</append>
        <append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">ssas</append>
	<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">mount_point fstype extra_options</append>
        <append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-mount</append>

        <append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Unmount</append>
        <append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">as</append>
	<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">extra_options</append>
        <append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-unmount</append>

        <append key="org.freedesktop.Hal.Device.Volume.method_names" type="strlist">Eject</append>
        <append key="org.freedesktop.Hal.Device.Volume.method_signatures" type="strlist">as</append>
	<append key="org.freedesktop.Hal.Device.Volume.method_argnames" type="strlist">extra_options</append>
        <append key="org.freedesktop.Hal.Device.Volume.method_execpaths" type="strlist">hal-storage-eject</append>

        <!-- allow these mount options for all file systems -->
	<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
          <append key="volume.mount.valid_options" type="strlist">ro</append>
          <append key="volume.mount.valid_options" type="strlist">sync</append>
          <append key="volume.mount.valid_options" type="strlist">dirsync</append>
          <append key="volume.mount.valid_options" type="strlist">noatime</append>
          <append key="volume.mount.valid_options" type="strlist">nodiratime</append>
          <append key="volume.mount.valid_options" type="strlist">noexec</append>
          <append key="volume.mount.valid_options" type="strlist">quiet</append>
          <append key="volume.mount.valid_options" type="strlist">remount</append>
	  <append key="volume.mount.valid_options" type="strlist">exec</append>
          <!-- As this is removable media give some leeway -->
	  <append key="volume.mount.valid_options" type="strlist">utf8</append>
	  <append key="volume.mount.valid_options" type="strlist">shortname=</append>
	  <append key="volume.mount.valid_options" type="strlist">codepage=</append>
	  <append key="volume.mount.valid_options" type="strlist">iocharset=</append>
	  <append key="volume.mount.valid_options" type="strlist">umask=</append>
	  <append key="volume.mount.valid_options" type="strlist">uid=</append>
	</match>
	<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="FreeBSD">
	  <append key="volume.mount.valid_options" type="strlist">ro</append>
	  <append key="volume.mount.valid_options" type="strlist">noexec</append>
	  <append key="volume.mount.valid_options" type="strlist">noatime</append>
	</match>
      </match>
    </match>

The line <match key="storage.media_check_enabled" bool="false"> is consistent with something I saw here:
http://fossplanet.com/freedesktop.ha...loppy-support/

...but when I actually try to query that property, I get no result:
#hal-get-property --udi /org/freedesktop/Hal/devices/platform_floppy_0 --key storage.media_check_enabled
error: libhal_device_get_property_type: org.freedesktop.Hal.NoSuchProperty: No property storage.media_check_enabled on device with id /org/freedesktop/Hal/devices/platform_floppy_0

Last edited by Lord Zoltar; 11-10-2008 at 11:09 PM.
 
Old 11-12-2008, 01:07 AM   #8
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 921

Rep: Reputation: 92
Sorry I don't know much enough about HAL to say what to do next. The first line in your quote says floppies are not polled, but you say killing hald stops the clicks, right?
 
Old 11-13-2008, 08:15 PM   #9
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 30
Ummm so I upgraded udev to the version in -current last night, and now it works fine. Weird. ...but at least it works now.
 
  


Reply

Tags
fd0, floppy, hal, hald


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hard drive clicking spooon General 6 01-30-2006 04:39 PM
clicking hard drive slinky2004 Linux - Hardware 3 12-31-2005 09:10 PM
Clicking hard drive and being cracked? BajaNick General 4 09-21-2004 07:40 PM
Hard drive clicking away while surfing BajaNick Linux - Security 2 01-03-2004 03:53 PM
hard drive clicking ranger12002 General 12 07-20-2003 05:22 PM


All times are GMT -5. The time now is 02:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration