[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removable USB device contents cached after removal?


On Wed, Dec 31, 2003 at 05:12:16PM -0700, Matthew Mastracci wrote:

[...]

> 1.  Insert card into reader.
> 2.  Mount card as directory somewhere in root filesystem, list contents 
> of card
> 3.  dd if=/dev/sdd1 count=1024 bs=1024 | hexdump
> 	- results in correct filesystem dump
> 4.  Remove card from reader.
> 5.  dd if=/dev/sdd1 count=1024 bs=1024 | hexdump
> 	- same filesystem dump as before!
> 6.  cd to mountpoint, contents are still available
> 7.  dd if=/dev/sdd1 of=/dev/null
>          - approx 3MB of card data still available
> 8.  umount the mountpoint from before

Did you try `eject sdd` after this, and if not, try, and see how it
works.

> 9.  dd if=/dev/sdd1 of=/dev/null results in "No medium found"

usb-storage behaves differently in 2.6 than in 2.4, maybe this is the
problem for you now.

-- 
           vms _at_ bofhlet.net, IRC:*@Martin, /bin/zsh. C|N>K
Linux moria 2.6.0-mm2 #1 Tue Dec 30 10:21:33 CET 2003 i686
 12:46:44 up 1 day, 23:08, 11 users,  load average: 0.94, 0.68, 0.69
UNIX programmers DO IT with forks.

Attachment: pgp354776.pgp
Description: PGP signature


この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
Follow-Ups: