[expert] Sony Micro Vault 128 - drakupdate_fsta loooooooop

2003-01-15 Thread oscar
Hi all,
I wrote to the list about sony micro vault 128 usb storage. Now I have it 
working in my LM 8.2 thanks to Todd with modprobe sd_mod.
Now I have tested it in my LM 9.0 computer and I presume that we have a little 
problem with drakupdate_fsta.
I wrote in /etc/modules.conf this line:
alias /dev/sda sd_mod
This is working ok in LM 8.2.
But when I plugged the Sony Micro Vault to the usb port, and when I did "ls 
/dev/sda" I observed something like this in my /var/log/messages:
-
Jan 16 00:01:38 localhost kernel: SCSI device sda: 256000 512-byte hdwr 
sectors (131 MB)
Jan 16 00:01:38 localhost kernel: sda: Write Protect is off
Jan 16 00:01:38 localhost kernel:  /dev/scsi/host1/bus0/target0/lun0: p1 p2 p3 
p4
Jan 16 00:01:38 localhost kernel: USB Mass Storage support registered.
Jan 16 00:01:41 localhost kernel: SCSI device sda: 256000 512-byte hdwr 
sectors (131 MB)
Jan 16 00:01:41 localhost kernel: sda: Write Protect is off
Jan 16 00:01:41 localhost kernel:  /dev/scsi/host1/bus0/target0/lun0: p1 p2 p3 
p4
Jan 16 00:01:44 localhost kernel: SCSI device sda: 256000 512-byte hdwr 
sectors (131 MB)
Jan 16 00:01:44 localhost kernel: sda: Write Protect is off
Jan 16 00:01:44 localhost kernel:  /dev/scsi/host1/bus0/target0/lun0: p1 p2 p3 
p4
Jan 16 00:01:46 localhost kernel: SCSI device sda: 256000 512-byte hdwr 
sectors (131 MB)
Jan 16 00:01:46 localhost kernel: sda: Write Protect is off
Jan 16 00:01:46 localhost kernel:  /dev/scsi/host1/bus0/target0/lun0: p1 p2 p3 
p4
Jan 16 00:01:49 localhost kernel: SCSI device sda: 256000 512-byte hdwr 
sectors (131 MB)
Jan 16 00:01:49 localhost kernel: sda: Write Protect is off
Jan 16 00:01:49 localhost kernel:  /dev/scsi/host1/bus0/target0/lun0: p1 p2 p3 
p4
Jan 16 00:01:52 localhost kernel: SCSI device sda: 256000 512-byte hdwr 
sectors (131 MB)
Jan 16 00:01:52 localhost kernel: sda: Write Protect is off
Jan 16 00:01:52 localhost kernel:  /dev/scsi/host1/bus0/target0/lun0: p1 p2 p3 
p4
Jan 16 00:01:55 localhost kernel: SCSI device sda: 256000 512-byte hdwr 
sectors (131 MB)
Jan 16 00:01:55 localhost kernel: sda: Write Protect is off
Jan 16 00:01:55 localhost kernel:  /dev/scsi/host1/bus0/target0/lun0: p1 p2 p3 
p4
and so on...
My computer was in a loop, and when I ran "top", I discovered a program which 
was running over an over again eating 50% of cpu time: drakupdate_fsta.
How I stoped the loop? I should rename /usr/sbin/drakupdate_fsta to 
drakupdate_fsta.deactivated. The loop finished inmediatly.
And now this is the problem: If I want to use my sony mv128, I can't have a 
functional drakupdate_fsta.
My questions:
1. How can I avoid the loop with drakupdate_fsta when I plug in the sony mv 
128?
2. Is drakupdate_fsta a critical component of LM 9.0? Can my computer with LM 
9.0 live without it?
Thank you,
-- 
Óscar Santacreu
Usuario de Linux Registrado #227443
http://counter.li.org/
Windows Free Environment


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Sony Micro Vault 128 - drakupdate_fsta loooooooop

2003-01-15 Thread Todd Lyons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

oscar wrote on Thu, Jan 16, 2003 at 12:55:01AM +0100 :
> Hi all,
> I wrote to the list about sony micro vault 128 usb storage. Now I have it 
> working in my LM 8.2 thanks to Todd with modprobe sd_mod.
> Now I have tested it in my LM 9.0 computer and I presume that we have a little 
> My computer was in a loop, and when I ran "top", I discovered a program which 
> was running over an over again eating 50% of cpu time: drakupdate_fsta.
> How I stoped the loop? I should rename /usr/sbin/drakupdate_fsta to 

Well that just shows how much the kernel changed inbetween 8.2 and 9.0.
Remove that line from /etc/modules.conf and that will get rid of the
loop.  As for how to make it automatic, look in /etc/hotplug/usb
directory.  You'll have to put a script there that will modprobe that
module in.

Blue skies...   Todd
- -- 
| MandrakeSoft USA | Sometimes you get what you want. |
| http://www.mandrakesoft.com  | Sometimes you get experience.|
| http://www.mandrakelinux.com |--unknown origin  |
   Cooker Version mandrake-release-9.1-0.1mdk Kernel 2.4.20-2mdk
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+Jfvnlp7v05cW2woRAoOEAJ99/w0DA3emN0HDdRSUXszATjBKiwCfSrlu
auIiR7Gs2FRX9we1CspAzS8=
=J/LT
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Sony Micro Vault 128 - drakupdate_fsta loooooooop

2003-01-17 Thread caret
El Jue 16 Ene 2003 01:25, Todd Lyons escribió sabiamente:
> oscar wrote on Thu, Jan 16, 2003 at 12:55:01AM +0100 :
> > Hi all,
> > I wrote to the list about sony micro vault 128 usb storage. Now I have it
> > working in my LM 8.2 thanks to Todd with modprobe sd_mod.
> > Now I have tested it in my LM 9.0 computer and I presume that we have a
> > little My computer was in a loop, and when I ran "top", I discovered a
> > program which was running over an over again eating 50% of cpu time:
> > drakupdate_fsta. How I stoped the loop? I should rename
> > /usr/sbin/drakupdate_fsta to
>
> Well that just shows how much the kernel changed inbetween 8.2 and 9.0.
> Remove that line from /etc/modules.conf and that will get rid of the
> loop.  As for how to make it automatic, look in /etc/hotplug/usb
> directory.  You'll have to put a script there that will modprobe that
> module in.
>
> Blue skies... Todd

I already tried it. The result is the same. When I plug the micro vault, the 
loop start. I can use the micro vault only if I rename drakupdate_fsta. Then, 
will I have any problem if I rename drakupdate_fsta?
Now, this is my solution:

/etc/hotplug/usb.usermap:
sony_microvault   0x0003  0x054c   0x01050x   0x  0x00 
0x000x000x000x00 0x00   
0x

/etc/hotplug/usb/sony_microvault:
#! /bin/sh
if [ -t -o ! -x /usr/bin/logger ]; then
mesg () {
echo "$@"
}
else
mesg () {
/usr/bin/logger -t $0 "$@"
}
fi
mv /usr/sbin/drakupdate_fsta /usr/sbin/drakupdate_fsta.off
modprobe sd_mod
mesg Module sd_mod running. Now /dev/sda is here.
echo "#!/bin/bash" > $REMOVER
echo "if [ -t -o ! -x /usr/bin/logger ]; then" >> $REMOVER
echo "mesg () {" >> $REMOVER
echo "echo \"\$@\"" >> $REMOVER
echo "}" >> $REMOVER
echo "else" >> $REMOVER
echo "mesg () {" >> $REMOVER
echo "/usr/bin/logger \"\$@\"" >> $REMOVER
echo "}" >> $REMOVER
echo "fi" >> $REMOVER
echo "modprobe -r sd_mod" >> $REMOVER
echo "mesg Module sd_mod removed." >> $REMOVER
echo "mv /usr/sbin/drakupdate_fsta.off /usr/sbin/drakupdate_fsta" >> $REMOVER
chmod a+x $REMOVER 

Thank you
-- 
Óscar Santacreu
Usuario de Linux Registrado #227443
http://counter.li.org/
Windows Free Environment



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com