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