[Desktop-packages] [Bug 1937350] Re: USB HDD not properly spin down after safely remove
** No longer affects: ubuntu-mate -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1937350 Title: USB HDD not properly spin down after safely remove Status in Linux: Confirmed Status in linux package in Ubuntu: New Status in udisks2 package in Ubuntu: New Bug description: I do not know which package I should file the bug for. I am using Ubuntu MATE 20.04 LTS and Microsoft Windows 10. On Microsoft Windows 10, no issue with safely remove any USB external HDD. When using Microsoft Windows 10, after safely remove my external HDD, the HDD will spin down. But, on Ubuntu MATE 20.04 LTS, some issues occur after I try to safely remove my external HDD. Tried different hard drive, different enclosures, and also some external hard drive that came bundled with enclosure. All having same or different issues after safely remove them in Ubuntu MATE. Problems will also occur on those branded external HDD that came bundled with enclosure, for example, those Seagate Backup Plus drives ( https://www.seagate.com/as/en/consumer/backup/backup-plus/ ). Here are the common problems after safely remove (in Ubuntu MATE): 1. The external HDD will spin down and then spin up again, and then being automatically remounted again. The "dmesg" command shows errors. 2. The external HDD will spin down and then spin up again, no remount. The LED on the enclosure keep flashing. The "dmesg" command shows errors. After you unplug the HDD, you can connect another HDD. 3. The external HDD will spin down and then spin up again, no remount. The LED on the enclosure keep flashing. The "dmesg" command shows errors. BUT, after you unplug the HDD, when you connect another HDD, the computer will not detect it and will not mount it until you reboot the computer. But, before reboot connecting another device (e.g. keyboard, mouse, etc) to the same USB port, the device works perfectly. 4. The external HDD will spin down and then spin up again, no remount. But, after a few seconds, it spin down again. But, still, the "dmesg" command shows errors. Different HDD, different enclosure, show different symptoms or problems. Some HDD enclosures, number 1 above will occur. Some HDD enclosures, either number 2 or 3 above will occur. Sometimes, problem number 2 above will occur. Sometimes, problem number 3 will occur. Some enclosure, problem number 4 will occur. Here, I will use the following enclosure as example in this bug report: Product link: https://www.ugreen.com/products/usb-c-2-5-sata-iii-hard- drive-enclosure Purchase link in my country: https://shopee.com.my/UGREEN-USB-3.1-To- SATA-III-External-Hard-Drive- Enclosure-(2.5-)-i.64923440.1583255569?position=1 Here are the steps to reproduce (for the enclosure above): 1. Connect the external HDD to any available USB 3.0 port. The HDD will be mounted. Caja (Ubuntu MATE default file manager) will launch. 2. Close the Caja window. Do not do anything on the HDD. 3. Use left or right hand, touch the HDD enclosure to feel the spinning. Do not let your hand leave the enclosure, so that you can continue feel the spinning. 4. Use your another hand to operate your computer. 5. Go to desktop. 6. Right click on the external HDD icon. 7. Click "Safely Remove Drive". The HDD unmounted. Assume that one of your hands still touching the enclosure of the HDD, you will feel that the HDD will spin down and then spin up again. No remount. The LED indicator on the enclosure will keep flashing. These are described in problem number 2 and 3 above. Sometimes, after you unplug the drive and try to connect another drive, it will not be detected until you reboot your computer. Almost all external HDDs I tested will cause "dmesg" command to shows "Buffer I/O error" and "Synchronize Cache() failed" error after "Safely Remove Drive". In Microsoft Windows 10, all above mentioned problems WILL NOT occur. --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu27.18 Architecture: amd64 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC1: cshong 1059 F pulseaudio /dev/snd/controlC0: cshong 1059 F pulseaudio CasperMD5CheckResult: skip CurrentDesktop: MATE DistroRelease: Ubuntu 20.04 InstallationDate: Installed on 2020-11-23 (242 days ago) InstallationMedia: Ubuntu-MATE 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731) IwConfig: lono wireless extensions. enp3s0no wireless extensions. MachineType: ASUS All Series Package: linux (not installed) ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.8.0-63-generic root=UUID=cad772fa-c02b-4268-bc15-e366825ac807 ro quiet splash vt.handoff=7 ProcVersionSignature: Ubuntu 5.8.0-63.71~20.04.1-generic 5.8.18 RelatedPackageVersions: linux-restr
[Desktop-packages] [Bug 1937350] Re: USB HDD not properly spin down after safely remove
The USB device gets disconnected successfully: [ 70.483616] usb 4-2: USB disconnect, device number 2 If you know how to hack the kernel, this is what I'll try in USB/xHCI code: - Put the USB link to U3 before disconnecting - Ensure remote wakeup is disabled before disconnecting -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1937350 Title: USB HDD not properly spin down after safely remove Status in Linux: Confirmed Status in Ubuntu MATE: New Status in linux package in Ubuntu: New Status in udisks2 package in Ubuntu: New Bug description: I do not know which package I should file the bug for. I am using Ubuntu MATE 20.04 LTS and Microsoft Windows 10. On Microsoft Windows 10, no issue with safely remove any USB external HDD. When using Microsoft Windows 10, after safely remove my external HDD, the HDD will spin down. But, on Ubuntu MATE 20.04 LTS, some issues occur after I try to safely remove my external HDD. Tried different hard drive, different enclosures, and also some external hard drive that came bundled with enclosure. All having same or different issues after safely remove them in Ubuntu MATE. Problems will also occur on those branded external HDD that came bundled with enclosure, for example, those Seagate Backup Plus drives ( https://www.seagate.com/as/en/consumer/backup/backup-plus/ ). Here are the common problems after safely remove (in Ubuntu MATE): 1. The external HDD will spin down and then spin up again, and then being automatically remounted again. The "dmesg" command shows errors. 2. The external HDD will spin down and then spin up again, no remount. The LED on the enclosure keep flashing. The "dmesg" command shows errors. After you unplug the HDD, you can connect another HDD. 3. The external HDD will spin down and then spin up again, no remount. The LED on the enclosure keep flashing. The "dmesg" command shows errors. BUT, after you unplug the HDD, when you connect another HDD, the computer will not detect it and will not mount it until you reboot the computer. But, before reboot connecting another device (e.g. keyboard, mouse, etc) to the same USB port, the device works perfectly. 4. The external HDD will spin down and then spin up again, no remount. But, after a few seconds, it spin down again. But, still, the "dmesg" command shows errors. Different HDD, different enclosure, show different symptoms or problems. Some HDD enclosures, number 1 above will occur. Some HDD enclosures, either number 2 or 3 above will occur. Sometimes, problem number 2 above will occur. Sometimes, problem number 3 will occur. Some enclosure, problem number 4 will occur. Here, I will use the following enclosure as example in this bug report: Product link: https://www.ugreen.com/products/usb-c-2-5-sata-iii-hard- drive-enclosure Purchase link in my country: https://shopee.com.my/UGREEN-USB-3.1-To- SATA-III-External-Hard-Drive- Enclosure-(2.5-)-i.64923440.1583255569?position=1 Here are the steps to reproduce (for the enclosure above): 1. Connect the external HDD to any available USB 3.0 port. The HDD will be mounted. Caja (Ubuntu MATE default file manager) will launch. 2. Close the Caja window. Do not do anything on the HDD. 3. Use left or right hand, touch the HDD enclosure to feel the spinning. Do not let your hand leave the enclosure, so that you can continue feel the spinning. 4. Use your another hand to operate your computer. 5. Go to desktop. 6. Right click on the external HDD icon. 7. Click "Safely Remove Drive". The HDD unmounted. Assume that one of your hands still touching the enclosure of the HDD, you will feel that the HDD will spin down and then spin up again. No remount. The LED indicator on the enclosure will keep flashing. These are described in problem number 2 and 3 above. Sometimes, after you unplug the drive and try to connect another drive, it will not be detected until you reboot your computer. Almost all external HDDs I tested will cause "dmesg" command to shows "Buffer I/O error" and "Synchronize Cache() failed" error after "Safely Remove Drive". In Microsoft Windows 10, all above mentioned problems WILL NOT occur. --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu27.18 Architecture: amd64 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC1: cshong 1059 F pulseaudio /dev/snd/controlC0: cshong 1059 F pulseaudio CasperMD5CheckResult: skip CurrentDesktop: MATE DistroRelease: Ubuntu 20.04 InstallationDate: Installed on 2020-11-23 (242 days ago) InstallationMedia: Ubuntu-MATE 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731) IwConfig: lono wireless extensions. enp3s0no wireless extensions. MachineType: ASUS All Series Package: linux (not in
[Desktop-packages] [Bug 1937350] Re: USB HDD not properly spin down after safely remove
Is it possible that the system try to spin down the USB HDD, while the unmounting of partitions or synchronization of cache still in progress? Is it possible that the system did not wait for the progress of unmounting pof partition and cache synchronization to finish, before attempt to spin down the USB HDD? I think the correct way to safely remove a USB storage device is to wait for the unmount and cache synchronization to finish, then wait for the other HDD related operations to finish before spin down the HDD. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1937350 Title: USB HDD not properly spin down after safely remove Status in Linux: Confirmed Status in Ubuntu MATE: New Status in linux package in Ubuntu: New Status in udisks2 package in Ubuntu: New Bug description: I do not know which package I should file the bug for. I am using Ubuntu MATE 20.04 LTS and Microsoft Windows 10. On Microsoft Windows 10, no issue with safely remove any USB external HDD. When using Microsoft Windows 10, after safely remove my external HDD, the HDD will spin down. But, on Ubuntu MATE 20.04 LTS, some issues occur after I try to safely remove my external HDD. Tried different hard drive, different enclosures, and also some external hard drive that came bundled with enclosure. All having same or different issues after safely remove them in Ubuntu MATE. Problems will also occur on those branded external HDD that came bundled with enclosure, for example, those Seagate Backup Plus drives ( https://www.seagate.com/as/en/consumer/backup/backup-plus/ ). Here are the common problems after safely remove (in Ubuntu MATE): 1. The external HDD will spin down and then spin up again, and then being automatically remounted again. The "dmesg" command shows errors. 2. The external HDD will spin down and then spin up again, no remount. The LED on the enclosure keep flashing. The "dmesg" command shows errors. After you unplug the HDD, you can connect another HDD. 3. The external HDD will spin down and then spin up again, no remount. The LED on the enclosure keep flashing. The "dmesg" command shows errors. BUT, after you unplug the HDD, when you connect another HDD, the computer will not detect it and will not mount it until you reboot the computer. But, before reboot connecting another device (e.g. keyboard, mouse, etc) to the same USB port, the device works perfectly. 4. The external HDD will spin down and then spin up again, no remount. But, after a few seconds, it spin down again. But, still, the "dmesg" command shows errors. Different HDD, different enclosure, show different symptoms or problems. Some HDD enclosures, number 1 above will occur. Some HDD enclosures, either number 2 or 3 above will occur. Sometimes, problem number 2 above will occur. Sometimes, problem number 3 will occur. Some enclosure, problem number 4 will occur. Here, I will use the following enclosure as example in this bug report: Product link: https://www.ugreen.com/products/usb-c-2-5-sata-iii-hard- drive-enclosure Purchase link in my country: https://shopee.com.my/UGREEN-USB-3.1-To- SATA-III-External-Hard-Drive- Enclosure-(2.5-)-i.64923440.1583255569?position=1 Here are the steps to reproduce (for the enclosure above): 1. Connect the external HDD to any available USB 3.0 port. The HDD will be mounted. Caja (Ubuntu MATE default file manager) will launch. 2. Close the Caja window. Do not do anything on the HDD. 3. Use left or right hand, touch the HDD enclosure to feel the spinning. Do not let your hand leave the enclosure, so that you can continue feel the spinning. 4. Use your another hand to operate your computer. 5. Go to desktop. 6. Right click on the external HDD icon. 7. Click "Safely Remove Drive". The HDD unmounted. Assume that one of your hands still touching the enclosure of the HDD, you will feel that the HDD will spin down and then spin up again. No remount. The LED indicator on the enclosure will keep flashing. These are described in problem number 2 and 3 above. Sometimes, after you unplug the drive and try to connect another drive, it will not be detected until you reboot your computer. Almost all external HDDs I tested will cause "dmesg" command to shows "Buffer I/O error" and "Synchronize Cache() failed" error after "Safely Remove Drive". In Microsoft Windows 10, all above mentioned problems WILL NOT occur. --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu27.18 Architecture: amd64 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC1: cshong 1059 F pulseaudio /dev/snd/controlC0: cshong 1059 F pulseaudio CasperMD5CheckResult: skip CurrentDesktop: MATE DistroRelease: Ubuntu 20.04 InstallationDate: Installed on 2020-11-23 (242 day
[Desktop-packages] [Bug 1937350] Re: USB HDD not properly spin down after safely remove
** Also affects: caja (Ubuntu) Importance: Undecided Status: New ** Also affects: udisks2 (Ubuntu) Importance: Undecided Status: New ** No longer affects: caja (Ubuntu) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to udisks2 in Ubuntu. https://bugs.launchpad.net/bugs/1937350 Title: USB HDD not properly spin down after safely remove Status in Linux: New Status in Ubuntu MATE: New Status in linux package in Ubuntu: New Status in udisks2 package in Ubuntu: New Bug description: I do not know which package I should file the bug for. I am using Ubuntu MATE 20.04 LTS and Microsoft Windows 10. On Microsoft Windows 10, no issue with safely remove any USB external HDD. When using Microsoft Windows 10, after safely remove my external HDD, the HDD will spin down. But, on Ubuntu MATE 20.04 LTS, some issues occur after I try to safely remove my external HDD. Tried different hard drive, different enclosures, and also some external hard drive that came bundled with enclosure. All having same or different issues after safely remove them in Ubuntu MATE. Problems will also occur on those branded external HDD that came bundled with enclosure, for example, those Seagate Backup Plus drives ( https://www.seagate.com/as/en/consumer/backup/backup-plus/ ). Here are the common problems after safely remove (in Ubuntu MATE): 1. The external HDD will spin down and then spin up again, and then being automatically remounted again. The "dmesg" command shows errors. 2. The external HDD will spin down and then spin up again, no remount. The LED on the enclosure keep flashing. The "dmesg" command shows errors. After you unplug the HDD, you can connect another HDD. 3. The external HDD will spin down and then spin up again, no remount. The LED on the enclosure keep flashing. The "dmesg" command shows errors. BUT, after you unplug the HDD, when you connect another HDD, the computer will not detect it and will not mount it until you reboot the computer. But, before reboot connecting another device (e.g. keyboard, mouse, etc) to the same USB port, the device works perfectly. 4. The external HDD will spin down and then spin up again, no remount. But, after a few seconds, it spin down again. But, still, the "dmesg" command shows errors. Different HDD, different enclosure, show different symptoms or problems. Some HDD enclosures, number 1 above will occur. Some HDD enclosures, either number 2 or 3 above will occur. Sometimes, problem number 2 above will occur. Sometimes, problem number 3 will occur. Some enclosure, problem number 4 will occur. Here, I will use the following enclosure as example in this bug report: Product link: https://www.ugreen.com/products/usb-c-2-5-sata-iii-hard- drive-enclosure Purchase link in my country: https://shopee.com.my/UGREEN-USB-3.1-To- SATA-III-External-Hard-Drive- Enclosure-(2.5-)-i.64923440.1583255569?position=1 Here are the steps to reproduce (for the enclosure above): 1. Connect the external HDD to any available USB 3.0 port. The HDD will be mounted. Caja (Ubuntu MATE default file manager) will launch. 2. Close the Caja window. Do not do anything on the HDD. 3. Use left or right hand, touch the HDD enclosure to feel the spinning. Do not let your hand leave the enclosure, so that you can continue feel the spinning. 4. Use your another hand to operate your computer. 5. Go to desktop. 6. Right click on the external HDD icon. 7. Click "Safely Remove Drive". The HDD unmounted. Assume that one of your hands still touching the enclosure of the HDD, you will feel that the HDD will spin down and then spin up again. No remount. The LED indicator on the enclosure will keep flashing. These are described in problem number 2 and 3 above. Sometimes, after you unplug the drive and try to connect another drive, it will not be detected until you reboot your computer. Almost all external HDDs I tested will cause "dmesg" command to shows "Buffer I/O error" and "Synchronize Cache() failed" error after "Safely Remove Drive". In Microsoft Windows 10, all above mentioned problems WILL NOT occur. --- ProblemType: Bug ApportVersion: 2.20.11-0ubuntu27.18 Architecture: amd64 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC1: cshong 1059 F pulseaudio /dev/snd/controlC0: cshong 1059 F pulseaudio CasperMD5CheckResult: skip CurrentDesktop: MATE DistroRelease: Ubuntu 20.04 InstallationDate: Installed on 2020-11-23 (242 days ago) InstallationMedia: Ubuntu-MATE 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731) IwConfig: lono wireless extensions. enp3s0no wireless extensions. MachineType: ASUS All Series Package: linux (not installed) ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.8.0-63-generic ro