usb memory 마운트 하는 방법에 대하여 조언을 구합니다.

bklee9의 이미지

안녕하세요 리눅스 완전초짜입니다.
임베디드 시스템에서 USB memory를 마운트하여 사용하려는데,
마운트가 되지 않습니다. 무엇을 확인하여야 할지 모르겠는데,
고수님들의 조언 부탁드립니다.

리눅스 버젼 :
# uname -ar
Linux 2.6.11.7-1.07.0malindi #117 Fri Sep 22 11:28:00 KST 2006 armv4tl unknown

커널 정보 출력시 usb를 인식한 것으로 보입니다 :
#dmesg
hub 1-0:1.0: state 5 ports 2 chg 0000 evt 0002
m828xx-ohci m828xx-ohci: GetStatus roothub.portstatus [0] = 0x00010101 CSC PPS CCS
hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
m828xx-ohci m828xx-ohci: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
usb 1-1: new full speed USB device using m828xx-ohci and address 2
m828xx-ohci m828xx-ohci: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: default language 0x0409
usb 1-1: Product: Flash Disk
usb 1-1: Manufacturer: USB
usb 1-1: SerialNumber: 181C19E53FB846E2
usb 1-1: hotplug
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
usb 1-1:1.0: hotplug
hub 1-0:1.0: state 5 ports 2 chg 0000 evt 0002
hub 1-0:1.0: state 5 ports 2 chg 0000 evt 0002
m828xx-ohci m828xx-ohci: GetStatus roothub.portstatus [0] = 0x00030100 PESC CSC PPS
hub 1-0:1.0: port 1, status 0100, change 0003, 12 Mb/s
usb 1-1: USB disconnect, address 2
usb 1-1: usb_disable_device nuking all URBs
usb 1-1: unregistering interface 1-1:1.0
usb 1-1:1.0: hotplug
usb 1-1: unregistering device
usb 1-1: hotplug
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100

커널 모듈정보시 usb모듈이 구동되지 않았나여(?)
# lsmod
Module Size Used by Tainted: P
devBootEnv 12076 0 - Live 0xbf009000
devgpio 2628 0 - Live 0xbf007000
csmencaps 22192 0 - Live 0xbf000000
#

usb메모리 plugin시 메세지 :
#
usb 1-1: new full speed USB device using m828xx-ohci and address 3
usb 1-1: Product: Flash Disk
usb 1-1: Manufacturer: USB
usb 1-1: SerialNumber: 181C19E53FB846E2

디바이스 정보 :
/proc/bus # ls -l /dev/
-rwxrwxrwx 1 518 519 6076 Feb 8 04:21 ELDK_MAKEDEV
crwxrwxrwx 1 518 519 242, 0 Feb 8 04:21 bootenv
crwxrwxrwx 1 518 519 5, 1 Apr 5 09:00 console
crwxrwxrwx 1 518 519 245, 0 Feb 8 06:21 devgpio
crwxrwxrwx 1 518 519 246, 0 Feb 8 06:21 devled
-> fb0rwx 1 0 0 3 Oct 19 2006 fb
-> flasha3 1 0 0 7 Oct 19 2006 flash_environment
-> flasha2 1 0 0 7 Oct 19 2006 flash_kernel
-> flasha1 1 0 0 7 Oct 19 2006 flash_monitor
-> flasha4 1 0 0 7 Oct 19 2006 flash_reserved
-> nullwx 1 0 0 4 Oct 19 2006 mouse
crwxrwxrwx 1 518 519 90, 0 Jun 9 2006 mtd0
crwxrwxrwx 1 518 519 90, 2 Jun 9 2006 mtd1
crwxrwxrwx 1 518 519 90, 4 Jun 9 2006 mtd2
crwxrwxrwx 1 518 519 90, 6 Jun 9 2006 mtd4
crwxrwxrwx 1 518 519 90, 8 Jun 9 2006 mtd5
brwxrwxrwx 1 518 519 31, 0 Jun 9 2006 mtdblock0
brwxrwxrwx 1 518 519 31, 1 Jun 9 2006 mtdblock1
brwxrwxrwx 1 518 519 31, 2 Feb 8 04:21 mtdblock2
brwxrwxrwx 1 518 519 31, 3 Feb 8 05:35 mtdblock3
brwxrwxrwx 1 518 519 31, 4 Feb 8 05:35 mtdblock4
brwxrwxrwx 1 518 519 31, 5 Feb 11 04:51 mtdblock5
brwxrwxrwx 1 518 519 8, 0 Jul 13 2006 sda
brwxrwxrwx 1 518 519 8, 1 Jul 13 2006 sda1
crw--w--w- 1 0 0 4, 64 Apr 5 09:39 ttyS0

# ls -l /mnt
drwxrwxrwx 1 0 0 512 Sep 22 2006 csp
drwxrwxr-x 1 518 519 512 Oct 19 2006 msp
drwxrwxrwx 1 518 519 512 May 15 2006 nand1
drw-rw-rw- 1 0 0 2048 Jan 1 1970 nand2
drwxrwxrwx 1 518 519 512 May 15 2006 usb

마운트 수행 :
# more /etc/fstab
/dev/mtdblock2 / yaffs default 0 0
/dev/sda /mnt/usb vfat noauto,users,iocharset=utf8,codepage=949,uid=1000,gid=1000 0 2

# mount /dev/sda /mnt/usb
mount: Mounting /dev/sda on /mnt/usb failed: No such device or address

마운트 수행시 에러가 발생합니다.

절차가 잘못되었는지, 아니면 모듈이 구동되지 않았는지 고수님들 도와주세요 ^^

mrjh76의 이미지

언듯~ 보기에...

mount /dev/sda1 /mnt/usb 해야 하지 않나요?
fstab도... sda->sda1 으로 바꿔줘야 할듯 하고요~~

임베디드 환경이긴 하지만... 일반 USB 메모리 접근은... PC에서와 같을텐데...

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.