[SOLVED] Unmounting external storage freezes system

Forum rules
Before you post please read this
Post Reply
hwalinga
Level 1
Level 1
Posts: 24
Joined: Wed Oct 11, 2017 6:52 pm

[SOLVED] Unmounting external storage freezes system

Post by hwalinga »

TLDR: Whenever I unmount external storage devices (harddrive or USB) using nemo or udisksctl, my system freezes.

I am running LMDE Cindy with Cinnamon and from the moment I installed the OS (few weeks ago) I cannot safely remove any external storage devices (harddrive and USB). If I do this my system freezes, and I cannot do anything, my mouse also stop working, and music is stuck in a loop from that point.

So far, this has always happened when using nemo (4.0.6), (the last thing I see is a message saying something like "Do not remove external drive, still writing to it") and it also, most of the time (not always, but I only had success with USB) happens when using `udisksctl -b unmount *devicename*`.

Before I was using Linux Mint Rosa (17.3) and I didn't had this problem on this laptop, so I suspect the software is the problem. I could find this (https://github.com/linuxmint/nemo/issues/1899), but it says the problem was solved with nemo 4, which wasn't the case for me, and since the same happens with the terminal I am not sure nemo is to blame here.

I am happy with any solution/work-around to safely remove my external storage devices including using other software (GUI or CLI).

Code: Select all

inxi -Fxz 

System:    Host: lmde-carmela Kernel: 4.9.0-8-amd64 x86_64 (64 bit gcc: 6.3.0)
           Desktop: Cinnamon 3.8.9 (Gtk 3.22.11-1) Distro: LMDE 3 (cindy)
Machine:   Device: laptop System: Hewlett-Packard product: HP EliteBook 8470p v: A1029D1102
           Mobo: Hewlett-Packard model: 179B v: KBC Version 42.32
           BIOS: Hewlett-Packard v: 68ICF Ver. F.31 date: 09/24/2012
Battery    BAT0: charge: 25.6 Wh 100.0% condition: 25.6/25.6 Wh (100%)
           model: Hewlett-Packard Primary status: Full
CPU:       Dual core Intel Core i5-3320M (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10376
           clock speeds: max: 3300 MHz 1: 1224 MHz 2: 1219 MHz 3: 1299 MHz
           4: 1298 MHz
Graphics:  Card: Intel 3rd Gen Core processor Graphics Controller bus-ID: 00:02.0
           Display Server: X.Org 1.19.2 drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1600x900@60.02hz
           GLX Renderer: Mesa DRI Intel Ivybridge Mobile
           GLX Version: 3.0 Mesa 13.0.6 Direct Rendering: Yes
Audio:     Card Intel 7 Series/C216 Family High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.9.0-8-amd64
Network:   Card-1: Intel 82579LM Gigabit Network Connection
           driver: e1000e v: 3.2.6-k port: 4060 bus-ID: 00:19.0
           IF: enp0s25 state: down mac: <filter>
           Card-2: Broadcom Limited BCM43228 802.11a/b/g/n
           driver: wl bus-ID: 24:00.0
           IF: wlo1 state: up mac: <filter>
Drives:    HDD Total Size: 256.1GB (45.2% used)
           ID-1: /dev/sda model: MTFDDAK256MAM size: 256.1GB
Partition: ID-1: / size: 154G used: 99G (68%) fs: ext4 dev: /dev/sda3
           ID-2: swap-1 size: 10.71GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
Sensors:   System Temperatures: cpu: 49.0C mobo: 0.0C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 221 Uptime: 13 min Memory: 4445.9/7852.1MB
           Init: systemd runlevel: 5 Gcc sys: 8.2.0
           Client: Shell (zsh 5.3.1) inxi: 2.3.5 

Last edited by hwalinga on Tue Jan 22, 2019 3:04 pm, edited 1 time in total.

User avatar
SuperBoby
Level 3
Level 3
Posts: 106
Joined: Wed Nov 21, 2018 2:33 pm

Re: Unmounting external storage freezes system

Post by SuperBoby »

hwalinga wrote:
Tue Jan 22, 2019 9:43 am
I am running LMDE Cindy with Cinnamon and from the moment I installed the OS (few weeks ago) I cannot safely remove any external storage devices (harddrive and USB). If I do this my system freezes, and I cannot do anything, my mouse also stop working, and music is stuck in a loop from that point.
Can you access a tty at this point ? (CTRL + ALT + F1)

What are the filesystems of the drives causing the issue ? Did you try with another "source" of external drive ? Like borrowing a USB key from a coworker or something
LMDE 3 Cindy x64 on :
Lenovo Thinkpad T410, X220 Tablet, X61

hwalinga
Level 1
Level 1
Posts: 24
Joined: Wed Oct 11, 2017 6:52 pm

Re: Unmounting external storage freezes system

Post by hwalinga »

The problem comes from the kernel and is solved with a newer release. You can get the newer version from backports if you have the same issue.

I think this link is relevant:

https://www.spinics.net/lists/linux-usb/msg168868.html

Post Reply

Return to “Mounting Partitions”