Re: [gentoo-user] confused udev?

2005-11-23 Thread Jorge Almeida
On Tue, 22 Nov 2005, Richard Fish wrote:
 
 Ok, do dmesg and /proc/partitions agree that there is a partition
 there?  If not, then the problem is that the kernel is not recognizing
No...
 your partition table.  I would suggest:
 
 insert the key
 dd if=/dev/zero of=/dev/sda bs=512 count=1
 remove then re-insert the key
 fdisk /dev/sdb
 create single partition, type 'b'
 mkfs.vfat -n MYKEY -F 32 /dev/sda1
 
Done it. All well, apparently. But then I remove the key and insert it
again. No joy. (See dmesg). I remove it and insert it again. It works,
this time. This is just totally unreliable. I guess I'll boot from
KNOPPIX, to see whether it may be a kernel problem...
 
(...)
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x2a R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
Attached scsi removable disk sda at scsi4, channel 0, id 0, lun 0
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (1:0)
usb-storage: scsi cmd done, result=0x4
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (2:0)
usb-storage: scsi cmd done, result=0x4
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (3:0)
usb-storage: scsi cmd done, result=0x4
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (4:0)
usb-storage: scsi cmd done, result=0x4
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (5:0)
usb-storage: scsi cmd done, result=0x4
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (6:0)
usb-storage: scsi cmd done, result=0x4
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (7:0)
usb-storage: scsi cmd done, result=0x4
usb-storage: *** thread sleeping.
usb-storage: device scan complete
ieee1394: Current remote IRM is not 1394a-2000 compliant, resetting...
ieee1394: Error parsing configrom for node 0-00:1023
ieee1394: Node changed: 0-00:1023 - 0-01:1023
ieee1394: Node resumed: ID:BUS[0-00:1023]  GUID[0050770e00071002]
scsi5 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
  Vendor: Maxtor 6  Model: L250R0Rev: 
  Type:   Direct-Access-RBC  ANSI SCSI revision: 04
SCSI device sdb: 490234752 512-byte hdwr sectors (251000 MB)
sdb: asking for cache data failed
sdb: assuming drive cache: write through
SCSI device sdb: 490234752 512-byte hdwr sectors (251000 MB)
sdb: asking for cache data failed
sdb: assuming drive cache: write through
 sdb: sdb1
Attached scsi disk sdb at scsi5, channel 0, id 0, lun 0
 
Jorge 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-23 Thread Richard Fish
On 11/23/05, Jorge Almeida [EMAIL PROTECTED] wrote:
 this time. This is just totally unreliable. I guess I'll boot from
 KNOPPIX, to see whether it may be a kernel problem...

Yes, do that.  And if it works I guess you will need to start
comparing the Knoppix kernel configuration to yours.  Maybe your
hardware requires ACPI and/or IO-APIC support to function
correctly...I don't know.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-23 Thread Jorge Almeida
On Wed, 23 Nov 2005, Richard Fish wrote:

 On 11/23/05, Jorge Almeida [EMAIL PROTECTED] wrote:
  this time. This is just totally unreliable. I guess I'll boot from
  KNOPPIX, to see whether it may be a kernel problem...
 
 Yes, do that.  And if it works I guess you will need to start
 comparing the Knoppix kernel configuration to yours.  Maybe your
 hardware requires ACPI and/or IO-APIC support to function
 correctly...I don't know.
 
ACPI didn't seem to change anything. But I did reformat the key with
fdisk, making a new empty DOS partition table and then making a
partition and fs following your instructions. It seems to be OK now---at
least  both devices are recognized when I insert the key (meaning: no
need to insert it twice). Maybe the problem was with the original
partition table (and zeroing the first block didn't fix it...).

Thank you for all your support.

Jorge 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-22 Thread Richard Fish
On 11/22/05, Jorge Almeida [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] ~ $ fdisk -l /dev/plextor_memstick
 Disk /dev/plextor_memstick: 1050 MB, 1050934784 bytes
 129 heads, 19 sectors/track, 837 cylinders
 Units = cylinders of 2451 * 512 = 1254912 bytes

 Device Boot  Start End  Blocks   Id  
 System
 /dev/plextor_memstick1   *   1 838 1026294e  
 W95 FAT16 (LBA)
 Partition 1 has different physical/logical endings:
  phys=(842, 128, 19) logical=(837, 58, 18)

 So, there is really a partition. This is the original partitioning. I
 didn't change it because I want to keep it vfat, in case I need to use
 it on a Mac (or even on a Windows PC, who knows?).

Ok, do dmesg and /proc/partitions agree that there is a partition
there?  If not, then the problem is that the kernel is not recognizing
your partition table.  I would suggest:

insert the key
dd if=/dev/zero of=/dev/sda bs=512 count=1
remove then re-insert the key
fdisk /dev/sdb
create single partition, type 'b'
mkfs.vfat -n MYKEY -F 32 /dev/sda1

FAIR WARNING: the above _will_ destroy all data on the key!!

After this, I things should work normally...I hope.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-21 Thread Richard Fish
On 11/20/05, Jorge Almeida [EMAIL PROTECTED] wrote:
 On Sat, 19 Nov 2005, Richard Fish wrote:
 
  According to the dmesg output you posted earlier, your memory stick is
  not partitioned.  This is ok, some are, some are not.  You can confirm
  this by taking a look at /proc/partitions when it is inserted, or the
  output of fdisk -l.  So, only getting /dev/plextor_memstick is
  probably correct, and you should mount that, not plextor_memstick1.
 
 I'm out of office for the weekend, so I can't insert the stick and
 confirm. But the stick is partitioned with a unique partition with vfat.
 I tried to mount it and mount gave the no such device complaint. But I
 may be forgetting something.

Earlier you posted:

usb 1-7: reset high speed USB device using ehci_hcd and address 4
 Vendor: PLEXTOR   Model: PlexFlash-2   Rev: 5.02
   Type:   Direct-Access  ANSI SCSI revision: 00
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
   sdb: Write Protect is on
   sdb: Mode Sense: 45 00 80 08
   sdb: assuming drive cache: write through
   Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
   usb-storage: device scan complete

If the key is partitioned, just before the Attached ... line, you
should see a listing of the partitions.  For example:

usb-storage: waiting for device to settle before scanning
  Vendor: I-Stick2  Model: IntelligentStick  Rev: 2.00
  Type:   Direct-Access  ANSI SCSI revision: 02
ready
SCSI device sda: 2047488 512-byte hdwr sectors (1048 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 2047488 512-byte hdwr sectors (1048 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
 sda: sda1 sda2
Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
usb-storage: device scan complete

So if it really is partitioned, we'll have to figure out why the
kernel is not seeing your partition table.  I would be interested to
see the output of 'fdisk -l /dev/sda' with the stick inserted.

 What about the kernel config? I posted the file as you suggested. Does
 it look OK?

Looks ok to me.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-20 Thread Jorge Almeida
On Sat, 19 Nov 2005, Richard Fish wrote:
 
 According to the dmesg output you posted earlier, your memory stick is
 not partitioned.  This is ok, some are, some are not.  You can confirm
 this by taking a look at /proc/partitions when it is inserted, or the
 output of fdisk -l.  So, only getting /dev/plextor_memstick is
 probably correct, and you should mount that, not plextor_memstick1.
 
I'm out of office for the weekend, so I can't insert the stick and
confirm. But the stick is partitioned with a unique partition with vfat.
I tried to mount it and mount gave the no such device complaint. But I
may be forgetting something.

What about the kernel config? I posted the file as you suggested. Does
it look OK?

Thanks,

Jorge 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-19 Thread Richard Fish
On 11/18/05, Jorge Almeida [EMAIL PROTECTED] wrote:
 I already set RC_DEVICE_TARBALL=no, following Richards' suggestion. I
 didn't boot from a CD and cleaned /dev yet, but I'll give it a try.
 Meanwhile, I upgraded the kernel and added a config option (for
 firewire) that was missing (for supporting HD's). The nodes
 /dev/external_hd and /dev/external_hd1 exist now, but as for the
 memstick, only /dev/plextor_memstick (no /dev/plextor_memstick1, meaning
 no mounting). Chaos, as I said.

According to the dmesg output you posted earlier, your memory stick is
not partitioned.  This is ok, some are, some are not.  You can confirm
this by taking a look at /proc/partitions when it is inserted, or the
output of fdisk -l.  So, only getting /dev/plextor_memstick is
probably correct, and you should mount that, not plextor_memstick1.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-18 Thread Jorge Almeida
On Thu, 17 Nov 2005, Richard Fish wrote:

 I'm not sure what the problem could be then.  Maybe something in your
 kernel configuration.  Could you post the output of:
 
 grep =[ym] /usr/src/linux/.config
 
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_UID16=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_LOCK_KERNEL=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_SYSCTL=y
CONFIG_HOTPLUG=y
CONFIG_KOBJECT_UEVENT=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_KALLSYMS=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SHMEM=y
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_KMOD=y
CONFIG_X86_PC=y
CONFIG_MPENTIUM4=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_HPET_TIMER=y
CONFIG_PREEMPT=y
CONFIG_PREEMPT_BKL=y
CONFIG_X86_TSC=y
CONFIG_X86_MCE=y
CONFIG_X86_MCE_NONFATAL=y
CONFIG_MICROCODE=m
CONFIG_X86_MSR=m
CONFIG_X86_CPUID=y
CONFIG_HIGHMEM4G=y
CONFIG_HIGHMEM=y
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_HIGHPTE=y
CONFIG_MTRR=y
CONFIG_HAVE_DEC_LOCK=y
CONFIG_SECCOMP=y
CONFIG_HZ_250=y
CONFIG_PM=y
CONFIG_APM=y
CONFIG_APM_RTC_IS_GMT=y
CONFIG_PCI=y
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_LEGACY_PROC=y
CONFIG_PCI_NAMES=y
CONFIG_ISA_DMA_API=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_MISC=y
CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_XFRM=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_ASK_IP_FIB_HASH=y
CONFIG_IP_FIB_HASH=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_FWMARK=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_NET_IPIP=y
CONFIG_NET_IPGRE=y
CONFIG_SYN_COOKIES=y
CONFIG_INET_TUNNEL=y
CONFIG_IP_TCPDIAG=y
CONFIG_TCP_CONG_BIC=y
CONFIG_NETFILTER=y
CONFIG_IP_NF_CONNTRACK=m
CONFIG_IP_NF_FTP=m
CONFIG_IP_NF_TFTP=m
CONFIG_IP_NF_AMANDA=m
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_LIMIT=m
CONFIG_IP_NF_MATCH_IPRANGE=m
CONFIG_IP_NF_MATCH_MAC=m
CONFIG_IP_NF_MATCH_PKTTYPE=m
CONFIG_IP_NF_MATCH_MARK=m
CONFIG_IP_NF_MATCH_MULTIPORT=m
CONFIG_IP_NF_MATCH_TOS=m
CONFIG_IP_NF_MATCH_RECENT=m
CONFIG_IP_NF_MATCH_ECN=m
CONFIG_IP_NF_MATCH_DSCP=m
CONFIG_IP_NF_MATCH_AH_ESP=m
CONFIG_IP_NF_MATCH_LENGTH=m
CONFIG_IP_NF_MATCH_TCPMSS=m
CONFIG_IP_NF_MATCH_HELPER=m
CONFIG_IP_NF_MATCH_STATE=m
CONFIG_IP_NF_MATCH_CONNTRACK=m
CONFIG_IP_NF_MATCH_OWNER=m
CONFIG_IP_NF_MATCH_ADDRTYPE=m
CONFIG_IP_NF_MATCH_REALM=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_TARGET_LOG=m
CONFIG_IP_NF_TARGET_ULOG=m
CONFIG_IP_NF_TARGET_TCPMSS=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_IP_NF_TARGET_REDIRECT=m
CONFIG_IP_NF_TARGET_NETMAP=m
CONFIG_IP_NF_TARGET_SAME=m
CONFIG_IP_NF_NAT_FTP=m
CONFIG_IP_NF_NAT_TFTP=m
CONFIG_IP_NF_NAT_AMANDA=m
CONFIG_IP_NF_MANGLE=m
CONFIG_IP_NF_TARGET_TOS=m
CONFIG_IP_NF_TARGET_ECN=m
CONFIG_IP_NF_TARGET_DSCP=m
CONFIG_IP_NF_TARGET_MARK=m
CONFIG_IP_NF_TARGET_CLASSIFY=m
CONFIG_IP_NF_ARPTABLES=m
CONFIG_IP_NF_ARPFILTER=m
CONFIG_IP_NF_ARP_MANGLE=m
CONFIG_LLC=y
CONFIG_ATALK=y
CONFIG_DEV_APPLETALK=y
CONFIG_NET_CLS_ROUTE=y
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=m
CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_PIIX=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
CONFIG_BLK_DEV_SD=y
CONFIG_SCSI_QLA2XXX=y
CONFIG_IEEE1394=y
CONFIG_IEEE1394_OHCI1394=y
CONFIG_IEEE1394_RAWIO=m
CONFIG_IEEE1394_CMP=m
CONFIG_NETDEVICES=y
CONFIG_DUMMY=m
CONFIG_NET_ETHERNET=y
CONFIG_MII=y
CONFIG_NET_PCI=y
CONFIG_8139TOO=y
CONFIG_R8169=y
CONFIG_INPUT=y
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_EVDEV=m
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=m
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_PCIPS2=y
CONFIG_SERIO_LIBPS2=y
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_CORE=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_HW_RANDOM=m
CONFIG_NVRAM=m
CONFIG_RTC=m
CONFIG_GEN_RTC=m
CONFIG_GEN_RTC_X=y
CONFIG_AGP=y
CONFIG_AGP_NVIDIA=y
CONFIG_I2C=m
CONFIG_I2C_CHARDEV=m
CONFIG_I2C_ALGOBIT=m
CONFIG_I2C_ALGOPCF=m
CONFIG_I2C_I801=m
CONFIG_I2C_ISA=m
CONFIG_I2C_SENSOR=m
CONFIG_HWMON=y
CONFIG_SENSORS_ADM1021=m
CONFIG_SENSORS_ASB100=m
CONFIG_SENSORS_DS1621=m

Re: [gentoo-user] confused udev?

2005-11-18 Thread Jorge Almeida
On Fri, 18 Nov 2005, Dirk Heinrichs wrote:

 Am Donnerstag, 17. November 2005 17:19 schrieb ext Jorge Almeida:
 
  Did it. Upon reboot, I had /dev/external_hd and /dev/external_hd1, but
  only /dev/plextor_memstick (i.e., no mountable /dev/plextor_memstick1).
  I unplugged the stick and turned off the HD case. I plugged back the
  stick. Now /dev/plextor_memstick and /dev/plextor_memstick1 exist, as
  they should. I turned the case on. Well, no /dev/external_hd...
 
 Hmm. Where do you plug in the devices? Into a USB hub, or into the machines 
 USB ports directly? If you plug the devices into a hub, and the HD does not 
 have an own power supply, the devices may simply not get enough power to 
 run troublefree.
 
Into the ports. The disk case is now connected to a firewire port.
Anyway, the case has its own power supply.

Thanks,

Jorge 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-18 Thread Dirk Heinrichs
Am Donnerstag, 17. November 2005 15:14 schrieb ext Jorge Almeida:

  Hmm, this is strange. Did you check if /dev/sdb is really there? I
  currently

 /dev/sdb and /dev/sdb1 exist, but don't seem to be much help.
   $ ls /dev|grep sdb
   sdb
   sdb1
   sdb10
   sdb11
   sdb12
   sdb13
   sdb14
   sdb15
   sdb2
   sdb3
   sdb4
   sdb5
   sdb6
   sdb7
   sdb8
   sdb9

 $ mount -t vfat /dev/sdb1 /mnt/pen
 mount: /dev/sdb1: can't read superblock

This looks like artifacts from an old, static /dev (RC_DEVICE_TARBALL=yes 
in /etc/conf.d/rc ?). With udev, you should only see sdb and exactly one 
sdbX for each partition on the device, unless your rule contains 
NAME{all_partiotion}=something.

Did you read my former reply to Richards mail about setting 
RC_DEVICE_TARBALL=no (booting a LiveCD and clean up /dev)?

Otherwise I don't know what else to look at, sorry.

To avoid another reply: Your kernel config also looks good to me.

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.capgemini.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgpYCJwSREVEn.pgp
Description: PGP signature


Re: [gentoo-user] confused udev?

2005-11-18 Thread Neil Bothwick
On Fri, 18 Nov 2005 11:21:47 +0100, Dirk Heinrichs wrote:

 Did you read my former reply to Richards mail about setting 
 RC_DEVICE_TARBALL=no (booting a LiveCD and clean up /dev)?

You don't need to use a live CD for this. Do

mount --bind / /mnt

and the original static /dev/ directory will be available at /mnt/dev.
Remove everything but null and console.


-- 
Neil Bothwick

Work is the curse of the partying class!


signature.asc
Description: PGP signature


Re: [gentoo-user] confused udev?

2005-11-18 Thread Jorge Almeida
On Fri, 18 Nov 2005, Dirk Heinrichs wrote:
 
  $ mount -t vfat /dev/sdb1 /mnt/pen
  mount: /dev/sdb1: can't read superblock
 
 This looks like artifacts from an old, static /dev (RC_DEVICE_TARBALL=yes 
 in /etc/conf.d/rc ?). With udev, you should only see sdb and exactly one 
 sdbX for each partition on the device, unless your rule contains 
 NAME{all_partiotion}=something.
 
 Did you read my former reply to Richards mail about setting 
 RC_DEVICE_TARBALL=no (booting a LiveCD and clean up /dev)?
 
I already set RC_DEVICE_TARBALL=no, following Richards' suggestion. I
didn't boot from a CD and cleaned /dev yet, but I'll give it a try.
Meanwhile, I upgraded the kernel and added a config option (for
firewire) that was missing (for supporting HD's). The nodes
/dev/external_hd and /dev/external_hd1 exist now, but as for the
memstick, only /dev/plextor_memstick (no /dev/plextor_memstick1, meaning
no mounting). Chaos, as I said.
 Otherwise I don't know what else to look at, sorry.
OK, thanks anyway.

Jorge 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-18 Thread Dirk Heinrichs
Am Freitag, 18. November 2005 11:29 schrieb ext Neil Bothwick:
 On Fri, 18 Nov 2005 11:21:47 +0100, Dirk Heinrichs wrote:
  Did you read my former reply to Richards mail about setting
  RC_DEVICE_TARBALL=no (booting a LiveCD and clean up /dev)?

 You don't need to use a live CD for this. Do

 mount --bind / /mnt

 and the original static /dev/ directory will be available at /mnt/dev.
 Remove everything but null and console.

Yep, I always forget about the power of bind mounts ;-)

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.capgemini.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgpxM3Qi2h4Cv.pgp
Description: PGP signature


[gentoo-user] confused udev?

2005-11-17 Thread Jorge Almeida
I have a USB memory stick and an external USB box with an IDE disk.
I configured udev to assign device names to both items, or so I thought.
The external box is plugged, the memory stick isn't.
The problem is: the device for the box is not created, and the memstick
device exists but represents the box, not the stick. I read
http://www.reactivated.net/writing_udev_rules.html#identify-sysfs
and
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Flash-Memory-HOWTO.html

What else should I do?

The gory details:

$ ls /etc/udev/rules.d/
40-my.rules  40-my.rules~  50-udev.rules

$ cat /etc/udev/rules.d/40-my.rules
BUS=scsi, SYSFS{vendor}=PLEXTOR , SYSFS_model=PlexFlash-2*, 
NAME=plextor_memstick%n
BUS=scsi, SYSFS{vendor}=Maxtor 6 , SYSFS_model=L250R0*, 
NAME=external_hd%n

I tried also SYSFS_vendor instead of SYSFS{vendor} ...

$ mount -t auto /dev/plextor_memstick1 /mnt/maxtor/
$ ls /mnt/maxtor/
lost+found

-- 
Jorge Almeida
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-17 Thread Dirk Heinrichs
Am Donnerstag, 17. November 2005 10:26 schrieb ext Jorge Almeida:

 I have a USB memory stick and an external USB box with an IDE disk.
 I configured udev to assign device names to both items, or so I thought.
 The external box is plugged, the memory stick isn't.
 The problem is: the device for the box is not created, and the memstick
 device exists but represents the box, not the stick. I read

Some questions:

What's your udev and kernel version?

Did you configure your kernel to use USB storage (if in doubt, post your 
kernel config)?

Does the system detect the devices when you plug them in (post the last few 
lines of dmesg output after plugging in each device)

What does udevinfo -a -p $(udevinfo -q path -n /dev/sdX) tell you (replace X 
with the appropriate letter for each device)?

Maybe we can sort this out.

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.capgemini.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgpqQWX5yy68q.pgp
Description: PGP signature


Re: [gentoo-user] confused udev?

2005-11-17 Thread Jorge Almeida
On Thu, 17 Nov 2005, Dirk Heinrichs wrote:

 Am Donnerstag, 17. November 2005 10:26 schrieb ext Jorge Almeida:
 
  I have a USB memory stick and an external USB box with an IDE disk.
  I configured udev to assign device names to both items, or so I thought.
  The external box is plugged, the memory stick isn't.
  The problem is: the device for the box is not created, and the memstick
  device exists but represents the box, not the stick. I read
 
 Some questions:
 
 What's your udev and kernel version?
 
sys-fs/udev-070-r1
2.6.13-gentoo-r3

 Did you configure your kernel to use USB storage (if in doubt, post your 
 kernel config)?

Yes, and I can use the devices (write and read files...).

CONFIG_USB_STORAGE=y
(...)
# SCSI device support
#
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y

 
 Does the system detect the devices when you plug them in (post the last few 
 lines of dmesg output after plugging in each device)
 
ipt_recent v0.3.1: Stephen Frost [EMAIL PROTECTED].
http://snowman.net/projects/ipt_recent/
spurious 8259A interrupt: IRQ7.
EXT3 FS on hda6, internal journal
usb 1-3: new high speed USB device using ehci_hcd and address 3
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
  Vendor: Maxtor 6  Model: L250R0Rev: BAH4
Type:   Direct-Access  ANSI SCSI revision: 00
SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB)
sda: assuming drive cache: write through
SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB)
sda: assuming drive cache: write through
 sda: unknown partition table
 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
 usb-storage: device scan complete
 SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB)
 sda: assuming drive cache: write through
  sda: sda1
  SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB)
  sda: assuming drive cache: write through
   sda: sda1
   kjournald starting.  Commit interval 5 seconds
   EXT3 FS on sda1, internal journal
   EXT3-fs: mounted filesystem with ordered data mode.
   kjournald starting.  Commit interval 5 seconds
   EXT3 FS on sda1, internal journal
   EXT3-fs: mounted filesystem with ordered data mode.
   kjournald starting.  Commit interval 5 seconds
   EXT3 FS on sda1, internal journal
   EXT3-fs: mounted filesystem with ordered data mode.
   FAT: conv=auto option is obsolete, not supported now
   FAT: posix option is obsolete, not supported now
   FAT: bogus number of reserved sectors
   VFS: Can't find a valid FAT filesystem on dev sda1.
   kjournald starting.  Commit interval 5 seconds
   EXT3 FS on sda1, internal journal
   EXT3-fs: mounted filesystem with ordered data mode.
   kjournald starting.  Commit interval 5 seconds
   EXT3 FS on sda1, internal journal
   EXT3-fs: mounted filesystem with ordered data mode.

The memstick has a vfat in it (original). The external disk has 1
partition with ext3.
The line in /etc/fstab corresponding to the memstick (the disk doesn't
have one, yet):
/dev/plextor_memstick1  /mnt/penvfat 
noauto,user,noexec,nodev,rw,noatime,conv=auto,uni_xlate,posix   0 0

Now I plugged the memstick. dmesg says:

usb 1-7: new high speed USB device using ehci_hcd and address 4
usb 1-7: device descriptor read/64, error -71
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
usb 1-7: reset high speed USB device using ehci_hcd and address 4
  Vendor: PLEXTOR   Model: PlexFlash-2   Rev: 5.02
Type:   Direct-Access  ANSI SCSI revision: 00
usb 1-7: reset high speed USB device using ehci_hcd and address 4
usb 1-7: reset high speed USB device using ehci_hcd and address 4
usb 1-7: reset high speed USB device using ehci_hcd and address 4
usb 1-7: reset high speed USB device using ehci_hcd and address 4
usb 1-7: reset high speed USB device using ehci_hcd and address 4
usb 1-7: reset high speed USB device using ehci_hcd and address 4
sdb: Write Protect is on
sdb: Mode Sense: 45 00 80 08
sdb: assuming drive cache: write through
Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
usb-storage: device scan complete


 What does udevinfo -a -p $(udevinfo -q path -n /dev/sdX) tell you (replace X 
 with the appropriate letter for each device)?
 
$ udevinfo -a -p $(udevinfo -q path -n /dev/sda)

udevinfo starts with the device the node belongs to 

Re: [gentoo-user] confused udev?

2005-11-17 Thread Dirk Heinrichs
Am Donnerstag, 17. November 2005 13:43 schrieb ext Jorge Almeida:

   CONFIG_USB_STORAGE=y
   (...)

Did you also enable the sub options?

   # SCSI device support
   #
   CONFIG_SCSI=y
   CONFIG_SCSI_PROC_FS=y

   #
   # SCSI support type (disk, tape, CD-ROM)
   #
   CONFIG_BLK_DEV_SD=y

Looks good.

dmesg output for the HD looks good, too.

   usb 1-7: new high speed USB device using ehci_hcd and address 4
   usb 1-7: device descriptor read/64, error -71
   scsi1 : SCSI emulation for USB Mass Storage devices
   usb-storage: device found at 4
   usb-storage: waiting for device to settle before scanning
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
 Vendor: PLEXTOR   Model: PlexFlash-2   Rev: 5.02
   Type:   Direct-Access  ANSI SCSI revision: 00
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
   usb 1-7: reset high speed USB device using ehci_hcd and address 4
   sdb: Write Protect is on
   sdb: Mode Sense: 45 00 80 08
   sdb: assuming drive cache: write through
   Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
   usb-storage: device scan complete

I'm a bit confused about all those resets.

  What does udevinfo -a -p $(udevinfo -q path -n /dev/sdX) tell you
  (replace X with the appropriate letter for each device)?

 $ udevinfo -a -p $(udevinfo -q path -n /dev/sda)

 udevinfo starts with the device the node belongs to and then walks up the
 device chain, to print for every device found, all possibly useful
 attributes in the udev key format.
 Only attributes within one device section may be used together in one
 rule, to match the device for which the node will be created.

OK, here's the interesting part:

0:0:0:0': BUS==scsi
 ID==0:0:0:0
 DRIVER==sd
 SYSFS{device_blocked}==0
 SYSFS{iocounterbits}==32
 SYSFS{iodone_cnt}==0x1642
 SYSFS{ioerr_cnt}==0x0
 SYSFS{iorequest_cnt}==0x1642
 SYSFS{max_sectors}==240
 SYSFS{model}==L250R0  
 SYSFS{queue_depth}==1
 SYSFS{queue_type}==none
 SYSFS{rev}==BAH4
 SYSFS{scsi_level}==3
 SYSFS{state}==running
 SYSFS{timeout}==30
 SYSFS{type}==0
 SYSFS{vendor}==Maxtor 6

That would give the following rule (all in one line):

BUS==usb, KERNEL==sd*, SYSFS{model}==L250R0  , 
SYSFS{vendor}==Maxtor 6, NAME=usb/disk%n

Note the spaces in the model part, don't know wether the wildcard * works 
here, too. Feel free to change the name part to whatever you like :-)


 After plugging the memstick:

   $ udevinfo -a -p $(udevinfo -q path -n /dev/sdb)
   no record for 'sdb' in database
   udevinfo: option requires an argument -- p
   Usage: udevinfo [-anpqrVh]
 (etc)

Hmm, this is strange. Did you check if /dev/sdb is really there? I currently 
have no idea what could be wrong. If not already done, could you recompile 
your kernel with all sub options of CONFIG_USB_STORAGE and see if this 
makes any difference with the stick?

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.capgemini.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgpY0cSDUUTUr.pgp
Description: PGP signature


Re: [gentoo-user] confused udev?

2005-11-17 Thread Richard Fish
On 11/17/05, Jorge Almeida [EMAIL PROTECTED] wrote:
 $ cat /etc/udev/rules.d/40-my.rules
 BUS=scsi, SYSFS{vendor}=PLEXTOR , SYSFS_model=PlexFlash-2*, 
 NAME=plextor_memstick%n
 BUS=scsi, SYSFS{vendor}=Maxtor 6 , SYSFS_model=L250R0*, 
 NAME=external_hd%n

 SYSFS{model}==L250R0  
 SYSFS{queue_depth}==1
 SYSFS{queue_type}==none
 SYSFS{rev}==BAH4
 SYSFS{scsi_level}==3
 SYSFS{state}==running
 SYSFS{timeout}==30
 SYSFS{type}==0
 SYSFS{vendor}==Maxtor 6

Here is a problem...you have an extra space in your vendor string, so
the first rule will not match.

Also, you should be using == in your rules, not =, and
SYSFS{model}, not SYSFS_model.I think these latter issues are the
reason the plextor rule is matching, because from the udev man page,
= does not test for equality, it assigns a value to a key.

So first, cut-n-paste the vendor and model strings from this output
into your rule, and change all of the = to == (except for the NAME
setting).  Then try setting udev_log=7 in /etc/udev/udev.conf, and
watch /var/log/messages when you plug in the drive.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-17 Thread Jorge Almeida
On Thu, 17 Nov 2005, Dirk Heinrichs wrote:

 Am Donnerstag, 17. November 2005 13:43 schrieb ext Jorge Almeida:
 
  CONFIG_USB_STORAGE=y
  (...)
 
 Did you also enable the sub options?
No, since none appeared to have much to do with my devices.
 
 
  usb 1-7: new high speed USB device using ehci_hcd and address 4
  usb 1-7: device descriptor read/64, error -71
  scsi1 : SCSI emulation for USB Mass Storage devices
  usb-storage: device found at 4
  usb-storage: waiting for device to settle before scanning
  usb 1-7: reset high speed USB device using ehci_hcd and address 4
Vendor: PLEXTOR   Model: PlexFlash-2   Rev: 5.02
  Type:   Direct-Access  ANSI SCSI revision: 00
  usb 1-7: reset high speed USB device using ehci_hcd and address 4
  usb 1-7: reset high speed USB device using ehci_hcd and address 4
  usb 1-7: reset high speed USB device using ehci_hcd and address 4
  usb 1-7: reset high speed USB device using ehci_hcd and address 4
  usb 1-7: reset high speed USB device using ehci_hcd and address 4
  usb 1-7: reset high speed USB device using ehci_hcd and address 4
  sdb: Write Protect is on
  sdb: Mode Sense: 45 00 80 08
  sdb: assuming drive cache: write through
  Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
  usb-storage: device scan complete
 
 I'm a bit confused about all those resets.
 
 OK, here's the interesting part:
 
 0:0:0:0': BUS==scsi
  ID==0:0:0:0
  DRIVER==sd
  SYSFS{device_blocked}==0
  SYSFS{iocounterbits}==32
  SYSFS{iodone_cnt}==0x1642
  SYSFS{ioerr_cnt}==0x0
  SYSFS{iorequest_cnt}==0x1642
  SYSFS{max_sectors}==240
  SYSFS{model}==L250R0  
  SYSFS{queue_depth}==1
  SYSFS{queue_type}==none
  SYSFS{rev}==BAH4
  SYSFS{scsi_level}==3
  SYSFS{state}==running
  SYSFS{timeout}==30
  SYSFS{type}==0
  SYSFS{vendor}==Maxtor 6
 
 That would give the following rule (all in one line):
 
 BUS==usb, KERNEL==sd*, SYSFS{model}==L250R0  , 
 SYSFS{vendor}==Maxtor 6, NAME=usb/disk%n

Is it really BUS==usb rather than BUS==scsi?
 
 Note the spaces in the model part, don't know wether the wildcard * works 
 here, too. Feel free to change the name part to whatever you like :-)
 
 
  After plugging the memstick:
 
  $ udevinfo -a -p $(udevinfo -q path -n /dev/sdb)
  no record for 'sdb' in database
  udevinfo: option requires an argument -- p
  Usage: udevinfo [-anpqrVh]
(etc)
 
 Hmm, this is strange. Did you check if /dev/sdb is really there? I currently 

/dev/sdb and /dev/sdb1 exist, but don't seem to be much help.
$ ls /dev|grep sdb
sdb
sdb1
sdb10
sdb11
sdb12
sdb13
sdb14
sdb15
sdb2
sdb3
sdb4
sdb5
sdb6
sdb7
sdb8
sdb9

$ mount -t vfat /dev/sdb1 /mnt/pen
mount: /dev/sdb1: can't read superblock

 have no idea what could be wrong. If not already done, could you recompile 
 your kernel with all sub options of CONFIG_USB_STORAGE and see if this 
 makes any difference with the stick?
 
Will try it...
 Bye...
 
   Dirk
 
Thanks,

Jorge 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-17 Thread Jorge Almeida
On Thu, 17 Nov 2005, Richard Fish wrote:

 On 11/17/05, Jorge Almeida [EMAIL PROTECTED] wrote:
  $ cat /etc/udev/rules.d/40-my.rules
  BUS=scsi, SYSFS{vendor}=PLEXTOR , SYSFS_model=PlexFlash-2*, 
  NAME=plextor_memstick%n
  BUS=scsi, SYSFS{vendor}=Maxtor 6 , SYSFS_model=L250R0*, 
  NAME=external_hd%n
 
  SYSFS{model}==L250R0  
  SYSFS{queue_depth}==1
  SYSFS{queue_type}==none
  SYSFS{rev}==BAH4
  SYSFS{scsi_level}==3
  SYSFS{state}==running
  SYSFS{timeout}==30
  SYSFS{type}==0
  SYSFS{vendor}==Maxtor 6
 
 Here is a problem...you have an extra space in your vendor string, so
 the first rule will not match.
 
 Also, you should be using == in your rules, not =, and
 SYSFS{model}, not SYSFS_model.I think these latter issues are the
 reason the plextor rule is matching, because from the udev man page,
 = does not test for equality, it assigns a value to a key.
So much for the rules in
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Flash-Memory-HOWTO.html#hotplug
...
 
 So first, cut-n-paste the vendor and model strings from this output
 into your rule, and change all of the = to == (except for the NAME
 setting).  Then try setting udev_log=7 in /etc/udev/udev.conf, and
 watch /var/log/messages when you plug in the drive.
 
Did it. Upon reboot, I had /dev/external_hd and /dev/external_hd1, but
only /dev/plextor_memstick (i.e., no mountable /dev/plextor_memstick1).
I unplugged the stick and turned off the HD case. I plugged back the
stick. Now /dev/plextor_memstick and /dev/plextor_memstick1 exist, as
they should. I turned the case on. Well, no /dev/external_hd...

Moreover:
$ systool  -vb scsi | grep vendor
vendor  = PLEXTOR 

No external disk...
$ udevinfo -a -p $(udevinfo -q path -n /dev/sda)
no record for 'sda' in database
(...)
The same for sdb...

(There's something very wrong either with me or with udev. I'm ready to
accept the former, but I still remember when devfs went out, one year or
so ago, and my USB scanner stopped working.)

 -Richard
 
Thanks again.

Jorge 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-17 Thread Richard Fish
On 11/17/05, Jorge Almeida [EMAIL PROTECTED] wrote:
 So much for the rules in
 http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Flash-Memory-HOWTO.html#hotplug
 ...

Yes, it is terribly out of date, being written when udev was at
version 016!!  That is s last month! :-

 Did it. Upon reboot, I had /dev/external_hd and /dev/external_hd1, but
 only /dev/plextor_memstick (i.e., no mountable /dev/plextor_memstick1).
 I unplugged the stick and turned off the HD case. I plugged back the
 stick. Now /dev/plextor_memstick and /dev/plextor_memstick1 exist, as
 they should. I turned the case on. Well, no /dev/external_hd...

Can you post your current rules.  Also, don't forget Dirk's suggestion
regarding BUS==usb instead of scsi.

 No external disk...
 $ udevinfo -a -p $(udevinfo -q path -n /dev/sda)
 no record for 'sda' in database
 (...)
 The same for sdb...

Yes, this I would expect now, because you are not creating sdX device
nodes anymore.  You would need to use the device nodes that you are
creating.

You could use the SYMLINK target instead of changing the name.  Something like:

BUS==usb ... NAME=%k, SYMLINK=plextor_memstick%n

This would keep the default sdX device nodes, but give you symlinks
for your persistent names.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-17 Thread Jorge Almeida
On Thu, 17 Nov 2005, Richard Fish wrote:
 
 Can you post your current rules.  Also, don't forget Dirk's suggestion
 regarding BUS==usb instead of scsi.
 
 You could use the SYMLINK target instead of changing the name.  Something 
 like:
 
 BUS==usb ... NAME=%k, SYMLINK=plextor_memstick%n
 
 This would keep the default sdX device nodes, but give you symlinks
 for your persistent names.
 
 -Richard
 
 
Current:
BUS==scsi, SYSFS{vendor}==PLEXTOR*, SYSFS{model}==PlexFlash-2*, 
NAME=%k, SYMLINK=plextor_memstick%n
BUS==scsi, SYSFS{vendor}==Maxtor 6*, SYSFS{model}==L250R0*, 
NAME=%k, SYMLINK=external_hd%n
No change (i.e., still no /dev/external...)
/dev/plextor_memstick and /dev/plextor_memstick1 exist as symlinks.
With usb instead of scsi, also no change. With
NAME=plextor_memstick%n etc, no change (except that there are dev
nodes, not symlinks)

Jorge 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-17 Thread Richard Fish
On 11/17/05, Jorge Almeida [EMAIL PROTECTED] wrote:
 On Thu, 17 Nov 2005, Richard Fish wrote:
 
  Can you post your current rules.  Also, don't forget Dirk's suggestion
  regarding BUS==usb instead of scsi.
 
  You could use the SYMLINK target instead of changing the name.  Something 
  like:
 
  BUS==usb ... NAME=%k, SYMLINK=plextor_memstick%n
 
  This would keep the default sdX device nodes, but give you symlinks
  for your persistent names.
 
  -Richard
 
 
 Current:
 BUS==scsi, SYSFS{vendor}==PLEXTOR*, SYSFS{model}==PlexFlash-2*, 
 NAME=%k, SYMLINK=plextor_memstick%n
 BUS==scsi, SYSFS{vendor}==Maxtor 6*, SYSFS{model}==L250R0*, 
 NAME=%k, SYMLINK=external_hd%n
 No change (i.e., still no /dev/external...)
 /dev/plextor_memstick and /dev/plextor_memstick1 exist as symlinks.
 With usb instead of scsi, also no change. With
 NAME=plextor_memstick%n etc, no change (except that there are dev
 nodes, not symlinks)

Hmm, looks ok.  Could you set udev_log=7 in /etc/udev/udev.conf, and
post the entries that are added to /var/log/messages when you turn on
the hard drive.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-17 Thread Richard Fish
On 11/17/05, Jorge Almeida [EMAIL PROTECTED] wrote:
 On Thu, 17 Nov 2005, Richard Fish wrote:
  Hmm, looks ok.  Could you set udev_log=7 in /etc/udev/udev.conf, and
  post the entries that are added to /var/log/messages when you turn on
  the hard drive.
 
 $ tail -F /var/log/kernel/current
 Nov 17 17:41:51 [kernel] usb-storage: -- transfer complete
 Nov 17 17:41:51 [kernel] usb-storage: Bulk command transfer result=0
 Nov 17 17:41:51 [kernel] usb-storage: Attempting to get CSW...
 Nov 17 17:41:51 [kernel] usb-storage: usb_stor_bulk_transfer_buf: xfer
 13 bytes
 Nov 17 17:41:51 [kernel] usb-storage: Status code 0; transferred 13/13
 Nov 17 17:41:51 [kernel] usb-storage: -- transfer complete
 Nov 17 17:41:51 [kernel] usb-storage: Bulk status result = 0
 Nov 17 17:41:51 [kernel] usb-storage: Bulk Status S 0x53425355 T 0x78 R
 0 Stat 0x0
 Nov 17 17:41:51 [kernel] usb-storage: scsi cmd done, result=0x0
 Nov 17 17:41:51 [kernel] usb-storage: *** thread sleeping.
 Nov 17 18:21:25 [kernel] usb 1-3: new high speed USB device using
 ehci_hcd and address 20
 Nov 17 18:21:25 [kernel] usb 1-3: device descriptor read/all, error -71
 Nov 17 18:21:25 [kernel] usb 1-3: new high speed USB device using
 ehci_hcd and address 21
 Nov 17 18:21:25 [kernel] usb 1-3: string descriptor 0 read error: -71
 - Last output repeated 2 times -
 Nov 17 18:21:25 [kernel] usb 1-3: new high speed USB
 device using ehci_hcd and address 22
 Nov 17 18:21:25 [kernel] usb 1-3: string descriptor 0
 read error: -71
 - Last output repeated 2 times -
 Nov 17 18:21:25 [kernel] usb 1-3: new
 high speed USB device using ehci_hcd and
 address 23
 Nov 17 18:21:25 [kernel] usb 1-3: string
 descriptor 0 read error: -71

Ok, something is going wrong in either hardware or kernel land for
this device.  You should be seeing entries like this from the kernel:

Nov 17 13:10:30 carcharias usb 1-3: new high speed USB device using
ehci_hcd and address 5
Nov 17 13:10:30 carcharias scsi2 : SCSI emulation for USB Mass Storage devices
Nov 17 13:10:30 carcharias usb-storage: device found at 5
Nov 17 13:10:30 carcharias usb-storage: waiting for device to settle
before scanning
Nov 17 13:10:35 carcharias Vendor: ST910082  Model: 3ARev: 3.02
Nov 17 13:10:35 carcharias Type:   Direct-Access 
ANSI SCSI revision: 00
Nov 17 13:10:35 carcharias SCSI device sda: 195371568 512-byte hdwr
sectors (100030 MB)

Particularly the last one, about the new SCSI device and it's size, is
important.  If you have USB and the other drivers built as modules,
reload them and try again.  If they are built into your kernel,
reboot.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-17 Thread Richard Fish
On 11/17/05, Jorge Almeida [EMAIL PROTECTED] wrote:
 On Thu, 17 Nov 2005, Richard Fish wrote:
  important.  If you have USB and the other drivers built as modules,
  reload them and try again.  If they are built into your kernel,
  reboot.
 
 This is Chaos.

 On reboot, /dev/external_hd and /dev/external_hd1 exist. I mounted the
 disk with no problems. /dev/plextor_memstick and /dev/plextor_memstick1
 don't exist (or rather they appear as broken links).

Hmm, do you RC_DEVICE_TARBALL set in /etc/conf.d/rc?  That would cause
something like this, and I recommend setting it to no for a pure
udev setup.

 Understandable,
 since the stick is not plugged. I plugged it and still no nodes.  I
 unmounted the external disk and /dev/external_hd /dev/external_hd1 are
 gone! And /dev/plextor_memstick  /dev/plextor_memstick1 didn't came
 back.

Your USB bus is really not working right!  Are these devices connected
directly to ports on the PC, or going through a hub?  If there is a
hub, maybe it is broken...

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-17 Thread Jorge Almeida
On Thu, 17 Nov 2005, Richard Fish wrote:
 
 Hmm, do you RC_DEVICE_TARBALL set in /etc/conf.d/rc?  That would cause
 something like this, and I recommend setting it to no for a pure
 udev setup.
 
Yes, it was there since the time it was recommended. I changed it and
rebooted. The memstick nodes are OK (no links) but still no sign of the
external disk. Turning the case switch off and on doesn't bring any
change...
  Understandable,
  since the stick is not plugged. I plugged it and still no nodes.  I
  unmounted the external disk and /dev/external_hd /dev/external_hd1 are
  gone! And /dev/plextor_memstick  /dev/plextor_memstick1 didn't came
  back.
 
 Your USB bus is really not working right!  Are these devices connected
 directly to ports on the PC, or going through a hub?  If there is a
 hub, maybe it is broken...
 
No hub. I changed the usb port the case is connected to and no change...
I substituted the USB connection by a firewire one. No change...(the
rule starts with BUS==scsi, so it should be detected).

Jorge 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-17 Thread Richard Fish
On 11/17/05, Jorge Almeida [EMAIL PROTECTED] wrote:
  Your USB bus is really not working right!  Are these devices connected
  directly to ports on the PC, or going through a hub?  If there is a
  hub, maybe it is broken...
 
 No hub. I changed the usb port the case is connected to and no change...
 I substituted the USB connection by a firewire one. No change...(the
 rule starts with BUS==scsi, so it should be detected).

I'm not sure what the problem could be then.  Maybe something in your
kernel configuration.  Could you post the output of:

grep =[ym] /usr/src/linux/.config

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] confused udev?

2005-11-17 Thread Dirk Heinrichs
Am Donnerstag, 17. November 2005 17:19 schrieb ext Jorge Almeida:

 Did it. Upon reboot, I had /dev/external_hd and /dev/external_hd1, but
 only /dev/plextor_memstick (i.e., no mountable /dev/plextor_memstick1).
 I unplugged the stick and turned off the HD case. I plugged back the
 stick. Now /dev/plextor_memstick and /dev/plextor_memstick1 exist, as
 they should. I turned the case on. Well, no /dev/external_hd...

Hmm. Where do you plug in the devices? Into a USB hub, or into the machines 
USB ports directly? If you plug the devices into a hub, and the HD does not 
have an own power supply, the devices may simply not get enough power to 
run troublefree.

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.capgemini.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgpxqfhFeIJy3.pgp
Description: PGP signature


Re: [gentoo-user] confused udev?

2005-11-17 Thread Dirk Heinrichs
Am Donnerstag, 17. November 2005 22:11 schrieb ext Richard Fish:

 Hmm, do you RC_DEVICE_TARBALL set in /etc/conf.d/rc?  That would cause
 something like this, and I recommend setting it to no for a pure
 udev setup.

Then boot into LiveCD, mount your systems root fs (i.e. to /mnt) and delete 
everything in /mnt/dev (except null and console), just to be sure.

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.capgemini.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgpFGHpIZhUg5.pgp
Description: PGP signature