fenrrir / bdin

A block device appindicator for ubuntu. The appindicator gives options for mount, umount and detach external block devices.
7 stars 4 forks source link

detach problem #1

Open nihil-enochian opened 10 years ago

nihil-enochian commented 10 years ago

I have Toshiba 1TB external HDD and When i try to unmount and than detach it, drive spin down and than remount quickly again. And every time is doing like that. I use ubuntu 13.10 64bit version.

fenrrir commented 10 years ago

Hi, did you can send the output of command "dmesg" when it happens?

nihil-enochian commented 10 years ago

I hope this can help: http://paste.ubuntu.com/6758253/

fenrrir commented 10 years ago

Open a terminal e type "tail -f /var/log/kern.log". This command will block on terminal. Insert/mount/umount/detach/remove your HDD device. Get the output from terminal and paste in a website. Please do this.

how much partititons have on your HDD? 2 or +?

I can't get the same error on my machine with ubuntu 13.10 64bits

nihil-enochian commented 10 years ago

I have only one NTFS partition. Here you are the output from terminal that you asked for.I hope this will help.An I also want to mention that this problem is and when I use safely remove from nautilus.HDD spins off and then automatically mounts. http://paste.ubuntu.com/6758934/

fenrrir commented 10 years ago

Sorry, but don't know how to fix it.

nihil-enochian commented 10 years ago

I just want to indicate that this problem is not affecting on any of usb flash drives that I try.Maybe this can help...?

monsta commented 10 years ago

I have the same problem with a flash drive. I tell bdin to detach the device but in 1-2 seconds it gets remounted automatically. This is not always reproducible though.

tail -f /var/log/kern.log shows how the device gets reconnected:

Feb 19 14:05:44 asylum kernel: [ 6300.784253] usb 2-3: USB disconnect, device number 17
Feb 19 14:05:45 asylum kernel: [ 6301.024017] usb 2-3: new high-speed USB device number 18 using ehci-pci
Feb 19 14:05:45 asylum kernel: [ 6301.394482] usb 2-3: New USB device found, idVendor=058f, idProduct=6387
Feb 19 14:05:45 asylum kernel: [ 6301.394486] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 19 14:05:45 asylum kernel: [ 6301.394489] usb 2-3: Product: Mass Storage Device
Feb 19 14:05:45 asylum kernel: [ 6301.394492] usb 2-3: Manufacturer: JetFlash
Feb 19 14:05:45 asylum kernel: [ 6301.394494] usb 2-3: SerialNumber: 0QL2XC92

Though it's not only bdin that shows this behavior.

udisks --detach /dev/sdb

leads to the same result: sometimes the device gets immediately reconnected and mounted.

monsta commented 10 years ago

Looks like this bug is quite old.

fenrrir commented 10 years ago

Hi all,

Bdin uses udisk dbus interface to manage devices. Any problem with udisk will affect it.