On Thu, 23 Sep 2004, Dima Epshtein wrote: > Hi, > > I am starting to work with USB devices > > I tried to use net2280 over PCI card as mass storage device on Linux > > My working environment Fedora-2 with kernel 2.6.5-1.358 on i686 > > I put net2280 card in PCI slot and Hardware Browser detect USB 2.0 > > I open debug messages in file_storage.c file > > I compiled net2280.ko and g_file_storage.ko modules > > I did all instructions as described in Chapter 3. Using Linux USB
Chapter 3 of what document? > => insmod net2280.ko > => dd bs=1M count=64 if=/dev/zero of=/root/data/backing_file > => mkfs -t vfat /root/data/backing_file I think that was your mistake. > => insmod g_file_storage.ko file=/root/data/backing_file > > After that I connected net2280 card to my Laptop USB port > > But unfortunatly my laptop (windows 2000) see USB mass storage device, > but can't start it > > There are output generated on Linux side: > Can somebody to help me undestand what is wrong ? > > Thanks in advance You created a file system directly in your backing file. That means there was no partition table. Windows probably expects to find a partition table and gives up when it's not there. Here's what you can do. Skip the mkfs step and go ahead with the insmod as above. Then plug the net2280 card into one of the USB ports on the Linux computer and modprobe usb-storage. The net2280 should show up as a new SCSI disk like /dev/sda. If you already have a SCSI disk the name will use a different letter, like /dev/sdc. Just use that same name in the commands below. Next run "fdisk /dev/sda", and create a single new primary partition (number 1) that includes the entire disk, with partition type b or c (Win95 FAT32). After writing the new partition table you can run "mkfs -t vfat /dev/sda1". Once that's done the backing file will be set up correctly with the filesystem in the first partition, and Windows should have no trouble recognizing it. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
