LinuxQuestions.org
Help answer threads with 0 replies.
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
 
Search this Thread
Old 04-22-2003, 08:34 AM   #1
Al Bundy
LQ Newbie
 
Registered: Mar 2003
Location: Perth Australia
Posts: 17

Rep: Reputation: 0
Another USB-Flash-Drive Post- I read all the others so what now


I am getting the usual errors everyone else seems to get


[root@localhost keith]# mount -t vfat /dev/sda1 /mnt/flash/
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems
[root@localhost keith]#


I think Im not writing the mount command correctly I really new to linux so much of the following doesn't really mean much to me but
it what other posters suggested to do to find out whats what and whats where, its just I don't really know what to make of it all




[root@localhost keith]# usbview

** WARNING **: No interface to put an endpoint at for this device.

[root@localhost keihttp://th]# usbview


http://www.rccopter.com/pict/usbview.jpg (57kb)



[root@localhost keith]# /sbin/lsmod
Module Size Used by Tainted: P
ppp_deflate 4536 0 (autoclean)
zlib_deflate 21464 0 (autoclean) [ppp_deflate]
ppp_async 9440 1 (autoclean)
ppp_generic 24380 3 (autoclean) [ppp_deflate ppp_async]
slhc 6740 0 (autoclean) [ppp_generic]
usb-storage 62000 0
nls_iso8859-1 3516 1 (autoclean)
nls_cp437 5116 1 (autoclean)
vfat 13084 1 (autoclean)
fat 38712 0 (autoclean) [vfat]
sd_mod 13584 0 (autoclean)
sr_mod 18136 0 (autoclean)
i810_audio 25224 1 (autoclean)
ac97_codec 13384 0 (autoclean) [i810_audio]
soundcore 6532 2 (autoclean) [i810_audio]
agpgart 43072 3 (autoclean)
nvidia 1678176 10 (autoclean)
binfmt_misc 7524 1
autofs 13348 0 (autoclean) (unused)
tg3 46760 1
ipt_REJECT 3736 6 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 14936 2 [ipt_REJECT iptable_filter]
microcode 4668 0 (autoclean)
ide-scsi 10512 0
scsi_mod 107176 4 [usb-storage sd_mod sr_mod ide-scsi]
ide-cd 33608 0
cdrom 33696 0 [sr_mod ide-cd]
ohci1394 20108 0 (unused)
ieee1394 46892 0 [ohci1394]
mousedev 5524 1
keybdev 2976 0 (unused)
hid 22244 0 (unused)
input 5888 0 [mousedev keybdev hid]
usb-uhci 26188 0 (unused)
ehci-hcd 17480 0 (unused)
usbcore 77024 1 [usb-storage hid usb-uhci ehci-hcd]
ext3 70368 1
jbd 52212 1 [ext3]
[root@localhost keith]#




[root@localhost keith]# /bin/dmesg
Linux version 2.4.18-14 (bhcompile@stripples.devel.redhat.com) (gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Wed Sep 4 13:35:50 EDT 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001ffec000 (usable)
BIOS-e820: 000000001ffec000 - 000000001ffef000 (ACPI data)
BIOS-e820: 000000001ffef000 - 000000001ffff000 (reserved)
BIOS-e820: 000000001ffff000 - 0000000020000000 (ACPI NVS)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
511MB LOWMEM available.
On node 0 totalpages: 131052
zone(0): 4096 pages.
zone(1): 126956 pages.
zone(2): 0 pages.
Kernel command line: auto BOOT_IMAGE=linux ro BOOT_FILE=/boot/vmlinuz-2.4.18-14 hdc=ide-scsi root=LABEL=/
ide_setup: hdc=ide-scsi
Initializing CPU#0
Detected 2405.482 MHz processor.
Speakup v-1.00 CVS: Tue Jun 11 14:22:53 EDT 2002 : initialized
Console: colour VGA+ 80x25
Calibrating delay loop... 4784.26 BogoMIPS
Memory: 511396k/524208k available (1326k kernel code, 10248k reserved, 999k data, 212k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 8192 (order: 4, 65536 bytes)
ramfs: mounted with options: <defaults>
ramfs: max_pages=64196 max_file_pages=0 max_inodes=0 max_dentries=64196
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Before vendor init, caps: bfebfbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 0K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: After vendor init, caps: bfebfbff 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: bfebfbff 00000000 00000000 00000000
CPU: Common caps: bfebfbff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 07
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xf1e50, last bus=2
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 0: assuming transparent
PCI: Using IRQ router PIIX [8086/24c0] at 00:1f.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
speakup: initialized device: /dev/synth, node (MAJOR 10, MINOR 25)
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Starting kswapd
VFS: Diskquotas version dquot_6.5.0 initialized
pty: 2048 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS0 at 0x03f8 (irq = 4) is a 16550A
ttyS1 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
oprofile: can't get RTC I/O Ports
block: 992 slots per queue, batch=248
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev f9
PCI: Found IRQ 9 for device 00:1f.1
PCI: Sharing IRQ 9 with 00:1d.2
PIIX4: chipset revision 2
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hdaMA, hdbio
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdcMA, hddio
hda: ST380023A, ATA DISK drive
hdc: SONY CD-RW CRX175A1, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
blk: queue c03c0004, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c03c0004, I/O limit 4095Mb (mask 0xffffffff)
hda: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=9729/255/63, UDMA(100)
ide-floppy driver 0.99.newide
Partition check:
hda: hda1 hda2 hda3
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
NET4: Frame Diverter 0.46
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 127k freed
VFS: Mounted root (ext2 filesystem).
Journalled Block Device driver loaded
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 212k freed
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Found IRQ 11 for device 00:1d.7
PCI: Sharing IRQ 11 with 02:04.0
PCI: Setting latency timer of device 00:1d.7 to 64
hcd.c: ehci-hcd @ 00:1d.7, Intel Corp. 82801DB USB EHCI Controller
hcd.c: irq 11, pci mem e0848000
usb.c: new USB bus registered, assigned bus number 1
ehci-hcd.c: restricting 64bit DMA mappings to segment 0 ...
ehci-hcd.c: USB 2.0 support enabled, EHCI rev 1. 0
hub.c: USB hub found
hub.c: 6 ports detected
usb-uhci.c: $Revision: 1.275 $ time 13:44:31 Sep 4 2002
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 5 for device 00:1d.0
PCI: Sharing IRQ 5 with 01:00.0
PCI: Setting latency timer of device 00:1d.0 to 64
usb-uhci.c: USB UHCI at I/O 0xd800, IRQ 5
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 9 for device 00:1d.1
PCI: Setting latency timer of device 00:1d.1 to 64
usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 9 for device 00:1d.2
PCI: Sharing IRQ 9 with 00:1f.1
PCI: Setting latency timer of device 00:1d.2 to 64
usb-uhci.c: USB UHCI at I/O 0xd000, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 4
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
EXT3 FS 2.4-0.9.18, 14 May 2002 on ide0(3,1), internal journal
Adding Swap: 530136k swap-space (priority -1)
hub.c: USB new device connect on bus2/2, assigned device number 2
usb-uhci.c: interrupt, status 3, frame# 949
input0: USB HID v1.10 Mouse [Microsoft Microsoft 5-Button Mouse with IntelliEye(TM)] on usb2:2.0
ohci1394: $Revision: 1.101 $ Ben Collins <bcollins@debian.org>
PCI: Found IRQ 9 for device 02:03.0
ohci1394_0: OHCI-1394 1.0 (PCI): IRQ=[9] MMIO=[ed000000-ed000800] Max Packet=[2048]
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: SONY Model: CD-RW CRX175A1 Rev: 5YS2
Type: CD-ROM ANSI SCSI revision: 02
ieee1394: Host added: Node[00:1023] GUID[00e01800000e3508] [Linux OHCI-1394]
IA-32 Microcode Update Driver: v1.11 <tigran@veritas.com>
microcode: CPU0 no microcode found! (sig=f27, pflags=4)
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
ip_tables: (C) 2000-2002 Netfilter core team
tg3.c:v1.0 (Jul 19, 2002)
PCI: Found IRQ 10 for device 02:05.0
PCI: Sharing IRQ 10 with 02:0c.0
divert: allocating divert_blk for eth0
eth0: Tigon3 [partno(BCM95702A20) rev 1002 PHY(5703)] (PCI:33MHz:32-bit) 10/100/1000BaseT Ethernet 00:e0:18:dd:7a:75
tg3: eth0: Link is up at 100 Mbps, full duplex.
tg3: eth0: Flow control is off for TX and off for RX.
0: nvidia: loading NVIDIA Linux x86 nvidia.o Kernel Module 1.0-4349 Thu Mar 27 19:00:02 PST 2003
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected Intel i845G chipset
agpgart: AGP aperture is 64M @ 0xf8000000
Intel 810 + AC97 Audio, version 0.22, 13:45:06 Sep 4 2002
PCI: Found IRQ 9 for device 00:1f.5
PCI: Setting latency timer of device 00:1f.5 to 64
i810: Intel ICH4 found at IO 0x9400 and 0x9800, IRQ 9
i810_audio: Audio Controller supports 6 channels.
i810_audio: Defaulting to base 2 channel mode.
ac97_codec: AC97 Audio codec, id: 0x4144:0x5370 (Unknown)
i810_audio: AC'97 codec 0 supports AMAP, total channels = 6
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 104x/40x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
hub.c: USB new device connect on bus4/2, assigned device number 2
usb.c: USB device 2 (vend/prod 0xc45/0x1060) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: USB SMCF Model: CARD READER Rev: f
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 128000 512-byte hdwr sectors (66 MB)
sda: Write Protect is off
sda: sda1 sda2 sda3 sda4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
FAT: bogus logical sector size 13815
VFS: Can't find a valid FAT filesystem on dev 08:01.
usb-uhci.c: interrupt, status 2, frame# 811
usb_control/bulk_msg: timeout
usb.c: USB disconnect on device 2
hub.c: USB new device connect on bus4/2, assigned device number 3
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
usb-uhci.c: interrupt, status 2, frame# 1331
usb_control/bulk_msg: timeout
FAT: bogus logical sector size 13815
VFS: Can't find a valid FAT filesystem on dev 08:01.
FAT: bogus logical sector size 13815
VFS: Can't find a valid FAT filesystem on dev 08:01.
usb-uhci.c: interrupt, status 2, frame# 990
usb_control/bulk_msg: timeout
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
divert: not allocating divert_blk for non-ethernet device ppp0
PPP Deflate Compression module registered
FAT: bogus logical sector size 13815
VFS: Can't find a valid FAT filesystem on dev 08:01.
[root@localhost keith]#



[root@localhost drivers]# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jrg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'SONY ' 'CD-RW CRX175A1 ' '5YS2' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) 'USB SMCF' ' CARD READER ' '' Removable Disk
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *
[root@localhost drivers]#



If theres someone that understands what the above means it would be great if you could help me
 
Old 04-22-2003, 10:24 AM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
From the lines...
Quote:
SCSI device sda: 128000 512-byte hdwr sectors (66 MB)
sda: Write Protect is off
sda: sda1 sda2 sda3 sda4
...I would try using the other partition listings in the mount command to see if it recognizes any of them. If it's a card-reader, then it might not see it as sda1, so try sda2, then sda3, then sda4.
 
Old 04-22-2003, 08:47 PM   #3
Al Bundy
LQ Newbie
 
Registered: Mar 2003
Location: Perth Australia
Posts: 17

Original Poster
Rep: Reputation: 0
yeah I had tried to mount on sda1 sda2 etc but with no luck. I was reading the output from /bin/dmesg and noticed messages
like 'VFS: Can't find a valid FAT filesystem on dev 08:01.' I dont know if it the flash drive but I loaded it in windows and reformatted it
as FAT32 (before it was just FAT) after that it was picked up in linux (RedHat 8) and mount -t vfat /dev/sda4 /mnt/flash/ will mount it.

So I can read and write to it now, but the crap thing is I can only mount and umount it as root, and cant write to it as a normal user.

I added the line '/dev/sda4 /mnt/flash vfat noauto,user 0 0' to /etc/fstab (also tried /dev/sda4 /mnt/flash vfat noauto,owner,kudzu 0 0)
but this wont allow a normal user to mount it or write to it....

Do you know how to make this possible

Last edited by Al Bundy; 04-22-2003 at 08:49 PM.
 
Old 04-22-2003, 10:13 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,817

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
No different then mounting any other FAT32 partition. One of the most asked question on the site and the answer can be found with a simple search.

Add umask=000 option to fstab entry.
 
Old 04-24-2003, 12:30 AM   #5
Al Bundy
LQ Newbie
 
Registered: Mar 2003
Location: Perth Australia
Posts: 17

Original Poster
Rep: Reputation: 0
oh i found it can be mounted as I first did (without umask=000) and writen/read by any users with the disk management took in RedHat (systemtools->disk management)



thanks for all help

....still learning
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
usb flash drive always read-only flihp Linux - Hardware 2 11-12-2005 05:14 PM
usb flash drive 1337_n00b Amigo 1 02-13-2005 12:25 AM
Usb flash disk read-only problem Darthomir Linux - Hardware 6 04-03-2004 09:04 AM
USB Flash Drive Hady Linux - Hardware 1 11-20-2003 01:41 PM
usb flash drive tyiooo Linux - Hardware 11 08-09-2003 01:05 AM


All times are GMT -5. The time now is 07:18 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