It looks like you need to mount the entire device (as it doesn't have a
partition table). So "mount /dev/sda /mnt/flash". I still don't understand
the /dev files you are seeing, must be something I don't use.

On Fri, 9 Sep 2005, Ayman Asadi wrote:

>
> Hi Stephen
> Thank you for responding.
>
> Here is the log below.
>
> --Ayman
>
> ----------------------------------------------------------------------
> Loading: ..... 1462272 bytes read
> Entry at 0x80001000
> Closing network.
> Starting program at 0x80001000
> CPU revision is: 00029008
> Primary instruction cache 16kb, linesize 16 bytes (2 ways)
> Primary data cache 8kb, linesize 16 bytes (2 ways)
> Linux version 2.4.20 ([EMAIL PROTECTED]) (gcc version 3.2.3) #475 Fri Sep
> 9 11:19:46 PDT 2005
> Setting the PFC value as 0x15
> Determined physical RAM map:
>  memory: 01000000 @ 00000000 (usable)
> On node 0 totalpages: 4096
> zone(0): 4096 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
> CPU: MIPS32 rev 0 at 200 MHz
> Calibrating delay loop... 199.47 BogoMIPS
> Memory: 14556k/16384k available (1236k kernel code, 1828k reserved,
> 108k data, 60k init, 0k highmem)
> Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
> Inode cache hash table entries: 1024 (order: 1, 8192 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: 4096 (order: 2, 16384 bytes)
> Checking for 'wait' instruction...  unavailable.
> POSIX conformance testing by UNIFIX
> PCI: no core
> PCI: Fixing up bus 0
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039
> Initializing RT netlink socket
> Starting kswapd
> devfs: v1.12c (20020818) Richard Gooch ([EMAIL PROTECTED])
> devfs: boot_options: 0x1
> Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ
> SERIAL_PCI enabled
> ttyS00 at 0xb8000300 (irq = 3) is a 16550A
> ttyS01 at 0xb8000400 (irq = 0) is a 16550A
> PPP generic driver version 2.4.2
>  Amd/Fujitsu Extended Query Table v1.1 at 0x0040
> number of CFI chips: 1
> Flash device: 0x400000 at 0x1c000000
> Physically mapped flash: cramfs filesystem found at block 864
> Creating 4 MTD partitions on "Physically mapped flash":
> 0x00000000-0x00040000 : "pmon"
> 0x00040000-0x003f0000 : "linux"
> 0x000d812c-0x003f0000 : "rootfs"
> 0x003f0000-0x00400000 : "nvram"
> sflash: found no supported devices
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 1024 bind 2048)
> ip_conntrack version 2.1 (128 buckets, 1024 max) - 344 bytes per
> conntrack
> ip_tables: (C) 2000-2002 Netfilter core team
> ipt_time loading
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> NET4: Ethernet Bridge 008 for NET4.0
> 802.1Q VLAN Support v1.7 Ben Greear <[EMAIL PROTECTED]>
> All bugs added by David S. Miller <davem@redhat.com>
> VFS: Mounted root (cramfs filesystem) readonly.
> Mounted devfs on /dev
> Freeing unused kernel memory: 60k freed
> Using /lib/modules/2.4.20/kernel/drivers/scsi/scsi_mod.o
> SCSI subsystem driver Revision: 1.00
> Using /lib/modules/2.4.20/kernel/drivers/scsi/sd_mod.o
> Using /lib/modules/2.4.20/kernel/drivers/usb/usbcore.o
> usb.c: registered new driver hub
> Using /lib/modules/2.4.20/kernel/drivers/usb/usb-ohci.o
> usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
> usb-ohci.c: usb-00:03.0, PCI device 14e4:4716
> usb.c: new USB bus registered, assigned bus number 1
> Product: USB OHCI Root Hub
> SerialNumber: b8003000
> hub.c: USB hub found
> hub.c: 2 ports detected
> Using /lib/modules/2.4.20/kernel/drivers/usb/storage/usb-storage.o
> Initializing USB Mass Storage driver...
> usb.c: registered new driver usb-storage
> USB Mass Storage support registered.
> Using /lib/modules/2.4.20/kernel/fs/fat/fat.o
> Using /lib/modules/2.4.20/kernel/fs/vfat/vfat.o
> Using /lib/modules/2.4.20/kernel/fs/msdos/msdos.o
> Hit enter to continue...hub.c: new USB device 00:03.0-1, assigned
> address 2
> Manufacturer: SanDisk Corporation
> Product: Cruzer Mini
> SerialNumber: 200516013
> scsi0 : SCSI emulation for USB Mass Storage devices
>   Vendor: Generic   Model: STORAGE DEVICE    Rev: 1033
>   Type:   Direct-Access                      ANSI SCSI revision: 02
> Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
> SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
> sda: Write Protect is off
> Partition check:
>  /dev/scsi/host0/bus0/target0/lun0: unknown partition table
> Restoring defaults...done
> Algorithmics/MIPS FPU Emulator v1.5
> vlan0: dev_set_promiscuity(master, 1)
> device eth0 entered promiscuous mode
> device vlan0 entered promiscuous mode
> eth1: Invalid argument
> eth1: Operation not supported
> device eth1 entered promiscuous mode
> br0: port 2(eth1) entering learning state
> br0: port 1(vlan0) entering learning state
> br0: port 2(eth1) entering forwarding state
> br0: topology change detected, propagating
> br0: port 1(vlan0) entering forwarding state
> br0: topology change detected, propagating
>
>
> Hit enter to continue...Hit enter to continue...Hit enter to
> continue...
>
>
> BusyBox v0.60.0 (2005.09.09-18:17+0000) Built-in shell (msh)
> Enter 'help' for a list of built-in commands.
>
> #
> #
> # mount -t vfat /mnt/flash/dev/scsi/host0/bus0/target0/lun0/disc
> /mnt/flash
> mount: Mounting /dev/scsi/host0/bus0/target0/lun0/disc on /mnt/flash
> failed: Invalid argument
> #
> #
> #
> #
> ----------------------------------------------------------------------
>
>
>
>
>
>
> --- "Stephen J. Gowdy" <[EMAIL PROTECTED]> wrote:
>
> > Are you using devfs or something like that? I'm not use to the /dev/
> > you
> > point to below. What do you kernel logs show?
> >
> > On Fri, 9 Sep 2005, Ayman Asadi wrote:
> >
> > > Hi,
> > > I need assistance on mounting a vfat formatted usb flash device on
> > an
> > > embedded linux (2.4.20 kernel on mips32 processor). I enabled the
> > scsi
> > > support, vfat, fat, and msdos file systems, usb and usb-storage
> > during
> > > the kernel build. I can see that the device is being enumerated.
> > >
> > > The system creates the directory /dev/scsi/host0/bus0/target0/lun0
> > > which contains the disc file. If I cat the disc file I can see the
> > LED
> > > on the drive blinking and garbage printed to the screen.
> > >
> > > As I read in the docs, I tried to mount the drive as follows:
> > >
> > > mount -t vfat /dev/sda1 /mnt/flash
> > >
> > > The /dev/sda does not exist (/dev/sda1 does not exist) and if I
> > created
> > > it with
> > >
> > > mknod /dev/sda1 b 8 1
> > >
> > > things dn't work.
> > >
> > > I tried the command:
> > >
> > > mount -t vfat /dev/scsi/host0/bus0/target0/lun0 /mnt/flash
> > >
> > > I get the error message:
> > > "mount: Mounting /dev/scsi/host0/bus0/target0/lun0 on /mnt/flash
> > > failed: Block device required"
> > >
> > > Also, I tried the command:
> > >
> > > mount -t vfat /dev/scsi/host0/bus0/target0/lun0/disc  /mnt/flash
> > >
> > > I got the error  message:
> > > "mount: Mounting /dev/scsi/host0/bus0/target0/lun0 on /mnt/flash
> > > failed: Invalid argument"
> > >
> > > Anyone has a pointer to a document to solve this problem?
> > >
> > > Regards,
> > >
> > > Ayman Asadi
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> > Practices
> > > Agile & Plan-Driven Development * Managing Projects & Teams *
> > Testing & QA
> > > Security * Process Improvement & Measurement *
> > http://www.sqe.com/bsce5sf
> > > _______________________________________________
> > > Linux-usb-users@lists.sourceforge.net
> > > To unsubscribe, use the last form field at:
> > > https://lists.sourceforge.net/lists/listinfo/linux-usb-users
> > >
> >
> > --
> >  /------------------------------------+-------------------------\
> > |Stephen J. Gowdy                     | SLAC, MailStop 34,       |
> > |http://www.slac.stanford.edu/~gowdy/ | 2575 Sand Hill Road,     |
> > |http://calendar.yahoo.com/gowdy      | Menlo Park CA 94025, USA |
> > |EMail: [EMAIL PROTECTED]       | Tel: +1 650 926 3144     |
> >  \------------------------------------+-------------------------/
> >
>

--
 /------------------------------------+-------------------------\
|Stephen J. Gowdy                     | SLAC, MailStop 34,       |
|http://www.slac.stanford.edu/~gowdy/ | 2575 Sand Hill Road,     |
|http://calendar.yahoo.com/gowdy      | Menlo Park CA 94025, USA |
|EMail: [EMAIL PROTECTED]       | Tel: +1 650 926 3144     |
 \------------------------------------+-------------------------/


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to