Jump to content

USB 2.0


william
 Share

Recommended Posts

here goes my listed modules output;

[root@poseidon william]# lsmod
Module                  Size  Used by
nls_cp850               4736  1 
vfat                   13760  1 
fat                    45120  1 vfat
md5                     3872  1 
ipv6                  233664  6 
sg                     37528  0 
sr_mod                 16964  0 
raw                     7616  1 
ide-cd                 39972  0 
cdrom                  37056  2 sr_mod,ide-cd
floppy                 59348  0 
parport_pc             34924  1 
lp                     12200  0 
parport                40648  2 parport_pc,lp
af_packet              20552  0 
eepro100               29772  0 
mii                     4992  1 eepro100
nls_iso8859-1           3904  2 
ntfs                   85900  1 
supermount             37876  4 
intel-agp              17372  1 
agpgart                31080  2 intel-agp
tsdev                   7168  0 
joydev                 10304  0 
evdev                   9600  0 
usbmouse                5216  0 
nvidia               2068232  12 
hid                    63392  0 
usb-midi               23844  0 
snd-usb-audio          64704  0 
snd-rawmidi            23616  1 snd-usb-audio
snd-seq-device          8008  1 snd-rawmidi
snd-pcm                93220  1 snd-usb-audio
snd-page-alloc         11972  1 snd-pcm
snd-timer              24516  1 snd-pcm
snd                    52580  5 snd-usb-audio,snd-rawmidi,snd-seq-device,snd-p,snd-timer
audio                  45568  0 
soundcore               9248  3 usb-midi,snd,audio
sd_mod                 16672  2 
usb-storage            72900  1 
scsi_mod              114712  4 sg,sr_mod,sd_mod,usb-storage
usblp                  12288  0 
ehci-hcd               24292  0 
uhci-hcd               29584  0 
usbcore               104028  11 usbmouse,hid,usb-midi,snd-usb-audio,audio,usbtorage,usblp,ehci-hcd,uhci-hcd
rtc                    11576  0 
ext3                  110376  1 
jbd                    54328  1 ext3

 

my fstab:

[root@poseidon william]# cat /etc/fstab
/dev/hda5 / ext3 noatime 1 1
none /dev/pts devpts mode=0620 0 0
none /mnt/cdrom supermount dev=/dev/hdc,fs=auto,ro,--,user,iocharset=iso8859-1,codepage=850,noauto,umask=0 0 0
none /mnt/flash supermount dev=/dev/sdb1,fs=ext2:vfat,--,iocharset=iso8859-1,kudzu,codepage=850 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,iocharset=iso8859-1,sync,codepage=850,umask=0 0 0
/dev/hda1 /mnt/windows ntfs nls=iso8859-1,ro,umask=0 0 0
none /mnt/zip supermount dev=/dev/sda4,fs=ext2:vfat,--,iocharset=iso8859-1,kudzu,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda3 swap swap defaults 0 0
none /mnt/zip2 supermount dev=/dev/scsi/host0/bus0/target0/lun0/part4,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0

What the hell is that garbage "zip2" as a scsi device?

Zip drive is sda4, sdb1 is my memory card, what's in dev/pts?

Edited by william
Link to comment
Share on other sites

  • Replies 36
  • Created
  • Last Reply

Top Posters In This Topic

The usb2.0 module is loaded but fstab looks to be a terrible mess. Make sure there is no zip disk in the drive and delete both of the zip entries as wll as this line:

 

dev=/dev/scsi/host0/bus0/target0/lun0/part4,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0

 

Put this in their place assuming your zip disks are FAT32 formatted:

 

/dev/sda4 /mnt/zip vfat umask=0,user,iocharset=iso8859-1,codepage=850,noauto,exec,quiet 0 0

 

Make a mounting icon on your desktop by right clicking on an open area and go to Create New>Device>Zip Device. A window will pop up for configuring the mounting icon. Click on the "Device" tab and tick the arrow next to the blank field and select /dev/sda4 then tick OK.

 

Insert a zip disk in the drive and tick on your mounting icon. The drive should be automatically mounted and konqueror will come up displaying the contents of the disk. See if the transfer rates are any better. When done, close konqueror, right click on the mounting icon and select the "Unmount" option from the drop down menu.

Edited by pmpatrick
Link to comment
Share on other sites

pmpatrick, thanks for your help, but unfortunately things didn't get better here.

Despite of using enlightenemnt instead KDE, I succeeded in changing things in fstab through terminal. I deleted that those 2 lines (garbage and sda4) and inserted what you have suggested. Actually, that garbage line (recognizing my usb zip as a scsi ) appeared since I did an update in harddrake and afterwards, whenever I booted the computer the drakconf appeared suggesting that I new device was found and by mistake I should have accepted to write the "new" hardware in fstab.

Going back to the point, after all the corrections in fstab, the problem seems to persist:

[root@poseidon william]# hdparm -Tt /dev/sda
/dev/sda:
Timing buffer-cache reads:   1284 MB in  2.00 seconds = 640.50 MB/sec
Timing buffered disk reads:    8 MB in  3.43 seconds =   2.33 MB/sec

my fstab;

[root@poseidon william]# cat /etc/fstab
/dev/hda5 / ext3 noatime 1 1
none /dev/pts devpts mode=0620 0 0
none /mnt/cdrom supermount dev=/dev/hdc,fs=auto,ro,--,user,iocharset=iso8859-1,codepage=850,noauto,umask=0 0 0
none /mnt/flash supermount dev=/dev/sdb1,fs=ext2:vfat,--,iocharset=iso8859-1,kudzu,codepage=850 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,iocharset=iso8859-1,sync,codepage=850,umask=0 0 0
/dev/hda1 /mnt/windows ntfs nls=iso8859-1,ro,umask=0 0 0
none /proc proc defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/sda4 /mnt/zip vfat umask=0,user,codepage=850,iocharset=iso8859-1,noauto,exec,quiet 0 0

Very strange, isn't it? That' s what makes Linux very exciting!!!

Link to comment
Share on other sites

Just to see if it has any effect, try commenting out the /dev/sb1 line which I assume is your flash card reader. Having two mass storage devices on the usb bus might be causing some problems. Also, are you using the updated kernel? That has some usb fixes in it. I'm using the 2.6.3-7mdk updated kernel. You could also try a different usb port. Other than that, I'm fresh out of ideas.

Link to comment
Share on other sites

Read my comment again. Read my review/website. This is a known issue. Mount the drive by hand (as root or with the correct line in your fstab as a user), you should get much better performance.

 

If you don't understand what where or how, just ask - I've got some other stuff to do right now, will check back tomorrow.

Edited by aRTee
Link to comment
Share on other sites

pmpatrick, I tried commenting the line for my flash card, but still no change in the speed.

aRTee, I've already read and read and read your review, but what happens here is that whenever I delete the entry given by the system or edit it accordingly, as soon as I reboot the system, it insists in re-writing in the fstab the original entry. I've already checked if supermout was enabled in mcc (mount points session) and it was not.

So, I think that I should be doing something wrong here....

Here, my fstab:

[root@poseidon william]# cat /etc/fstab 
/dev/hda5 / ext3 noatime 1 1 
none /dev/pts devpts mode=0620 0 0 
none /mnt/cdrom supermount dev=/dev/hdc,fs=auto,ro,--,user,iocharset=iso8859-1,codepage=850,noauto,umask=0 0 0 
#none /mnt/flash supermount dev=/dev/sdb1,fs=ext2:vfat,--,iocharset=iso8859-1,kudzu,codepage=850 0 0 
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,iocharset=iso8859-1,sync,codepage=850,umask=0 0 0 
/dev/hda1 /mnt/windows ntfs nls=iso8859-1,ro,umask=0 0 0 
/dev/sda4 /mnt/zip auto iocharset=iso8859-15,codepage=850,kudzu 0 0 
none /proc proc defaults 0 0 
/dev/hda3 swap swap defaults 0 0 
none /mnt/zip2 supermount dev=/dev/scsi/host0/bus0/target0/lun0/part4,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0

As you can see, the system is re-writing the "zip2" supermount and "dev/scsi" lines whenever I reboot the computer.

Edited by william
Link to comment
Share on other sites

Try turning off harddrake in mcc>system>services. My theory is that your zip drive is being redetected by harddrake on boot and a new fstab entry is written for it. Then edit your fstab line and see if you get another fstab rewrite when you boot. If not, test with hdparm for any improvement.

Link to comment
Share on other sites

I'm at work at this moment and:

pmpatrick: I will check the hotplug

aRTee: what I did was to put this entry here:

/dev/sda4 /mnt/zip auto iocharset=iso8859-15,codepage=850,kudzu 0 0 
none /proc proc defaults 0 0

and the system insists in writing this one:

none /mnt/zip2 supermount dev=/dev/scsi/host0/bus0/target0/lun0/part4,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0

Note the iocharset is not the same in the entries, I've just copied what you put in your review, but I will change the first entry in order to make iocharset matchs what the system keeps writing. i.e.: iocharset=iso8859-1 instead iocharset=iso8859-15.

Link to comment
Share on other sites

Delete this:

 

/dev/sda4 /mnt/zip auto iocharset=iso8859-15,codepage=850,kudzu 0 0

 

and this:

 

none /mnt/zip2 supermount dev=/dev/scsi/host0/bus0/target0/lun0/part4,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0

 

and insert this in their place:

 

/dev/sda4 /mnt/zip vfat umask=0,user,codepage=850,iocharset=iso8859-1,noauto,exec,quiet 0 0

 

 

 

 

Your /dev/sda4 line is causing the problem because it has "kudzu" in it. That's for detecting new hardware IIRC. The line I gave you above should work. Afterwards, disable hotplug and reboot and see if fstab is rewritten. If not try hdparm test again. If there is improvement then try reenabling hotplug and see if fstab rewrites on reboot. If not, you can keep it enabled, otherwise disable hotplug and edit fstab again.

Link to comment
Share on other sites

pmpatrick, that's what I have in my fstab after copying and pasting what you suggested:

/dev/hda5 / ext3 noatime 1 1
none /dev/pts devpts mode=0620 0 0
none /mnt/cdrom supermount dev=/dev/hdc,fs=auto,ro,--,user,iocharset=iso8859-1,codepage=850,noauto,umask=0 0 0
#none /mnt/flash supermount dev=/dev/sdb1,fs=ext2:vfat,--,iocharset=iso8859-1,kudzu,codepage=850 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,iocharset=iso8859-1,sync,codepage=850,umask=0 0 0
/dev/hda1 /mnt/windows ntfs nls=iso8859-1,ro,umask=0 0 0
/dev/hda3 swap swap defaults 0 0
/dev/sda4 /mnt/zip vfat umask=0,user,codepage=850,iocharset=iso8859-1,noauto,exec,quiet 0 0

none /mnt/zip2 supermount dev=/dev/scsi/host0/bus0/target0/lun0/part4,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0

.

Unfortunately, It hasn't worked....during booting process the entry gets written again, despite hotplug is stopped. I've already spent a lot of time on it and so have you. I'll still have to put xmms to read my cd's, man.

 

All the best, man! :jester:

Edited by william
Link to comment
Share on other sites

In that case, just use the device indication that supermount/kudzu/harddrake wants to create the fstab entry for:

dev=/dev/scsi/host0/bus0/target0/lun0/part4

 

so instead of pmpatricks suggestion of this:

/dev/sda4 /mnt/zip vfat umask=0,user,codepage=850,iocharset=iso8859-1,noauto,exec,quiet 0 0

 

try this:

/dev/scsi/host0/bus0/target0/lun0/part4 /mnt/zip vfat umask=0,user,codepage=850,iocharset=iso8859-1,noauto,exec,quiet 0 0

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...