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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx
OOO    linux|java|majitek|gnu




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux