USB 에 관한 두가지 질문입니다.

intelbio의 이미지

커널 2.6.10 을 쓰고 있습니다.

그런데 부팅할때 /proc/bus/usb/driver no such file and directory~ 라고 나오길래

이동해 보니 /proc/bus/usb 안에 device 는 있는데 driver 이 없습니다. 이는 어떻게 생성하면 되는지요?

그리고 MP3 player 를 꼽고 dmesg 를 치면 아래와 같은 메세지가 나옵니다.

usb 2-3: USB disconnect, address 2
ohci_hcd 0000:00:02.0: wakeup
usb 2-3: new full speed USB device using ohci_hcd and address 3
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
Vendor: MFSYSTEM Model: IOPS MFP SERIES Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete

# mount /dev/sda1 /mnt/USB
위와 같이 입력하면 아래와 같이 나옵니다.
mount: /dev/sda1 is not a valid block device

현재 lsmod 를 쳤을 때는

Module Size Used by
vfat 13644 -
fat 41568 -
usb_storage 69856 -
scsi_mod 82156 -
ide_cd 41952 -
cdrom 40800 -
agpgart 34184 -
lp 11816 -
autofs 15532 -
nvnet 70912 -
ipt_REJECT 6988 -
iptable_filter 3372 -
ip_tables 17116 -
ohci1394 34508 -
ieee1394 110032 -
parport_pc 28036 -
parport 36448 -
usbhid 25132 -

다음과 같이 나옵니다. 뭐가 문제일까요?

답변 부탁드리겠습니다. 좋은 하루 되세요

지리즈의 이미지

intelbio wrote:
커널 2.6.10 을 쓰고 있습니다.

그런데 부팅할때 /proc/bus/usb/driver no such file and directory~ 라고 나오길래

이동해 보니 /proc/bus/usb 안에 device 는 있는데 driver 이 없습니다. 이는 어떻게 생성하면 되는지요?

어디서 무엇이 /proc/bus/usb/driver에 접근을 시도하나요?

intelbio wrote:

# mount /dev/sda1 /mnt/USB
위와 같이 입력하면 아래와 같이 나옵니다.
mount: /dev/sda1 is not a valid block device

이건 fdisk -l /dev/sda로
확인해보시기 바랍니다.

primary Partition없이
확장파티션에 로지컬로 파티션으로 설정되어 있으면,
/dev/sda5부터 보통은 시작되지요...

primary Partition(ex./dev/sda1)으로 잡으면,
M$ 운영체제가, 다른 모든 확장파티션 보다
우선적인 드라이버 넘버를 할당하는 경우가 있기 때문에
드라이브 순서가 뒤죽박죽이 되는 것을 막기 위해
외장장비들은 위와 같이 파티션설정을 하는 것이
일종의 관례입니다.

There is no spoon. Neo from the Matrix 1999.

지리즈의 이미지

fdisk -l /dev/sda 소문자 L이고 루트 권한으로 실행하셔야 합니다.

There is no spoon. Neo from the Matrix 1999.

intelbio의 이미지

답변감사합니다.

/proc/bus/usb/drivers 로 접근하려는 것은

USB filesystem 이 mount 접근을 하려다가 no such file and directory~~

가 되는 것입니다.

그리고 말씀하신대로 windows XP 와 함께 운영체제를 grub 를 이용해

쓰고 있습니다. 하지만

fdisk -l /dev/sda 를 입력했을 시 아무런 반응이 없습니다.

fdisk -l 만 입력하면 hda 에 대한 정보가 쭉 뜨는데요.

죄송하지만 좀 더 답변 해 주실수 있으신지요..?

정태영의 이미지

Quote:
Initializing USB Mass Storage driver...
scsi2 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
Vendor: Model: TS0MFLRD7 Rev: 1.03
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdb: 250880 512-byte hdwr sectors (128 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
ioctl_internal_command: <2 0 0 0> return code = 8000002
: Current: sense key=0x4
ASC=0x0 ASCQ=0x5
ILI
SCSI device sdb: 250880 512-byte hdwr sectors (128 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
sdb: sdb1
Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
Vendor: Model: TS0MFLRD7 Rev: 1.03
Type: Direct-Access ANSI SCSI revision: 00
Attached scsi removable disk sdc at scsi2, channel 0, id 0, lun 1
Vendor: Model: TS0MFLRD7 Rev: 1.03
Type: Direct-Access ANSI SCSI revision: 00
Attached scsi removable disk sdd at scsi2, channel 0, id 0, lun 2
usb-storage: device scan complete

정상적으로 잡힐 땐 위와 같이...
Attached scsi removable disk sdd at scsi2, channel 0, id 0, lun 2

이런 메시지가 나옵니다...

hotplug 등으로 자동인식한 것인가요? 아님 직접 usb-storage 모듈을 올리셨나요?
sd_mod (scsi disk module) 이 안보이는게 의심스럽군요...

오랫동안 꿈을 그리는 사람은 그 꿈을 닮아간다...

http://mytears.org ~(~_~)~
나 한줄기 바람처럼..

지리즈의 이미지

일단 저도 /proc/bus/usb/drivers가 없습니다.

일단 구글링을 해보니, 옛날 문서에는 있는데, 요즘 문서에는 등장안하고,
kernel 도큐먼트에서도 있었는데 누락된 것을 보면, obsolute하거나
2.6커널은 더 이상 지원을 안하는 것 같습니다.

혹시 커널을 업그래이드 하면서, usb관련 라이브러리도 업그래이드가
되었는지 확인부탁드립니다.

실제로 인터넷에 떠도는 script 파일을 봐도,
정보를 조회해서 사용자에게 보여주는 것 외에는
별다른 기능을 하지 않고
실제, 중요한 정보들은 devices를 사용하고 있습니다.
따라서, drivers가 없다고 해서, 크게 문제가 될것 같지는 않습니다.

fdisk -l /dev/XXX 는 현재 시스템에
부착된 블록디바이스들의 파티션 정보를 조회하는 명령입니다.
USB외장 하드들은 일반적으로 SCSI로 인식됨으로
sdX로 디바이스를 할당받습니다.
저 같은 경우는 sda로 받았는데, 경우에 따라서 달리 할당받을 수 있습니다.
dmesg에서 어느 디바이스 케릭터를 받았는지 확인해야 합니다.

[root@zirize usb]# lsmod | grep -i usb 
usblp                   6784  0
usb_storage            41288  0
scsi_mod               70352  2 sd_mod,usb_storage
[root@zirize usb]# grep -i usb /etc/modprobe.conf
alias usb-controller uhci-hcd
[root@zirize usb]# lsmod | grep -i uhci
uhci_hcd               19352  0
[root@zirize usb]# ls  /proc/bus/usb
001  devices
[root@zirize usb]# mount | grep -i usb
usbdevfs on /proc/bus/usb type usbdevfs (rw)
[root@zirize linux]# grep -i usb /etc/fstab
[root@zirize linux]# cat /etc/fstab
LABEL=/1                /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda8               /home                   reiserfs defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/hda9               swap                    swap    defaults        0 0
/dev/hdb12              swap                    swap    defaults        0 0
/dev/hdb11              swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              supermount fs=udf:iso9660,noauto,user,ro 0 0
/dev/hda6               /mnt/dos                vfat    noauto,user,iocharset=cp949,uid=0,gid=0

[root@zirize usb]# dmesg | grep -i usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:1f.2: Intel Corp. 82801AA USB
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
usb 1-1: new full speed USB device using address 2
usb 1-2: new full speed USB device using address 3
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04E8 pid 0x3242
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
[root@zirize usb]# dmesg | grep -i scsi
SCSI subsystem initialized
scsi0 : SCSI emulation for USB Mass Storage devices
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 78165360 512-byte hdwr sectors (40021 MB)
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
[root@zirize usb]# fdisk -l /dev/sda

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               2        4865    39070080    f  W95 Ext'd (LBA)
/dev/sda5               2        4865    39070048+   7  HPFS/NTFS

There is no spoon. Neo from the Matrix 1999.

지리즈의 이미지

위의 예는 그냥 외장하드인데,
참고로 저의 mp3플레이어도 USB Mass Storage devices로 잡힙니다.

There is no spoon. Neo from the Matrix 1999.

intelbio의 이미지

여러 답변 감사합니다.

위의 상황은 hotplug 로 자동으로 모듈이 뜬것입니다.

그러고 보니 sd_mod 가 안뜨는군요.

한번 찾아봐야겠습니다.

익명 사용자의 이미지

파일 시스템 문제도 있지 않을런지요? mount -t vfat 옵션을 줘보세요 :)

intelbio의 이미지

문제는 간단했습니다. 죄송합니다 말씀하신대로 sd_mod 가 안뜨는걸

수상히 여겨서 make xconfig 를 들어가보니 scsi drive support 부분이

체크가 안되어 있었습니다. 결국 sd_mod 모듈을 안만들었더군요.

체크하고 다시 하니 mount /dev/sda1 /mnt/USB 명령으로

무사히 마운트 되었습니다. 답변해 주신분들 감사합니다.

좋은하루 되세요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.