View previous topic :: View next topic |
Author |
Message |
disperato Tux's lil' helper
Joined: 27 Apr 2004 Posts: 120
|
Posted: Sat Dec 24, 2005 9:27 am Post subject: /dev/sda not created |
|
|
I really can't figureout why this damn /dev/sda is not created when I insert my usb pendrive:
When I plug the usb pendrive in:
Quote: | cat /proc/partitions
major minor #blocks name
3 0 58605120 hda
3 1 31455238 hda1
3 2 1 hda2
3 5 6265318 hda5
3 6 6474163 hda6
3 7 257008 hda7
3 8 1180746 hda8
3 9 9140953 hda9
3 10 3831471 hda10
8 0 253952 sda
8 1 253936 sda1 |
Quote: | udevmonitor prints the received event from the kernel [UEVENT]
and the event which udev sends out after rule processing [UDEV]
UEVENT[1135416341.409724] add@/devices/pci0000:00/0000:00:10.3/usb1/1-4
UEVENT[1135416341.410690]
add@/devices/pci0000:00/0000:00:10.3/usb1/1-4/1-4:1.0
UEVENT[1135416341.686746] add@/devices/pci0000:00/0000:00:10.3/usb1/1-4/1-4.1
UEVENT[1135416341.687493]
add@/devices/pci0000:00/0000:00:10.3/usb1/1-4/1-4.1/1-4.1:1.0
UEVENT[1135416341.687877] add@/class/scsi_host/host2
UEVENT[1135416346.689100]
add@/devices/pci0000:00/0000:00:10.3/usb1/1-4/1-4.1/1-4.1:1.0/host2/target2:0:0/
2:0:0:0 |
Quote: | ls: /dev/sd*: No such file or directory |
Quote: | ls: /dev/sg*: No such file or directory |
Quote: | ls: /dev/sg: No such file or directory |
Quote: | ls: /dev/us*: No such file or directory |
Quote: |
dmesg | grep -i usb:
usb 1-4: new high speed USB device using ehci_hcd and address 5
hub 1-4:1.0: USB hub found
hub 1-4:1.0: 1 port detected
usb 1-4.1: new high speed USB device using ehci_hcd and address 6
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
Vendor: LG Model: USB Drive 2.0 Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 507904 512-byte hdwr sectors (260 MB)
sda: Write Protect is off
sda: Mode Sense: 00 26 00 00
sda: assuming drive cache: write through
SCSI device sda: 507904 512-byte hdwr sectors (260 MB)
sda: Write Protect is off
sda: Mode Sense: 00 26 00 00
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete
|
If unplugged:
Quote: | cat /proc/partitions
major minor #blocks name
3 0 58605120 hda
3 1 31455238 hda1
3 2 1 hda2
3 5 6265318 hda5
3 6 6474163 hda6
3 7 257008 hda7
3 8 1180746 hda8
3 9 9140953 hda9
3 10 3831471 hda10 |
Quote: | udevmonitor prints the received event from the kernel [UEVENT]
and the event which udev sends out after rule processing [UDEV]
UEVENT[1135416257.149412] remove@/class/scsi_device/1:0:0:0
UEVENT[1135416257.149453] remove@/block/sda/sda1
UEVENT[1135416257.149461] remove@/block/s
da
UEVENT[1135416257.149467]
remove@/devices/pci0000:00/0000:00:10.3/usb1/1-4/1-4.1/1-4.1:1.0/host1/target1:0
:0/1:0:0:0
UEVENT[1135416257.149474] remove@/class/scsi_host/host1
UEVENT[1135416257.149481]
remove@/devices/pci0000:00/0000:00:10.3/usb1/1-4/1-4.1/1-4.1:1.0
UEVENT[1135416257.150121]
remove@/devices/pci0000:00/0000:00:10.3/usb1/1-4/1-4.1
UEVENT[1135416257.151001]
remove@/devices/pci0000:00/0000:00:10.3/usb1/1-4/1-4:1.0
UEVENT[1135416257.151216] remove@/devices/pci0000:00/0000:00:10.3/usb1/1-4 |
Significant options which are turned on into the kernel (modules I've choosen to built-in):
Quote: | grep -i usb /usr/src/linux/.config | grep -v \#
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_ACM=m
CONFIG_USB_PRINTER=y
CONFIG_USB_STORAGE=y
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_STORAGE_USBAT=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_USB_MON=y
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_PL2303=y
CONFIG_USB_SERIAL_HP4X=y
CONFIG_USB_LCD=m
|
Quote: | # SCSI device support
#
CONFIG_SCSI=y
# CONFIG_SCSI_PROC_FS is not set
#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=m
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_CHR_DEV_SG=y
#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
#
# SCSI low-level drivers
#
CONFIG_SCSI_QLA2XXX=y
|
Quote: | # Partition Types
#
CONFIG_PARTITION_ADVANCED=y
CONFIG_MSDOS_PARTITION=y
CONFIG_LDM_PARTITION=y
CONFIG_LDM_DEBUG=y
|
hotplug and coldplug installed and started on boot
Why, why the device /dev/sda is not created when I plug in the usb pendrive?
forgive me for this new post on the same issue already shown in
https://forums.gentoo.org/viewtopic-t-415812-highlight-dev+sda.html
Here I've bette focused the problem. Hope this help us to fix it |
|
Back to top |
|
|
JloR n00b
Joined: 29 Jun 2004 Posts: 43 Location: Denmark
|
Posted: Sat Dec 24, 2005 12:49 pm Post subject: |
|
|
What about lsmod? Did you load the USB modules? _________________ -- Jakob L. O. Rosenlund |
|
Back to top |
|
|
disperato Tux's lil' helper
Joined: 27 Apr 2004 Posts: 120
|
Posted: Sat Dec 24, 2005 1:55 pm Post subject: |
|
|
JloR wrote: | What about lsmod? Did you load the USB modules? |
thank for the answer (*)
In my case lsmod doesn't say nothing about USB modules, because I've choosen to compile them inside the kernel, not loadable with modprobe.
The problem looks related to MAKEDEV or permissions or...? I don't know...
Right a few minutes ago I've found a solution, but it's a very dirty trick
I'v added the following line at the bottom of /etc/conf.d/local.start:
cd /dev && MAKEDEV sda
and it works either with the usb pendrive plugged or not on boot.
It's not so critical, but I still wonder why this strange, sudden behaviour from hotplug & co.
thanx
(*) always thanx for any answer but in this case especially, 'cause I realized that "damn" could cause offense in some culture.If so, I did'nt do it intentionally and apologize. |
|
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
|
|