[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mandrake-cooker
Subject:    [Cooker] [Bug 10833] [hotplug] NEEDINFO: drakupdate_fstab not started sometimes, FIX
From:       "[yann.liebaert]" <bugzilla () qa ! linux-mandrake ! com>
Date:       2005-03-23 7:27:43
Message-ID: bug10833.20050323072743.470469 () qa ! linux-mandrake ! com
[Download RAW message or body]

User ID: 11479, 6 bugs reported (3 fixed, 1 duplicate, 0 invalid), 40 comments.

http://qa.mandrakesoft.com/show_bug.cgi?id=10833





------- Additional Comments From yann.liebaert@free.fr  2005-03-23 08:27 -------
I have haldaemon running, but I am still obliged to mount manually my key. 
Below is the /var/log/messages if it helps.

Mar 23 08:12:44 localhost kernel: usb 3-5: new high speed USB device using
ehci_hcd and address 5
Mar 23 08:12:44 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage
devices
Mar 23 08:12:49 localhost kernel:   Vendor: I-Stick2  Model: IntelligentStick 
Rev: 2.00
Mar 23 08:12:49 localhost kernel:   Type:   Direct-Access                     
ANSI SCSI revision: 02
Mar 23 08:12:49 localhost kernel: sda: Unit Not Ready, sense:
Mar 23 08:12:49 localhost kernel: : Current: sense key: Unit Attention
Mar 23 08:12:49 localhost kernel:     Additional sense: Not ready to ready
change, medium may have changed
Mar 23 08:12:49 localhost kernel: sda : READ CAPACITY failed.
Mar 23 08:12:49 localhost kernel: sda : status=1, message=00, host=0, driver=08
Mar 23 08:12:49 localhost kernel: sd: Current: sense key: Unit Attention
Mar 23 08:12:49 localhost kernel:     Additional sense: Not ready to ready
change, medium may have changed
Mar 23 08:12:49 localhost kernel: sda: Write Protect is off
Mar 23 08:12:49 localhost kernel: sda: assuming drive cache: write through
Mar 23 08:12:49 localhost kernel: SCSI device sda: 511488 512-byte hdwr sectors
(262 MB)
Mar 23 08:12:49 localhost kernel: sda: Write Protect is off
Mar 23 08:12:49 localhost kernel: sda: assuming drive cache: write through
Mar 23 08:12:49 localhost kernel:  /dev/scsi/host1/bus0/target0/lun0: unable to
read partition table
Mar 23 08:12:49 localhost kernel: Attached scsi removable disk sda at scsi1,
channel 0, id 0, lun 0
Mar 23 08:12:49 localhost kernel: Attached scsi generic sg0 at scsi1, channel 0,
id 0, lun 0,  type 0
Mar 23 08:12:49 localhost scsi.agent[15917]: disk at
/devices/pci0000:00/0000:00:02.2/usb3/3-5/3-5:1.0/host1/target1:0:0/1:0:0:0


-- 
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


------- Reminder: -------
assigned_to: flepied@mandrakesoft.com
status: NEEDINFO
distribution: cooker
creation_date: 
description: 
Sometimes drakupdate_fstab will be started after inserting an USB stick,
sometimes not!
I dont't know the reason, but I know how to fix this situation.
After inserting the stick, you have access the device. After the first access,
drakupdate_fstab will be called. So, insert after the line

   modprobe $MODULE

in /etc/hostplug/scsi.agent the following code:

	if [ $TYPE = "disk" ];then
	(
	    IFS=':'
	    set -- ${DEVPATH##*/}
	    mesg "jh: access /dev/scsi/host$1/bus$2/target$3/lun$4/disc"
	    head -c1 /dev/scsi/host$1/bus$2/target$3/lun$4/disc >/dev/null
	)
	fi

jh

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic