LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-14-2018, 04:26 PM   #1
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,287
Blog Entries: 15

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
DE and Desktop Lock Up When Safely Removing External HDD Debian 9


I'm running Debian 9 on a custom built AMD 64-bit desktop. The last 3 times I've attempted to safely remove the 1 TB or the 2 TB external drives from the file mgr it locks up the desktop.

System is up-to-date.:-

Holding down Crtl + Alt + Del or Crtl + F1 or F2 gives me nothing and I have no choice but to do a hard shut down.

Dmesg is showing 10 plus more entries referring to UFW.

Code:
6.778039] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[    6.819761] wlp3s0: authenticate with 34:8a:ae:44:55:15
[    6.829838] wlp3s0: send auth to 34:8a:ae:44:55:15 (try 1/3)
[    6.844714] wlp3s0: authenticated
[    6.846698] wlp3s0: associate with 34:8a:ae:44:55:15 (try 1/3)
[    6.854134] wlp3s0: RX AssocResp from 34:8a:ae:44:55:15 (capab=0x411 status=0 aid=7)
[    6.854655] wlp3s0: associated
[    7.021511] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
[   17.141668] [UFW BLOCK] IN=wlp3s0 OUT= MAC=08:10:76:c5:4b:2c:34:8a:ae:44:55:14:08:00 SRC=172.217.11.131 DST=192.168.254.2 LEN=127 TOS=0x00 PREC=0x00 TTL=120 ID=29460 PROTO=TCP SPT=443 DPT=59008 WINDOW=252 RES=0x00 ACK PSH URGP=0
[   43.095372] [UFW BLOCK] IN=wlp3s0 OUT= MAC=08:10:76:c5:4b:2c:34:8a:ae:44:55:14:08:00 SRC=64.233.177.100 DST=192.168.254.2 LEN=115 TOS=0x00 PREC=0x00 TTL=120 ID=62256 PROTO=TCP SPT=443 DPT=37052 WINDOW=437 RES=0x00 ACK PSH URGP=0
[   47.681698] [UFW BLOCK] IN=wlp3s0 OUT= MAC=08:10:76:c5:4b:2c:34:8a:ae:44:55:14:08:00 SRC=64.233.177.100 DST=192.168.254.2 LEN=115 TOS=0x00 PREC=0x00 TTL=120 ID=64027 PROTO=TCP SPT=443 DPT=37052 WINDOW=437 RES=0x00 ACK PSH FIN URGP=0
Not sure what's going on here. Any suggestions or advice is welcome.
Thanks in advance:-
 
Old 12-14-2018, 06:57 PM   #2
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 952

Rep: Reputation: 239Reputation: 239Reputation: 239
The code you posted is in reference to network, not USB events.

I have had similar issues in the past with DE freezes when using default xorg graphics drivers, installing proprietary graphics drivers typically solved it.
 
Old 12-14-2018, 07:18 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,620

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
Don't use the file manager. Issue a umount, and wait for it to complete, and see if that solves the problem.
 
Old 12-14-2018, 08:40 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,287

Original Poster
Blog Entries: 15

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
Quote:
Originally Posted by syg00 View Post
Don't use the file manager. Issue a umount, and wait for it to complete, and see if that solves the problem.
Like so?

Code:
umount /dev/sdx
 
Old 12-14-2018, 08:52 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,287

Original Poster
Blog Entries: 15

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
Quote:
Originally Posted by Brains View Post
The code you posted is in reference to network, not USB events.

I have had similar issues in the past with DE freezes when using default xorg graphics drivers, installing proprietary graphics drivers typically solved it.
Thanks:-
Here's the whole log:

https://paste.ee/p/HzFP9
 
Old 12-14-2018, 10:26 PM   #6
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 1,192

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I saw this come up recently but I don't remember where, or the details. Best I can remember is don't use safely remove for HDs. Reserve its use for writable removable devices with 0-1 partitions. For anything with more than one partition, use a umount instance for each filesystem.

Last edited by mrmazda; 12-14-2018 at 10:29 PM.
 
Old 12-14-2018, 11:03 PM   #7
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 952

Rep: Reputation: 239Reputation: 239Reputation: 239
Quote:
Originally Posted by mrmazda View Post
I saw this come up recently but I don't remember where, or the details. Best I can remember is don't use safely remove for HDs. Reserve its use for writable removable devices with 0-1 partitions. For anything with more than one partition, use a umount instance for each filesystem.
This brings up something I thought of earlier during my post. Most newer external drives spin down after a while, to safely remove, the OS likely has to spin it up to ensure there are no pending writes. This spin up and check for pending actions may be the root cause.
 
Old 12-16-2018, 02:18 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,287

Original Poster
Blog Entries: 15

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
Running the umount cmd to remove a usb memory stick worked. The desktop didn't lock up this time.

Later on I'll try the external HDD's and post back.
 
Old 12-16-2018, 07:38 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,620

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
Just noticed this thread - worth a read.
 
Old 12-18-2018, 01:34 AM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,287

Original Poster
Blog Entries: 15

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
Quote:
Originally Posted by syg00 View Post
Just noticed this thread - worth a read.
Thanks:-
 
Old 01-22-2019, 07:32 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,287

Original Poster
Blog Entries: 15

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
I forgot about this thread. Sorry.

Since using the umount cmd and getting a new kernel I haven't had any more problems with the system locking up.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
deian yum lock [ ERR] Reading state information E: Could not get lock /var/lock/aptit jayakumar01 Linux - Server 1 12-05-2011 11:26 AM
[SOLVED] Ubuntu 10.04 Desktop: safely removing ext hdd gustav521 Ubuntu 7 04-13-2011 05:12 PM
[SOLVED] Removing Grub from internal HDD and installing it only on external hdd M3GA8U5H Linux - Newbie 5 08-07-2009 01:47 AM
can you apply 2.6.x kernel config to 2.4.x safely/somewhat safely? silex_88 Linux - Software 3 12-09-2005 11:38 PM
Safely removing ext hdd nanoprobe Linux - Hardware 1 07-24-2005 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration