View previous topic :: View next topic |
Author |
Message |
kriko Tux's lil' helper
Joined: 18 Mar 2006 Posts: 92 Location: Slovenia
|
Posted: Tue May 06, 2008 6:04 pm Post subject: [mass storage] device crashes at disconnect |
|
|
Hello! I'm having a problem with my n95 - device was crashing and rebooting when connected as mass storage, also safely unmounting was disastrous - ended a couple of times with crashed vfat partition on phones card.
I partly solved the problem with a special udev rule for it:
Code: | SUBSYSTEM=="block", SUBSYSTEMS=="scsi", ATTRS{model}=="Nokia N95", NAME="n95", RUN+="/bin/sh -c '/bin/echo 64 > /sys/block/%k/queue/max_sectors_kb'" |
Now copying is stable (device doesn't crash or reboots anymore), however many times I cannot unmount it safely - it just crashes badly when doing this:
Code: | sdd:<4>printk: 3 messages suppressed.
Buffer I/O error on device sdd, logical block 0
Buffer I/O error on device sdd, logical block 0
Buffer I/O error on device sdd, logical block 0
Buffer I/O error on device sdd, logical block 0
ldm_validate_partition_table(): Disk read failed.
Buffer I/O error on device sdd, logical block 0
Buffer I/O error on device sdd, logical block 0
Buffer I/O error on device sdd, logical block 0
Buffer I/O error on device sdd, logical block 0
Buffer I/O error on device sdd, logical block 0
Buffer I/O error on device sdd, logical block 3
unable to read partition table |
After a lot of googling I found out that doing this:
before attaching n95 as mass storage to my comp, solves the problem.
But this has other problems - it slows down my mouse (instead getting 800dpi I get 400). Is it possible to write a rule to disable high-speed module just for one device?
I don't know however why it works in M$ windows - same HW.
Using kernel: 2.6.25-zen1-preview1
EDIT: no, rmmod doesn't help always. This is painfull. _________________ Zen sources - fastest kernel in world |
|
Back to top |
|
|
kriko Tux's lil' helper
Joined: 18 Mar 2006 Posts: 92 Location: Slovenia
|
Posted: Tue May 06, 2008 8:09 pm Post subject: |
|
|
Update:
Code: | May 6 22:07:42 kriko hald: unmounted /dev/n95 from '/media/Memory card' on behalf of uid 1000
May 6 22:07:44 kriko kernel: sd 4:0:0:0: [sdd] 7959552 512-byte hardware sectors (4075 MB)
May 6 22:07:44 kriko kernel: sd 4:0:0:0: [sdd] Write Protect is off
May 6 22:07:44 kriko kernel: sd 4:0:0:0: [sdd] Mode Sense: 03 00 00 00
May 6 22:07:44 kriko kernel: sd 4:0:0:0: [sdd] Assuming drive cache: write through
May 6 22:07:44 kriko kernel: sd 4:0:0:0: [sdd] 7959552 512-byte hardware sectors (4075 MB)
May 6 22:07:44 kriko kernel: sd 4:0:0:0: [sdd] Write Protect is off
May 6 22:07:44 kriko kernel: sd 4:0:0:0: [sdd] Mode Sense: 03 00 00 00
May 6 22:07:44 kriko kernel: sd 4:0:0:0: [sdd] Assuming drive cache: write through
May 6 22:07:44 kriko kernel: sdd:<3>Buffer I/O error on device sdd, logical block 0
May 6 22:07:44 kriko kernel: Buffer I/O error on device sdd, logical block 0
May 6 22:07:44 kriko syslog-ng[2218]: last message repeated 2 times
May 6 22:07:44 kriko kernel: ldm_validate_partition_table(): Disk read failed.
May 6 22:07:44 kriko kernel: Buffer I/O error on device sdd, logical block 0
May 6 22:07:44 kriko syslog-ng[2218]: last message repeated 4 times
May 6 22:07:44 kriko kernel: Buffer I/O error on device sdd, logical block 3
May 6 22:07:44 kriko kernel: unable to read partition table |
This happens when unmounting - kernel tries to reconect it right after umount. And this behaviour seems to be random.
Why it does that? _________________ Zen sources - fastest kernel in world |
|
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
|
|