On Wednesday, January 04, 2006 @ 12:51 PM, I wrote:
On Wednesday, January 04, 2006 @ 11:02 AM, Carlos Robinson wrote:
The Tuesday 2006-01-03 at 18:01 -0900, Greg Wallace wrote:
I am getting errors in my system log related to this package because it tries to mount my floppy drive every time I boot. Is this normal?
Yes.
Is there some way to change a setting to tell Hal not to try to mount my floppy, since there is nothing in it? Here's what I'm seeing --
You can disable hald from trying to automount the floppy, and instead mount it manually when you need it, as posted here:
| Date: Fri, 13 May 2005 02:30:19 +0200 (CEST) | From: Carlos E. R. | Subject: Re: [SLE] automounting of Floppy 9.3 [solved: NOT automounting] | X-Message-Number-for-archive: 236108
last two, but all are related to this same problem. I'm not sure I even need this package,
Yes, you do need it; it maintains a sort of unified hardware database.
- -- Cheers, Carlos Robinson
Nice to see it's such an easy tool to work with. I'm just going to jump right in, lay the code, test it out, etc. Thanks for the information/warning.
Greg Wallace
All joking aside, I think I'll probably just wait until some future release of SuSE and hope that -- a) HAL turns off fd0 as a default auto-sumbmount b) the HAL folks create some simple parameter file that you can use to specify defaults/overrides for the automatic submounts (what a concept) c) SuSE adds a panel for it under YaST (why not dream big?) Meanwhile, I'll keep my fingers crossed that, in the mean time, this thing doesn't wear out my floppy drive trying to mount it when it's empty, which is every time I boot up (who wants the floppy read at boot?). Greg Wallace
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2006-01-04 at 19:41 -0900, Greg Wallace wrote:
Nice to see it's such an easy tool to work with. I'm just going to jump right in, lay the code, test it out, etc. Thanks for the information/warning.
All joking aside, I think I'll probably just wait until some future release of SuSE and hope that --
Huh? I thought you were serious, not joking - there is no joking smiley up there. And I did find easy to dissable floppy automount, once I discovered how to do it. That was 9.3, of course, I heard 10.0 changed a bit, but also heard there is a note in the sdb or the opensuse web page. Explain where you are stuck, and I'll try to help.
a) HAL turns off fd0 as a default auto-sumbmount
Don't dream. Automount is here to stay, because newbies from the windows world don't wan't to learn good habits :-p
b) the HAL folks create some simple parameter file that you can use to specify defaults/overrides for the automatic submounts (what a concept)
I would be happy if they created a config editor for their type of config syntax. Not only for the floppy, but for every thing there.
c) SuSE adds a panel for it under YaST (why not dream big?)
Yeap.
Meanwhile, I'll keep my fingers crossed that, in the mean time, this thing doesn't wear out my floppy drive trying to mount it when it's empty, which is every time I boot up (who wants the floppy read at boot?).
You might. If there is something there, you might want it mounted. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDvmF8tTMYHG2NR9URAtc/AJ0eYmQkX3BnLuruSls5WVVh98rfqgCfZVGP YrpfVobRqJi/ll+v4R6sWNU= =iWNU -----END PGP SIGNATURE-----
On Friday, January 06, 2006 @ 6:24 AM, Carlos Robinson wrote:
The Wednesday 2006-01-04 at 19:41 -0900, Greg Wallace wrote:
Nice to see it's such an easy tool to work with. I'm just going to jump right in, lay the code, test it out, etc. Thanks for the information/warning.
All joking aside, I think I'll probably just wait until some future release of SuSE and hope that --
Huh? I thought you were serious, not joking - there is no joking smiley up there. And I did find easy to dissable floppy automount, once I discovered how to do it.
That was 9.3, of course, I heard 10.0 changed a bit, but also heard there is a note in the sdb or the opensuse web page.
Explain where you are stuck, and I'll try to help.
a) HAL turns off fd0 as a default auto-sumbmount
Don't dream. Automount is here to stay, because newbies from the windows world don't wan't to learn good habits :-p
b) the HAL folks create some simple parameter file that you can use to specify defaults/overrides for the automatic submounts (what a concept)
I would be happy if they created a config editor for their type of config syntax. Not only for the floppy, but for every thing there.
c) SuSE adds a panel for it under YaST (why not dream big?)
Yeap.
Meanwhile, I'll keep my fingers crossed that, in the mean time, this
thing
doesn't wear out my floppy drive trying to mount it when it's empty, which is every time I boot up (who wants the floppy read at boot?).
You might. If there is something there, you might want it mounted.
- -- Cheers, Carlos Robinson
OK, you talked me into it. I took up the challenge. Things have changed a bit in SuSE 10. The directory structure has changed, for one thing. I dug down into it and located the file that needed to be modified at -- /usr/share/hal/fdi/policy/10osvendor/90-block-subfs.fi Here's what was in there -- <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="volume.policy.should_mount" bool="true"> <match key="@block.storage_device:storage.policy.should_mount" bool="true"> <append key="info.callouts.add" type="strlist">hald-subfs-mount</append> <append key="info.callouts.remove" type="strlist">hald-subfs-mount</append> </match> </match> <match key="storage.policy.should_mount" bool="true"> <match key="storage.no_partitions_hint" bool="true"> <append key="info.callouts.add" type="strlist">hald-subfs-mount</append> <append key="info.callouts.remove" type="strlist">hald-subfs-mount</append> </match> </match> </device> </deviceinfo> I took a stab at it and modified it slightly to look like the following (adding a new XML "match" block at the end of the "storage policy" block -- <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="volume.policy.should_mount" bool="true"> <match key="@block.storage_device:storage.policy.should_mount" bool="true"> <append key="info.callouts.add" type="strlist">hald-subfs-mount</append> <append key="info.callouts.remove" type="strlist">hald-subfs-mount</append> </match> </match> <match key="storage.policy.should_mount" bool="true"> <match key="storage.no_partitions_hint" bool="true"> <append key="info.callouts.add" type="strlist">hald-subfs-mount</append> <append key="info.callouts.remove" type="strlist">hald-subfs-mount</append> </match> <!-- Add new block to stop automounting of floppy at startup --> <match key="block.device" string="/dev/fd0"> <merge key="storage.policy.should_mount" type="bool">false </merge> </match> <!-- End new block --> </match> </device> </deviceinfo> Not only did it work, but I actually managed to code it up correctly the first time (no typos, etc.), unusual for me. The first time I re-booted, I got the following message in the log -- Linux hal-subfs-mount[5351]: By hald-subfs-mount created dir /media/floppy got removed I re-booted a second time and that message went away. Looks like all is now well. Thanks for pointing me to your example. I still wonder about having this dropped in automatically by the installation process with it not having any easier way to be tweaked than laying code. Have floppies become so archaic that people don't even think about them when they write new applications? Hard to believe anyone would want an automount on their floppy every time they boot as a default. Makes me think the guys coding this didn't have floppies on their machines. Greg Wallace
participants (2)
-
Carlos E. R.
-
Greg Wallace