View previous topic :: View next topic |
Author |
Message |
raananan n00b
Joined: 07 May 2004 Posts: 7
|
Posted: Sat May 15, 2004 12:58 pm Post subject: USB Mass Storage Mounting problem. |
|
|
Hello,
I read alot of How-To's and posts about mounting a usb storage device. I did everything that was suggested and came empty.
I build the kernel with:
Quote: | SCSI:
[*] legacy /proc/scsi/ support
<*> SCSI disk support
< > SCSI tape support
< > SCSI OnStream SC-x0 tape support
< > SCSI CDROM support
<*> SCSI generic support
Some SCSI devices (e.g. CD jukebox) support multiple LUNs
[*] Probe all LUNs on each SCSI device
[*] Build with SCSI REPORT LUNS support
[*] Verbose SCSI error reporting (kernel size +=12K)
[ ] SCSI logging facility
Usb:
<*> Support for Host-side USB
[ ] USB verbose debug messages
--- Miscellaneous USB options
[*] USB device filesystem
[ ] Enforce USB bandwidth allocation (EXPERIMENTAL)
[ ] Dynamic USB minor allocation (EXPERIMENTAL)
--- USB Host Controller Drivers
<*> EHCI HCD (USB 2.0) support
[*] Full speed ISO transactions (EXPERIMENTAL)
<*> OHCI HCD support
<*> UHCI HCD (most Intel and VIA) support
<*> USB Mass Storage support
[ ] USB Mass Storage verbose debug
[ ] Datafab Compact Flash Reader support (EXPERIMENTAL)
[ ] Freecom USB/ATAPI Bridge support
[ ] ISD-200 USB/ATA Bridge support
[ ] Microtech/ZiO! CompactFlash/SmartMedia support
[ ] HP CD-Writer 82xx support (EXPERIMENTAL)
[ ] SanDisk SDDR-09 (and other SmartMedia) support (EXPERIMENTAL)
[ ] SanDisk SDDR-55 SmartMedia support (EXPERIMENTAL)
[ ] Lexar Jumpshot Compact Flash Reader (EXPERIMENTAL)
--- USB Human Interface Devices (HID)
<*> USB Human Interface Device (full HID) support
[*] HID input layer support
[ ] Force feedback support (EXPERIMENTAL)
[*] /dev/hiddev raw HID device support |
I installed the vfat file system and all the thinds it needs.
My problem is when I plug the usb and run "# dmesg" I get this:
I think the realy important section is in the end but I posted it all
Quote: | Linux version 2.6.5-gentoo-r1 (root@bilby) (gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)) #16 Sat May 15 16:09:38 IDT 2004
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001dfd0000 (usable)
BIOS-e820: 000000001dfd0000 - 000000001dfdf000 (ACPI data)
BIOS-e820: 000000001dfdf000 - 000000001e000000 (ACPI NVS)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ff7c0000 - 0000000100000000 (reserved)
479MB LOWMEM available.
On node 0 totalpages: 122832
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 118736 pages, LIFO batch:16
HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI: RSDP (v000 ACPIAM ) @ 0x000f97a0
ACPI: RSDT (v001 A M I OEMRSDT 0x08000315 MSFT 0x00000097) @ 0x1dfd0000
ACPI: FADT (v002 A M I OEMFACP 0x08000315 MSFT 0x00000097) @ 0x1dfd0200
ACPI: MADT (v001 A M I OEMAPIC 0x08000315 MSFT 0x00000097) @ 0x1dfd0390
ACPI: OEMB (v001 A M I OEMBIOS 0x08000315 MSFT 0x00000097) @ 0x1dfdf040
ACPI: DSDT (v001 A7N8X A7N8X000 0x00000000 INTL 0x02002026) @ 0x00000000
Built 1 zonelists
Kernel command line: root=/dev/hda9 video=vesafb:mtrr,ywrap vga=0x318
Initializing CPU#0
PID hash table entries: 2048 (order 11: 16384 bytes)
Detected 1830.356 MHz processor.
Using tsc for high-res timesource
Console: colour dummy device 80x25
Memory: 481244k/491328k available (2996k kernel code, 9316k reserved, 1076k data, 168k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 3620.86 BogoMIPS
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0383fbff c1c3fbff 00000000 00000000
CPU: After vendor identify, caps: 0383fbff c1c3fbff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU: After all inits, caps: 0383fbff c1c3fbff 00000000 00000020
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: AMD Athlon(tm) XP 2500+ stepping 00
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xf0031, last bus=2
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040326
ACPI: IRQ9 SCI: Edge set to Level Trigger.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P3._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LUS0] (IRQs 3 4 *5 6 7 10 11)
ACPI: PCI Interrupt Link [LUS1] (IRQs 3 4 5 6 7 *10 11)
ACPI: PCI Interrupt Link [LUS2] (IRQs 3 4 *5 6 7 10 11)
ACPI: PCI Interrupt Link [LKLN] (IRQs 3 4 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LAPU] (IRQs 3 4 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LAUI] (IRQs 3 4 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LKMO] (IRQs 3 4 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LKSM] (IRQs 3 4 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LFWR] (IRQs 3 4 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LETH] (IRQs 3 4 6 7 10 11 12 14 15)
ACPI-0201: *** Error: Return object type is incorrect [\_SB_.LATA._CRS] (Node c14f1fa0), AE_TYPE
ACPI: PCI Interrupt Link [LATA] (IRQs 3 4 6 7 10 11 12 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
SCSI subsystem initialized
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
ACPI: PCI Interrupt Link [LKSM] enabled at IRQ 10
ACPI: PCI Interrupt Link [LUS0] enabled at IRQ 5
ACPI: PCI Interrupt Link [LUS1] enabled at IRQ 10
ACPI: PCI Interrupt Link [LUS2] enabled at IRQ 5
ACPI: PCI Interrupt Link [LKLN] enabled at IRQ 10
ACPI: PCI Interrupt Link [LAUI] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even 'acpi=off'
vesafb: framebuffer at 0xec000000, mapped to 0xde809000, size 16384k
vesafb: mode is 1024x768x32, linelength=4096, pages=1
vesafb: protected mode interface info at c000:d710
vesafb: pmi: set display start = c00cd755, set palette = c00cd7da
vesafb: pmi: ports = b4c3 b503 ba03 c003 c103 c403 c503 c603 c703 c803 c903 cc03 ce03 cf03 d003 d103 d203 d303 d403 d503 da03 ff03
vesafb: scrolling: ywrap using protected mode interface, yres_virtual=4096
vesafb: directcolor: size=8:8:8:8, shift=24:16:8:0
fb0: VESA VGA frame buffer device
Machine check exception polling timer started.
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NTFS driver 2.1.6 [Flags: R/O].
udf: registering filesystem
ACPI: Power Button (FF) [PWRF]
ACPI: Processor [CPU1] (supports C1)
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
Console: switching to colour frame buffer device 128x48
lp: driver loaded but no devices found
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected NVIDIA nForce2 chipset
agpgart: Maximum main memory to use for agp memory: 409M
agpgart: AGP aperture is 64M @ 0xf4000000
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
parport0: PC-style at 0x378 [PCSPP(,...)]
lp0: using parport0 (polling).
Using anticipatory io scheduler
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.25.
PCI: Setting latency timer of device 0000:00:04.0 to 64
eth0: forcedeth.c: subsystem: 01043:80a7 bound to 0000:00:04.0
PPP generic driver version 2.4.2
NET: Registered protocol family 24
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
NFORCE2: IDE controller at PCI slot 0000:00:09.0
NFORCE2: chipset revision 162
NFORCE2: not 100% native mode: will probe irqs later
NFORCE2: BIOS didn't set cable bits correctly. Enabling workaround.
NFORCE2: 0000:00:09.0 (rev a2) UDMA133 controller
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:DMA
hda: HDS722540VLAT20, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: PHILIPS CDRW48A, ATAPI CD/DVD-ROM drive
hdd: ATAPI CD-ROM DRIVE 32X MAXIMUM, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 1024KiB
hda: 80418240 sectors (41174 MB) w/1794KiB Cache, CHS=16383/255/63, UDMA(100)
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 p9 >
hdc: ATAPI 48X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
hdd: ATAPI 32X CD-ROM drive, 128kB Cache, UDMA(33)
libata version 1.02 loaded.
ieee1394: Initialized config rom entry `ip1394'
ieee1394: raw1394: /dev/raw1394 device initialized
ehci_hcd 0000:00:02.2: nVidia Corporation nForce2 USB Controller
PCI: Setting latency timer of device 0000:00:02.2 to 64
ehci_hcd 0000:00:02.2: irq 5, pci mem df848000
ehci_hcd 0000:00:02.2: new USB bus registered, assigned bus number 1
PCI: cache line size of 64 is not supported by device 0000:00:02.2
ehci_hcd 0000:00:02.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
ohci_hcd 0000:00:02.0: nVidia Corporation nForce2 USB Controller
PCI: Setting latency timer of device 0000:00:02.0 to 64
ohci_hcd 0000:00:02.0: irq 5, pci mem df84a000
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
ohci_hcd 0000:00:02.1: nVidia Corporation nForce2 USB Controller (#2)
PCI: Setting latency timer of device 0000:00:02.1 to 64
ohci_hcd 0000:00:02.1: irq 10, pci mem df84c000
ohci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 3 ports detected
USB Universal Host Controller Interface driver v2.2
Initializing USB Mass Storage driver...
drivers/usb/core/usb.c: registered new driver usb-storage
USB Mass Storage support registered.
drivers/usb/core/usb.c: registered new driver hiddev
drivers/usb/core/usb.c: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.4rc2 (Tue Mar 30 08:19:30 2004 UTC).
PCI: Setting latency timer of device 0000:00:06.0 to 64
intel8x0_measure_ac97_clock: measured 49457 usecs
intel8x0: clocking to 47478
ALSA device list:
#0: NVidia nForce2 at 0xfe700000, irq 11
oprofile: using timer interrupt.
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
ip_conntrack version 2.1 (3838 buckets, 30704 max) - 296 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>. http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI: (supports S0 S1 S3 S4 S5)
found reiserfs format "3.6" with standard journal
usb 3-1: new full speed USB device using address 2
Reiserfs journal params: device hda9, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
reiserfs: checking transaction log (hda9) for (hda9)
usb 3-2: new low speed USB device using address 3
Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 168k freed
input: USB HID v1.11 Mouse [Microsoft Microsoft IntelliMouse® Explorer] on usb-0000:00:02.1-2
usb 2-2: new full speed USB device using address 2
Adding 755012k swap on /dev/hda8. Priority:-1 extents:1
nvidia: no version magic, tainting kernel.
nvidia: module license 'NVIDIA' taints kernel.
0: nvidia: loading NVIDIA Linux x86 nvidia.o Kernel Module 1.0-4496 Wed Jul 16 19:03:09 PDT 2003
NTFS volume version 3.1.
NTFS volume version 3.1.
NTFS volume version 3.1.
mtrr: 0xec000000,0x2000000 overlaps existing 0xec000000,0x1000000
drivers/usb/input/hid-input.c: event field not found
usb 1-6: new high speed USB device using address 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Generic Model: Rev:
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 251904 512-byte hdwr sectors (129 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00 |
I realy don't know much about linux so if you are reading this it mean you read it all so first i would like to say THANKS, and second PLEASE HELP.
Thanks. _________________ AMD Athlon XP-2500+
Asus A7N8X-VM
512 MB DDR 333 (480MB System, 32MB Display)
GeForce4 MX on board.
Realtek ALC650 6-channel audio on board.
Realtek 8201BL PHY 10/100Mbps LAN on board. |
|
Back to top |
|
|
guitou Guru
Joined: 02 Oct 2003 Posts: 534 Location: France
|
Posted: Sat May 15, 2004 1:36 pm Post subject: |
|
|
Your USB key seems to be /dev/sda.
Try ls /dev/sda*
There has to be a /dev/sda1 that you should mount to access the key content.
Guitou. |
|
Back to top |
|
|
tuxlover Apprentice
Joined: 21 Oct 2003 Posts: 297 Location: weltweit
|
Posted: Sat May 15, 2004 11:57 pm Post subject: |
|
|
I don't really understand your question/problem, from your dmesg everything seems ok...
to access your usb thing, you need to mount it:
mount /dev/sda1 / /mnt/usbstick
(you need to create the directory /mnt/usbstick before, of course)
then you can access your usb thing at /mnt/usbstick (the mount point). |
|
Back to top |
|
|
raananan n00b
Joined: 07 May 2004 Posts: 7
|
Posted: Sun May 16, 2004 2:13 pm Post subject: |
|
|
The problem is that I don't have any /dev/sd* so I can't mount. _________________ AMD Athlon XP-2500+
Asus A7N8X-VM
512 MB DDR 333 (480MB System, 32MB Display)
GeForce4 MX on board.
Realtek ALC650 6-channel audio on board.
Realtek 8201BL PHY 10/100Mbps LAN on board. |
|
Back to top |
|
|
COMKEEN n00b
Joined: 07 Nov 2003 Posts: 70
|
Posted: Sun May 16, 2004 4:31 pm Post subject: |
|
|
Try this:
1. Boot your computer
2. Log in as root
3. do
This would give you
for example (if you have an IDE CD-Burner and have SCSI-Emulation enabled).
4. Now load the necessary modules, i.e.
Code: |
modprobe usb-storage
|
5. Plug in the USB Stick.
6. Do again.
7. If you're lucky, you see one more entry:
8. cd into host1 (or whatever the new directory is called).
9. Optional: Read HOWTOs and Tutorials about SCSI to understand waht targets and luns are...
10. cd into /dev/scsi/host1/bus0/target0/lun0/
11a. What files are in there?
If you find something like you can try to mount the partition:
Code: | mount /dev/scsi/host1/bus0/target0/lun0/part1 /mnt/usbstick -t vfat |
Of course: This does only work if there is a directory (mountpoint) /mnt/usbstick and your stick is formatted as vfat (if you used it under Windows before. Many USB-Sticks are preformatted with vfat, too). Just give it a try.
11b. If there IS NO file called part1, but only "disc" and "generic", you have to partition the Stick and create a filesystem first. I created an ext2 filesystem on my Stick because it can handle file permissions and so on. If you want to use the Stick as a mobile disk and for different Computers, you may want to format the Stick with vfat so that you can use it on Windows PCs, too.
Partitioning and creating a FS is similar to how to do it with normal (hard-) disks. Read the appropriate chapters in the Gentoo Installation Guide or do a
HTH |
|
Back to top |
|
|
tuxlover Apprentice
Joined: 21 Oct 2003 Posts: 297 Location: weltweit
|
Posted: Sun May 16, 2004 6:05 pm Post subject: |
|
|
another good idea would be to use gentoo's hotplug script. simply install it and add it to the default runlevel, so it is automatically started:
Code: | emerge hotplug
rc-update add hotplug default |
then you need to compile all the necessary stuff as modules instead of into the kernel, like you did it. in /usr/src/linux/.config, this would be
Code: | CONFIG_USB=m
CONFIG_USB_HID=m
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_UHCI_HCD=m
CONFIG_USB_STORAGE=m
CONFIG_BLK_DEV_SD=m |
With hotplug installed and all these things compiled as modules, hotplug should take care of loading appropriate modules and creating /dev/sda* when you plug in your usb stick. |
|
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
|
|