How to modify the script when I plug my USB Key?

Ben Stringer ben at burbong.com
Thu Jan 15 11:57:13 UTC 2004


On Thu, 2004-01-15 at 20:24, Coume - Lubox.com wrote:
> Hello,
> I have a PQI 256Mo USB Key. I always have some problem to mount it, but
> I discovered when I was using MDK that to mount it, I have to type:
> mount /dev/sda /mnt/flash
> 
> But when I plug it, FC1 automatically add this command line to fstab:
> /dev/sda1 /mnt/flash auto noauto,owner,kudzu 0 0
> 
> Is it possible to modify the script in order that FC1 add a modified
> line with sda instead of sda1?

I learnt something new looking into this one!

Have a look at /etc/updfstab.conf.default

It is used to pattern match dynamically mountable devices and add an
appropriate entry into /etc/fstab for them. The tag "kudzu" is to
indicate that entry was made by "updfstab".

By setting the option "partition=0" in the appropriate entry in this
file, you should get the result you are after.

man updfstab

for more info.

Cheers, Ben
-- 
.O.    Ben Stringer
..O    ben at burbong.com
OOO    linux|java|majitek|gnu





More information about the fedora-list mailing list