LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 06-29-2003, 10:30 PM   #1
chen_shannon
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
Question: how to mount uclinux usb pen drive?help me.


uclinux-dev,
Hi,This is an letter asking for help in uclinux develepment.I use ucLinux-2.4.17.
I think my ucLinux has recogenized usb pen drive now. Following is the prompt. It can tell usb pen drive's attribute(e.g. position,id,size,version). But how can I read files in it? I can't mount it on.Help me,please.
Thanks.Longing for hearing from you.

Yours Sincerely,
        chen_shannon
        chen_shannon@tom.com
          2003-06-30Jasper Bootloader v1.0.0 (Jun 23 2003 15:07:08)
Supports CD_Boot
fip_loadmodule
0BF0boot_disc failed - eject and try to boot from flash
Found romfs @ 0x00006000
Volume Name: PLAYER 0.0.0 匯 6埖 30 09:50:05 CST 2003
linux.bin.gz (looking up...)
.
..
proc
fonts
etc
dev
cdrom
bin
img
minimod
linux.bin.gz
Found
Unzipping image from flash
From: 00067CF0
To: 01008000
Size: 00071EB6
Inptr=
00000014
Inflating....
OutCnt = 000FEF14
Final Inptr=00071EAE
Original CRC =E87B4AED
Computed CRC =E87B4AED
01008000Linux version 2.4.17-uc0 (qychen@RealMagic) (gcc version 2.95.3 20010315
(release)) #37 匯 6埖 30 09:36:11 CST 2003
Processor: ARM pt110 revision 0
Architecture: JASPER
On node 0 totalpages: 1664
zone(0): 1664 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/root
setup_timer: Timer value = 50625
serial_jasper: setup_console @ 38400
jasperuart change speed 131
Calibrating delay loop... 80.69 BogoMIPS
Memory: 6MB = 6MB total
Memory: 5360KB available (929K code, 175K data, 40K init)
Dentry-cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode-cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Starting kswapd
devfs: v1.7 (20011216) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
pty: 256 Unix98 ptys configured
block: 64 slots per queue, batch=16
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
JASPER ide controller activated
ide0: BM-DMA at 0x500e00-0x500e0f, BIOS settings: hdaio, hdbio
enabling dma on drive 0
hda: DV9929PE59V1.000A28260FF, ATAPI CD/DVD-ROM drive
ide0 at 0x500bf0-0x500bf7,0x500be6 on irq 11
hda: ignore DMA off message.
config_drive_for_dma:
capability = 0x000b
field_valid = 0x0002
dma_lword (s) = 0x0000
dma_mword (m) = 0x0407
autodma = 0x0001
hda: ATAPI 32X DVD-ROM drive, 256kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 6000-213BFF [VIRTUAL 6000-213BFF] (RO)
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI DEBUG
Vendor: Foo Inc Model: XYZZY Rev: 1
Type: Direct-Access ANSI SCSI revision: 01
Vendor: Foo Inc Model: XYZZY Rev: 1
Type: Direct-Access ANSI SCSI revision: 01
Vendor: Foo Inc Model: XYZZY Rev: 1
Type: Sequential-Access ANSI SCSI revision: 01
st: Version 20011103, bufsize 32768, wrt 30720, max init. bufs 4, s/g segs 16
Attached scsi tape st0 at scsi0, channel 0, id 2, lun 0
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi removable disk sdb at scsi0, channel 0, id 1, lun 0
SCSI device sda: 8418061 512-byte hdwr sectors (4310 MB)
sda: Write Protect is off
Partition check:
/dev/scsi/host0/bus0/target0/lun0: unknown partition table
SCSI device sdb: 8418061 512-byte hdwr sectors (4310 MB)
sdb: Write Protect is off
/dev/scsi/host0/bus0/target1/lun0: unknown partition table
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: new USB bus registered, assigned bus number 1
hc_sl811.c: USB SL811 at 500bf2, addr2 = 500bf3, IRQ 6
Product: USB SL811HS Root Hub
SerialNumber: 0
hub.c: USB hub found
hub.c: 1 port detected
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Making root root
VFS: Mounted root (romfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 40K
serial_core: try baudrate 38400
jasperuart change speed 130
serial_core: try baudrate 38400
jasperuart change speed 130
hub.c: USB new device connect on bus1/1, assigned device number 2

Sash command shell (version 1.1.1)
/etc/sashrc: Bad command or file name
/> SOF interrupt: td_array->len = 0x1, s/b: 0
done_list: packet err, cc = 0x4, urb->length = 0x0, actual_len = 0x0, urb_state
=0x2
done_list: packet err, cc = 0x4, urb->length = 0x0, actual_len = 0x0, urb_state
=0x2
done_list: packet err, cc = 0x4, urb->length = 0x0, actual_len = 0x0, urb_state
=0x2
done_list: excessive error: errcount = 0x4,
cc = 0x4
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
IRQ occurred while service SOF: irq = 0x1
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
IRQ occurred while service SOF: irq = 0x1
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
IRQ occurred while service SOF: irq = 0x1
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
IRQ occurred while service SOF: irq = 0x1
SOF interrupt: td_array->len = 0x1, s/b: 0
IRQ occurred while service SOF: irq = 0x1
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
Manufacturer: NO BRAND
SOF interrupt: td_array->len = 0x1, s/b: 0
IRQ occurred while service SOF: irq = 0x1
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
Product: PEN DRIVE
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SerialNumber: 0717050B0B37
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
IRQ occurred while service SOF: irq = 0x1
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
IRQ occurred while service SOF: irq = 0x1
IRQ occurred while service SOF: irq = 0x1
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: NO BRAND Model: PEN DRIVE Rev: 1.01
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sdc at scsi1, channel 0, id 0, lun 0
SCSI device sdc: 64000 512-byte hdwr sectors (33 MB)
sdc: Write Protect is off
/dev/scsi/host1/bus0/target0/lun0: unknown partition table
/> mount -t proc /proc /proc
/> ls /proc
scsi
ide
misc
mem_map
bus
tty
driver
fs
net
slabinfo
kcore
ksyms
cpuinfo
mounts
kmsg
execdomains
iomem
swaps
locks
cmdline
ioports
dma
filesystems
interrupts
partitions
devices
stat
modules
version
meminfo
uptime
loadavg
self
1
2
3
4
5
6
7
8
10
11
/> mount -t usbdevfs none /proc/bus/usb
/> ls /proc/bus/usb
devices
drivers
001
/> cat /proc/bus/usb/devices
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 1
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB SL811HS Root Hub
S: SerialNSOF interrupt: td_array->len = 0x1, s/b: 0
IRQ occurred while service SOF: irq = 0x1
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
umber=0
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) SubSOF interrupt: td_array->len = 0x1, s/b: 0
IRQ occurred while service SOF: irq = 0x1
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0d7d ProdID=0100 Rev= 1.00
S: Manufacturer=NO BRAND
S: Product=PEN DRIVE
S: SerialNumber=0717050B0B37
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storaSOF inter
rupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
IRQ occurred while service SOF: irq = 0x1
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
ge
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=255ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=255ms
E: Ad=83(I) Atr=03(Int.) MxPS= 2 Ivl= 1ms
SOF interrupt: td_array->len = 0x1, s/b: 0
IRQ occurred while service SOF: irq = 0x1
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
SOF interrupt: td_array->len = 0x1, s/b: 0
/> cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: Foo Inc Model: XYZZY Rev: 1
Type: Direct-Access ANSI SCSI revision: 01
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: Foo Inc Model: XYZZY Rev: 1
Type: Direct-Access ANSI SCSI revision: 01
Host: scsi0 Channel: 00 Id: 02 Lun: 00
Vendor: Foo Inc Model: XYZZY Rev: 1
Type: Sequential-Access ANSI SCSI revision: 01
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: NO BRAND Model: PEN DRIVE Rev: 1.01
Type: Direct-Access ANSI SCSI revision: 02
/> ls /dev
mem
kmem
null
port
zero
full
random
urandom
tty
console
ptmx
pty
pts
ttyAM0
cuaam0
ttyAM1
cuaam1
ide
cdroms
scsi
tapes
discs
usb
/> mknod /dev/sdc b 8 1
mont: Bad command or file name
/> mount -t fat /dev/sdc /cdrom
mount failed: No such device
/>/> rm /dev/sdc
/> mknod /dev/sdc b 2 1
/>mount -t fat /dev/sdc /cdrom
/>mount failed: No such device
 
Old 06-30-2003, 12:46 AM   #2
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: NO BRAND Model: PEN DRIVE Rev: 1.01
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sdc at scsi1, channel 0, id 0, lun 0
SCSI device sdc: 64000 512-byte hdwr sectors (33 MB)
sdc: Write Protect is off
/dev/scsi/host1/bus0/target0/lun0: unknown partition table

This is your USB Pen. Linux Emulate it as SCSI, however you seem to have a problem with the partition table on it... corrupted data? Anyways.

try:
mkdir /mnt/usb_pen ;
mount /dev/sdc /mnt/usb_pen
 
Old 07-09-2003, 09:30 PM   #3
chen_shannon
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Yes,thank you,Half_Elf. It could work well a few days ago.
Below is what I have done in uclinux.
select kernel automount support in filesystem
select vfat support in filesystem
select dos partitions support in filesystem
"cat /proc/partitions" to find major & minor
mknod /dev/sdc b major minor
mount -t vfat /dev/sdc /cdrom
Thanks all. I think the forum is a good place for everyone.
 
Old 07-10-2003, 02:41 AM   #4
Tommi
Member
 
Registered: Apr 2003
Posts: 185

Rep: Reputation: 30
To be honest I decided to give up these pens, because they are not that what they should be...totally compatible in all machnes and platforms. Our helpdesk was really cynical with them.

I think they are on the early development phase, and industry is lacking a decent standard with them.

In the future there will be 40 gigabyte "pens" which are fully functional replacements for the excisting harddisks. It may take few years...but when this happens I will buy it again. Everybody does.

Never buy anything new...or you will become a product developer also.

Well...look at PC's! All what I see are only misfunctional prototypes...not ready systems. Wise men avoid them.

I wish there will be soon end for the speed competition. I really hope that the Moore's law soon will find its ceiling and speed cannot be improved then. Then starts the phase, that the systems must be developed to become fully functional...finally. But then we will get another problem...its life. :-)

-Tommi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't mount usb pen drive with hotplug dori Slackware 8 03-02-2007 02:22 AM
unable to mount usb pen drive in redhat 9.0 zero79 Linux - Hardware 9 01-25-2007 09:07 PM
hey i am not able to mount usb pen drive amolgupta Linux - Hardware 1 05-07-2005 01:51 AM
Difficulty to mount USB Pen Drive fatra2 Linux - Hardware 5 09-10-2004 01:58 AM
howto mount usb pen drive? name_in_use450 Linux - Hardware 2 08-24-2004 07:23 AM


All times are GMT -5. The time now is 09:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration