View previous topic :: View next topic |
Author |
Message |
Loke Apprentice
Joined: 25 May 2002 Posts: 274 Location: Norway
|
Posted: Mon Jan 10, 2005 10:57 am Post subject: |
|
|
OK, followup. I removed the write-protect detection from usb-storage, and now the cardreader seems to be detected correctly - however now I get the same error as I did with earlier kernels:
Code: |
SCSI device sdc: 512000 512-byte hdwr sectors (262 MB)
sdc: assuming Write Enabled
sdc: assuming drive cache: write through
SCSI device sdc: 512000 512-byte hdwr sectors (262 MB)
sdc: assuming Write Enabled
sdc: assuming drive cache: write through
sdc: unknown partition table
|
touch /dev/sdc does not create /dev/sdc1. Neither does udevstart...
Edit: If I rmmod -f usb_storage, and insert an mmc card and wait awhile until I modprobe usb-storage again udev creates the correct device for the card. Go figure... _________________ I'm not saying there should be capital punishment for stupidity, I'm saying why don't we take the warning labels off of everything, and let the problem take care of itself? |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
|
Back to top |
|
|
stsp n00b
Joined: 06 Dec 2003 Posts: 11
|
Posted: Mon Jan 10, 2005 6:55 pm Post subject: |
|
|
Is it safe to change udev rules so that it uses no devfs style names at all? |
|
Back to top |
|
|
Loke Apprentice
Joined: 25 May 2002 Posts: 274 Location: Norway
|
Posted: Tue Jan 11, 2005 12:42 am Post subject: |
|
|
dsd wrote: | could you try 2.6.10? |
The last postings was with the 2.6.10-r4 gentoo-dev-kernel. Also 2.6.9-r9 and -r13 does not work. _________________ I'm not saying there should be capital punishment for stupidity, I'm saying why don't we take the warning labels off of everything, and let the problem take care of itself? |
|
Back to top |
|
|
airflow Apprentice
Joined: 14 Dec 2003 Posts: 173 Location: Vienna, Austria
|
Posted: Tue Jan 11, 2005 9:02 pm Post subject: |
|
|
Thanks for your howto. You write there that udev depends on sysfsutils. I cannot confirm this, when I emerged udev it wasn't installed and there seems to be no dependency. Is sysfsutils really needed?
regards,
airflow |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Wed Jan 12, 2005 1:13 am Post subject: |
|
|
not any more.. udev comes with its own copy of libsysfs _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Thu Jan 13, 2005 11:06 am Post subject: |
|
|
Thanks for the notification, I wasn't aware of the change in deps.
Later: Updated UDEV Primer, with the sysfsutils information.
I am not a Gentoo Dev, so if someone finds out information like this, feel free to notify me. Otherwise, I usually don't hear about it until there is a complaint or someone has a problem. Thanks. _________________ Support bacteria – they’re the only culture some people have.”
– Steven Wright |
|
Back to top |
|
|
bitflux n00b
Joined: 18 Oct 2004 Posts: 41
|
Posted: Thu Jan 20, 2005 3:13 am Post subject: |
|
|
I posted this in another thread but got no response, and this looks like a better place for it anyhow.
Now that I'm running a 100% udev system I'm unable to access a 1680 KB formatted floppy. When I had devfs there was a device node called fdu1680 which allowed me to mount it like so:
Code: | mount -t msdos /dev/fdu1680 /mnt/floppy |
Under udev the fdu1680 device is not automatically created. What is the proper way to get udev to do so? Simply adding a symlink in the "fd" entry in /etc/udev/rules.d/50-udev.rules doesn't work because the created node doesn't get assigned a minor number of 44 like it needs. What am I missing? |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Thu Jan 20, 2005 4:14 am Post subject: |
|
|
Don't have much time to look at this, but you could create it in local.start like we did before for the nvidia devices.
Then file a bug report so Greg will see it.
Cause looks like a device that might have not been added to udev yet. At least I have never seen it. _________________ Support bacteria – they’re the only culture some people have.”
– Steven Wright |
|
Back to top |
|
|
bitflux n00b
Joined: 18 Oct 2004 Posts: 41
|
Posted: Thu Jan 20, 2005 4:21 am Post subject: |
|
|
Decibels wrote: | Don't have much time to look at this, but you could create it in local.start like we did before for the nvidia devices.
Then file a bug report so Greg will see it.
Cause looks like a device that might have not been added to udev yet. At least I have never seen it. |
I'll give that a shot.
By the way, you'll find many devices that may not be in udev listed here:
http://www.bb-zone.com/SLGFG/chapterA.html
The one I'm needing is listed in Table A-6. |
|
Back to top |
|
|
bitflux n00b
Joined: 18 Oct 2004 Posts: 41
|
Posted: Thu Jan 20, 2005 4:40 am Post subject: |
|
|
Sorry I'm out of it today. Where I wrote "fdu1680", please substitute that with "fd0u1680".
My problem remains the same however. |
|
Back to top |
|
|
drb n00b
Joined: 16 Dec 2002 Posts: 56 Location: Grand Forks, BC, Canada
|
Posted: Fri Jan 21, 2005 12:39 am Post subject: |
|
|
I really need help with udev. I've been reading and searching the forums, but haven't found the answers yet.
I followed the user docs: http://www.gentoo.org/doc/en/migration-to-2.6.xml and http://www.gentoo.org/doc/en/udev-guide.xml, but have two problems.
I emerged udev, hotplug and coldplug as instructed.
Relevent sections of my kernel (2.6.10-gentoo-r5) config:
Code: | #
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
# CONFIG_DEVFS_FS is not set
# CONFIG_DEVPTS_FS_XATTR is not set
CONFIG_TMPFS=y
# CONFIG_TMPFS_XATTR is not set
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y
|
Code: | #
# General setup
#
CONFIG_LOCALVERSION=""
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_POSIX_MQUEUE is not set
CONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
CONFIG_SYSCTL=y
# CONFIG_AUDIT is not set
CONFIG_LOG_BUF_SHIFT=14
CONFIG_HOTPLUG=y
CONFIG_KOBJECT_UEVENT=y
# CONFIG_IKCONFIG is not set
# CONFIG_EMBEDDED is not set
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_FUTEX=y
CONFIG_EPOLL=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SHMEM=y
CONFIG_CC_ALIGN_FUNCTIONS=0
CONFIG_CC_ALIGN_LABELS=0
CONFIG_CC_ALIGN_LOOPS=0
CONFIG_CC_ALIGN_JUMPS=0
# CONFIG_TINY_SHMEM is not set
|
1) ps -A shows that devfsd is still running and the console shows it being started on boot:
Code: | # ps -A
PID TTY TIME CMD
121 ? 00:00:00 devfsd |
According to the udev-guide "The Gentoo init scripts won't run the devfsd daemon and will deactivate devfs when you boot up."
Why is it still being started? How do I prevent it from being started?
2) The printer stopped working. It was directed at URI: parallel:/dev/printers/0. This device no longer exists. Code: | # ls -al /dev/printers
ls: /dev/printers: No such file or directory | According to the udev-guide "Gentoo will use udev but keep a static /dev so that you will never have any missing device nodes. "
Since I will never have any missing device nodes and /dev/printers/0 is missing, what device should CUPS be set to for my parallel printer?
Thanks in advance!
Darrell
Update:
Solved this by:
emerge -e system,
fix_libtool_files.sh 3.3.4,
revdep-rebuild,
libperl_rebuilder,
and upgrading from gentoo-dev-sources-2.6.10-r5 to 2.6.-10-r6.
Something was corupted and this seems to have fixed it.
Last edited by drb on Sun Jan 23, 2005 4:48 am; edited 1 time in total |
|
Back to top |
|
|
A.S. Pushkin Guru
Joined: 09 Nov 2002 Posts: 418 Location: dx/dt, dy/dt, dz/dt, t
|
Posted: Fri Jan 21, 2005 10:27 pm Post subject: migrating from devfsd -> udev |
|
|
I have followed a number of the discussions.
I recompiled kernel per suggestions with most already taken care of and did an emerge on udev.
Though I have a /sys I'm seeing nothing in it. Should I?
I might add that I do see a typical scsi sort of listing in /dev/ide/host0/
It leads to listing for my primary and secondary controllers. Also I have what I assume is the old listing or perhaps that is the udev listing hd with cd being the secondary controller.
I also have a /proc/sys filled with info, but I suspect I need do more.
Any input is appreciated. _________________ ASPushkin
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Sat Jan 22, 2005 1:43 am Post subject: |
|
|
if you arent careful you could avoid compiling sysfs support into your kernel
you could try mounting it with
mount -t sysfs none /sys
and checking that sysfs is listed in /proc/filesystems _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
A.S. Pushkin Guru
Joined: 09 Nov 2002 Posts: 418 Location: dx/dt, dy/dt, dz/dt, t
|
Posted: Sun Jan 23, 2005 9:43 am Post subject: 2.4 kernel and udev |
|
|
I do not see it mentioned, but though it appears 2.6 comes with sysfs and necessary utilities 2.4 does not. I ahve looked at the kernel migration doc and my intent, for now, is to simply retain the 2.4.26 kernel, but switch to the udev system.
This leads to my question. The udev I have currently installed does not supply all necessary utilities, I believe. sysfsutils would seem to be necessary to fully implement udev on a 2.4 system. Would someone confirm or elaborate on this question for me?
Yes, I realize I could simply fully upgrade to 2.6, but this is my first Gentoo install and I am anxious to continue building it. I have another set of partitions that I will wipe, currently, SuSE 9.0, and never very fully functional, which is quite a contrast to my first step into Gentoo.
Thanks. _________________ ASPushkin
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Sun Jan 23, 2005 12:04 pm Post subject: |
|
|
udev requires sysfs. sysfs is present in linux 2.6 and not on linux 2.4
if you are still using 2.4 then you cannot use udev. _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
mlybarger Guru
Joined: 04 Sep 2002 Posts: 475
|
Posted: Wed Mar 02, 2005 3:42 am Post subject: |
|
|
i've been noticing a lot of instability in udev (or at least gentoo's udev configuration). when ever i upgrade my udev, i seem to have local rules that no longer work. today, i'm trying to mount my digital camera. i had a rule setup to create a symlink to /dev/camera (from /etc/udev/rules.d/10-custom-udev.rules):
Code: |
BUS="usb", SYSFS{idVendor}="04cb", SYSFS{idProduct}="0126", NAME="%k", SYMLINK="camera"
|
i got those id's from using
Code: |
udevinfo -a -p /sys/block/sda/
|
Code: |
looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.1/usb2/2-1':
BUS="usb"
ID="2-1"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="00"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}=" 50mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="1000"
SYSFS{bmAttributes}="c0"
SYSFS{detach_state}="0"
SYSFS{devnum}="25"
SYSFS{idProduct}="0126"
SYSFS{idVendor}="04cb"
SYSFS{maxchild}="0"
SYSFS{product}="USB Mass Storage"
SYSFS{serial}="Y-511^^^^^031125XFPX0001029231"
SYSFS{speed}="12"
SYSFS{version}=" 2.00"
|
and finally, dmesg:
Code: |
sda: assuming Write Enabled
sda: assuming drive cache: write through
/dev/scsi/host24/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi24, channel 0, id 0, lun 0
USB Mass Storage device found at 25
|
and lsmod:
Code: |
mark@robusta rules.d $ lsmod
Module Size Used by
sd_mod 17472 0
usb_storage 27328 0
scsi_mod 69632 2 sd_mod,usb_storage
via_rhine 17736 0
snd_via82xx 23684 0
snd_ac97_codec 65860 1 snd_via82xx
snd_mpu401_uart 6144 1 snd_via82xx
snd_rawmidi 20580 1 snd_mpu401_uart
snd_seq_device 6792 1 snd_rawmidi
ehci_hcd 25796 0
uhci_hcd 28944 0
yenta_socket 18112 0
pcmcia_core 51724 1 yenta_socket
shpchp 93292 0
via_agp 6784 1
agpgart 27368 1 via_agp
snd_pcm_oss 49576 0
snd_pcm 85512 2 snd_via82xx,snd_pcm_oss
snd_page_alloc 9032 2 snd_via82xx,snd_pcm
snd_timer 21572 1 snd_pcm
snd_mixer_oss 17728 1 snd_pcm_oss
snd 47268 9 snd_via82xx,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
ndiswrapper 64396 0
|
any ideas would be most appreciated. i'm currently on udev 052, and i don't recall what i upgraded from or when my camera worked last, i don't use it every day or every upgrade for that matter.
thanks! |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Wed Mar 02, 2005 3:50 am Post subject: |
|
|
Remerge udev-050 and see if you still have the problem. I find myself keep going back to that version.
The newer ones keep screwing with my flashdisk and no devices is created. _________________ Support bacteria – they’re the only culture some people have.”
– Steven Wright |
|
Back to top |
|
|
mlybarger Guru
Joined: 04 Sep 2002 Posts: 475
|
Posted: Wed Mar 02, 2005 11:08 pm Post subject: |
|
|
actually, i had to take it back to 045. 050 didn't seem to work either, so i removed the sys-fs/udev from the /etc/portage/package.keywords. now the camera shows up fine. udev must be very very dependant on other systems/packages. and perhaps, very dependant on specific versions of those other packages.
frustrating. |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Thu Mar 03, 2005 12:32 am Post subject: |
|
|
Lately is has been frustrating. Emerge newer udev, go back to 050,...... It is usually at
a time need my flashdrive to work also. _________________ Support bacteria – they’re the only culture some people have.”
– Steven Wright |
|
Back to top |
|
|
skakz Guru
Joined: 03 Jul 2004 Posts: 380 Location: Ischia/Napoli/Italia/Terra
|
Posted: Sat May 21, 2005 6:23 pm Post subject: |
|
|
hi all,
i have two problems:
1) automount for my mega external HD doesn't work
Code: |
omega root # ls -aFl /etc/dev.d/maxtor1/automount.dev
4,0K -rwxr-xr-x 1 root root 219 14 mag 16:33 /etc/dev.d/maxtor1/automount.dev*
omega root # cat /etc/dev.d/maxtor1/automount.dev
#!/bin/bash
if [ "$ACTION" == "add" ] ; then
logger -t dev.d "Mounting external HD"
/bin/mount /mnt/maxtor
fi
if [ "$ACTION" == "remove" ] ; then
logger -t dev.d "Unmounting external HD"
/bin/umount /mnt/maxtor
fi
omega root #
|
2) i have an mp3 reader that have incorporated a flash memory storage, but it is also an SD/MMC writer/reader.
what is the rule for mounting flash memory and my SD both?
they have same "vendor", "model", or "serial"
Code: |
lsscsi
[6:0:0:0] disk Maxtor OneTouch 0201 /dev/sda
[7:0:0:0] disk Digital MP3 Music Player 0100 /dev/sdb
[7:0:0:1] disk Digital MP3 Music Player 0100 /dev/sdc
|
Code: |
udevinfo -a -p /sys/block/sdb
[cut]
BUS="scsi"
ID="7:0:0:0"
DRIVER="sd"
SYSFS{detach_state}="0"
SYSFS{device_blocked}="0"
SYSFS{max_sectors}="240"
SYSFS{model}="MP3 Music Player"
SYSFS{queue_depth}="1"
SYSFS{queue_type}="none"
SYSFS{rev}="0100"
SYSFS{scsi_level}="5"
SYSFS{state}="running"
SYSFS{timeout}="30"
SYSFS{type}="0"
SYSFS{vendor}="Digital "
looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.3/usb5/5-1/5-1:1.0/host9/target9:0:0':
BUS=""
ID="target9:0:0"
DRIVER="unknown"
SYSFS{detach_state}="0"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.3/usb5/5-1/5-1:1.0/host9':
BUS=""
ID="host9"
DRIVER="unknown"
SYSFS{detach_state}="0"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.3/usb5/5-1/5-1:1.0':
BUS="usb"
ID="5-1:1.0"
DRIVER="usb-storage"
SYSFS{bAlternateSetting}=" 0"
SYSFS{bInterfaceClass}="08"
SYSFS{bInterfaceNumber}="00"
SYSFS{bInterfaceProtocol}="50"
SYSFS{bInterfaceSubClass}="06"
SYSFS{bNumEndpoints}="02"
SYSFS{detach_state}="0"
SYSFS{interface}="Internal Device"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.3/usb5/5-1':
BUS="usb"
ID="5-1"
DRIVER="usb"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="00"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}="500mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="1001"
SYSFS{bmAttributes}="80"
SYSFS{configuration}="Digital MP3 Music Player"
SYSFS{detach_state}="0"
SYSFS{devnum}="4"
SYSFS{idProduct}="8206"
SYSFS{idVendor}="066f"
SYSFS{manufacturer}="Digital "
SYSFS{maxchild}="0"
SYSFS{product}="MP3 Music Player"
SYSFS{serial}="0002F67B407B841A"
SYSFS{speed}="12"
SYSFS{version}=" 1.10"
[cut]
|
Code: |
udevinfo -a -p /sys/block/sdc
[cut]
BUS="scsi"
ID="7:0:0:1"
DRIVER="sd"
SYSFS{detach_state}="0"
SYSFS{device_blocked}="0"
SYSFS{max_sectors}="240"
SYSFS{model}="MP3 Music Player"
SYSFS{queue_depth}="1"
SYSFS{queue_type}="none"
SYSFS{rev}="0100"
SYSFS{scsi_level}="5"
SYSFS{state}="running"
SYSFS{timeout}="30"
SYSFS{type}="0"
SYSFS{vendor}="Digital "
looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.3/usb5/5-1/5-1:1.0/host9/target9:0:0':
BUS=""
ID="target9:0:0"
DRIVER="unknown"
SYSFS{detach_state}="0"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.3/usb5/5-1/5-1:1.0/host9':
BUS=""
ID="host9"
DRIVER="unknown"
SYSFS{detach_state}="0"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.3/usb5/5-1/5-1:1.0':
BUS="usb"
ID="5-1:1.0"
DRIVER="usb-storage"
SYSFS{bAlternateSetting}=" 0"
SYSFS{bInterfaceClass}="08"
SYSFS{bInterfaceNumber}="00"
SYSFS{bInterfaceProtocol}="50"
SYSFS{bInterfaceSubClass}="06"
SYSFS{bNumEndpoints}="02"
SYSFS{detach_state}="0"
SYSFS{interface}="Internal Device"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:10.3/usb5/5-1':
BUS="usb"
ID="5-1"
DRIVER="usb"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="00"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}="500mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="1001"
SYSFS{bmAttributes}="80"
SYSFS{configuration}="Digital MP3 Music Player"
SYSFS{detach_state}="0"
SYSFS{devnum}="4"
SYSFS{idProduct}="8206"
SYSFS{idVendor}="066f"
SYSFS{manufacturer}="Digital "
SYSFS{maxchild}="0"
SYSFS{product}="MP3 Music Player"
SYSFS{serial}="0002F67B407B841A"
SYSFS{speed}="12"
SYSFS{version}=" 1.10"
[cut]
|
rules that i have tryed are:
Code: |
BUS="scsi",SYSFS{vendor}="Maxtor",SYSFS{model}="OneTouch",KERNEL="sd*",NAME="%k",SYMLINK="maxtor%n"
BUS="scsi",SYSFS{vendor}="Digital",SYSFS{model}="MP3 Music Player",KERNEL="sd*",NAME="%k",SYMLINK="magnex%n"
|
but that are the results
Code: |
omega root # udevstart
omega root # ls /dev/ma* -Afl
lrwxrwxrwx 1 root root 3 15 mag 16:16 /dev/magnex -> sdc
lrwxrwxrwx 1 root root 4 15 mag 16:16 /dev/magnex1 -> sdc1
lrwxrwxrwx 1 root root 3 15 mag 16:16 /dev/maxtor -> sda
lrwxrwxrwx 1 root root 4 15 mag 16:16 /dev/maxtor1 -> sda1
|
thank you for helping _________________ Linux Registered User n.340423
Linux User Group Ischia
www.tush.it |
|
Back to top |
|
|
urcindalo l33t
Joined: 08 Feb 2005 Posts: 623 Location: Almeria, Spain
|
Posted: Wed Nov 16, 2005 4:27 pm Post subject: |
|
|
First of all, thanks for your time and for helping me out.
I have problems with udev, too. In my case, I'm trying to configure autodetection and automounting for a Sony USB 2.0 flash disk incorporating a Memory Stick reader.
This is what I get from lsusb: Code: | # lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 004: ID 054c:011d Sony Corp.
Bus 001 Device 003: ID 054c:011c Sony Corp.
Bus 001 Device 002: ID 054c:011e Sony Corp.
Bus 001 Device 001: ID 0000:0000
# lsusb -t
Bus# 5
`-Dev# 1 Vendor 0x0000 Product 0x0000
Bus# 4
`-Dev# 1 Vendor 0x0000 Product 0x0000
Bus# 3
`-Dev# 1 Vendor 0x0000 Product 0x0000
Bus# 2
`-Dev# 1 Vendor 0x0000 Product 0x0000
Bus# 1
`-Dev# 1 Vendor 0x0000 Product 0x0000
`-Dev# 2 Vendor 0x054c Product 0x011e
|-Dev# 3 Vendor 0x054c Product 0x011c
`-Dev# 4 Vendor 0x054c Product 0x011d
# |
This is the info from "dmesg": Code: | usb 1-8: new high speed USB device using ehci_hcd and address 2
hub 1-8:1.0: USB hub found
hub 1-8:1.0: 2 ports detected
usb 1-8.1: new high speed USB device using ehci_hcd and address 3
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb 1-8.2: new high speed USB device using ehci_hcd and address 4
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
Vendor: Sony Model: Storage Media Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: Write Protect is off
sda: Mode Sense: 00 06 00 00
sda: assuming drive cache: write through
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
sda: Write Protect is off
sda: Mode Sense: 00 06 00 00
sda: assuming drive cache: write through
sda: unknown partition table
Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi2, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
Vendor: Sony Model: USM-MS Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 00
Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 0
Attached scsi generic sg1 at scsi3, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete |
The following two commands demonstrate the system is aware of its presence once plugged in.
Before: Code: | # ls /dev/sd* -Afl
ls: /dev/sd*: No existe el fichero o el directorio
# |
After: Code: | ls /dev/sd* -Afl
brw-rw---- 1 root disk 8, 0 nov 16 17:19 /dev/sda
brw-rw---- 1 root disk 8, 16 nov 16 17:19 /dev/sdb
# |
On the other hand, my system does _NOT_ show the message Code: | mounting ramfs at /dev | at boot time. What can I try to solve this issue? Is this related to udev not working properly?
Also, where is the system boot log, so that I can take a closer look at it and post the relevant part here? |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Wed Nov 16, 2005 6:23 pm Post subject: |
|
|
if sda is appearing after plugin then udev is doing its job just fine. have you tried mounting it? _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
urcindalo l33t
Joined: 08 Feb 2005 Posts: 623 Location: Almeria, Spain
|
Posted: Wed Nov 16, 2005 10:03 pm Post subject: |
|
|
dsd wrote: | if sda is appearing after plugin then udev is doing its job just fine. have you tried mounting it? |
Thanks for your help. Yes. I used to have an entry in /etc/fstab for that purpose, and an icon in my KDE desktop. Double-clicking the icon would mount the flash disk.
However, I'm trying to get the system to automatically detect when the flash disk is inserted AND place the corresponding icon on the desktop. To achieve that, I followed the HOWTO in this thread: HOWTO Fully Automated USB mounting using udev [WIP], yet to no avail.
I think the problem might be that I don't see (get?) /dev mounted on ramfs at boot. At least, that is what is explained at the end of point 5 in this page: UDEV Primer Quote: | Now at this point you might think you actually have udev, sysfs and hotplug installed and ready to go. Sorry, but NO. Until sysfs is mounted, /dev mounted in ramfs and hotplug started you aren't really doing anything. You will see changes in /sys if remove or add devices, but the system is not doing anything with this information. |
Is that the reason for my failure, or is it something else?
And, is there an easier and working method to achieve what I want using udev? |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Thu Nov 17, 2005 10:01 am Post subject: |
|
|
i think you are reading into that too much - if nodes are being created on plugin in /dev then your udev is definately working/
you can find out which filesystem /dev is on by running "mount".
mine says:
Code: | udev on /dev type tmpfs (rw,nosuid) |
so mine isnt on ramfs either... and it works just fine _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|