You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



System freeze on ejecting USB stick

Author (Read 5064 times)

0 Members and 1 Guest are viewing this topic.

Re: System freeze on ejecting USB stick
« Reply #10 on: December 14, 2018, 07:53:48 AM »
 

ian_r_h

  • Merchandise Supporter
  • Forum Regular
  • *****
  • 103
    Posts
  • Reputation: 10
  • Linux Lite Member
    • View Profile
I have run sensors on the affected laptop.

The typical temperature in idle-ish operation is about 46C, and in typically the most pushed it gets (here, when compressing to .tar.gz) is about 50C.  These look normal to me, based on Windows experience anyway.

I also booted the LL3.8 DVD and ran the memtest utility.  Assuming it is correct to do so without changing any parameters (and noting it gives the impression of testing only 32bit patterns), then it reported no errors.

I've now swapped the affected laptop over to backup, and updated my other laptop and moved that into operational use - something I do monthly.

This means, Christmas notwithstanding, I can safely test the USB on the affected laptop without risking live data.  It also means that I can see whether the same fault now develops on the in-cycle laptop now it too has been updated, which has near-identical or identical specs.
Don't worry about artificial intelligence.  Worry about natural stupidity.  :)
 

Re: System freeze on ejecting USB stick
« Reply #9 on: December 09, 2018, 04:17:06 AM »
 

ian_r_h

  • Merchandise Supporter
  • Forum Regular
  • *****
  • 103
    Posts
  • Reputation: 10
  • Linux Lite Member
    • View Profile
Thank you.  :)
Don't worry about artificial intelligence.  Worry about natural stupidity.  :)
 

Re: System freeze on ejecting USB stick
« Reply #8 on: December 08, 2018, 10:09:21 AM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
Quote
But I need a bit of help with some of this please.The Ubuntu keyboard shortcut to restart X is CTRL-ALT-BACKSPACE.  However, this is disabled by default in Ubuntu but re-enabled in Gnome in the keyboard settings:-
  • Is CTRL-ALT-BACKSPACE enabled or disabled in LL3.8?
  • There seems to be no setting I can find in the keyboard settings in LL/XFCE to enable the shortcut if it is disabled, in which case how can I enable or how do I assign a shortcut?
  • How could I try restarting X should I be able to open a virtual console?

So not 100% these are exactly what you're needing but may give aid till others arrive :) 

- If you're in terminal; the reboot command will initiate a system reboot..
- Using the command startx should initiate the gui from a tty session; Ctrl Alt F7 should as well, whereas Ctrl Alt F1-F6 are other tty's


Code: [Select]
reboot
startx
« Last Edit: December 08, 2018, 10:14:10 AM by firenice03 »
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: System freeze on ejecting USB stick
« Reply #7 on: December 08, 2018, 07:22:40 AM »
 

ian_r_h

  • Merchandise Supporter
  • Forum Regular
  • *****
  • 103
    Posts
  • Reputation: 10
  • Linux Lite Member
    • View Profile
Hi, all,

I seem to be hitting another Linux Learning Curve(!), and need to ask for a bit of help, please.

From what I've read it looks like I should try the following:-

  • Boot from live DVD and run the memory test, to verify that it is not a memory hardware issue,
  • Boot from live DVD anyway, and check again that it isn't a more general USB port/sticks issue,
  • If it freezes again when ejecting USB stick in Thunar, try restarting X (question on this below),
  • If it freezes again, can I open a virtual console (question on this below),
  • Can I CTRL-ALT-DEL from laptop internal keyboard and restart,
  • Try manually dismounting from terminal instead of Thunar and see if it still freezes (I'll close Thunar first).
  • Hold SHIFT(?) on boot at try an earlier kernel if available,
  • Try an earlier restore point.

But I need a bit of help with some of this please.

The Ubuntu keyboard shortcut to restart X is CTRL-ALT-BACKSPACE.  However, this is disabled by default in Ubuntu but re-enabled in Gnome in the keyboard settings:-

  • Is CTRL-ALT-BACKSPACE enabled or disabled in LL3.8?
  • There seems to be no setting I can find in the keyboard settings in LL/XFCE to enable the shortcut if it is disabled, in which case how can I enable or how do I assign a shortcut?
  • How could I try restarting X should I be able to open a virtual console?

It's butting up against my terminal command knowledge at that point.

Thanks,
Ian  :)
Don't worry about artificial intelligence.  Worry about natural stupidity.  :)
 

Re: System freeze on ejecting USB stick
« Reply #6 on: November 27, 2018, 05:25:10 AM »
 

ian_r_h

  • Merchandise Supporter
  • Forum Regular
  • *****
  • 103
    Posts
  • Reputation: 10
  • Linux Lite Member
    • View Profile
More info, that I cannot find any obvious errors in the syslog for the affected times - only thing mildly of note is that there are no log entries between the system freeze time and the hard restart time.  But that was only a couple of minutes.

Onwards...
Don't worry about artificial intelligence.  Worry about natural stupidity.  :)
 

Re: System freeze on ejecting USB stick
« Reply #5 on: November 24, 2018, 07:37:01 AM »
 

ian_r_h

  • Merchandise Supporter
  • Forum Regular
  • *****
  • 103
    Posts
  • Reputation: 10
  • Linux Lite Member
    • View Profile
This seems to be a problem that comes up from time to time in Linux, dating back at least a couple of years.  Which is not to say that the underlying cause is necessarily related.  But it does suggest a few things to try to begin with.  Since I have two production laptops I use in monthly rotation and the alternate is just over a month out of date, I can fail over to that if needs be.  So I will try the suggestions, one by one, on the problematic and up-to-date laptop:-

1.  Use a terminal and the umount /dev/sdxx command, where sdxx is the ID for the USB stick.  If it freezes, then it rules out Thunar and/or X as the culprit.
2.  Next, try dismounting the USB stick in Start/System/Partition Drives (I can't recall the app's name).  If it doesn't freeze then it may suggest Thunar, rather than X, is the culprit.

If at either point there is a system freeze, try opening a virtual console (CTRL-ALT-F1 ?).  Also, if X is suspected, try restarting X (CTRL-ALT-BACKSPACE ?).

3.  Also, but I would need expert help here, try LEFT-SHIFT during boot an selecting the previous kernel and see if it still freezes using Thunar as normal, and then try "kernel bisection search" - whatever that is!

Onwards...
Don't worry about artificial intelligence.  Worry about natural stupidity.  :)
 

Re: System freeze on ejecting USB stick
« Reply #4 on: November 19, 2018, 06:07:31 AM »
 

ian_r_h

  • Merchandise Supporter
  • Forum Regular
  • *****
  • 103
    Posts
  • Reputation: 10
  • Linux Lite Member
    • View Profile
Version is 3 point 8 - which the original post seems to have converted to  8) oddly.
Don't worry about artificial intelligence.  Worry about natural stupidity.  :)
 

Re: System freeze on ejecting USB stick
« Reply #3 on: November 19, 2018, 06:06:33 AM »
 

ian_r_h

  • Merchandise Supporter
  • Forum Regular
  • *****
  • 103
    Posts
  • Reputation: 10
  • Linux Lite Member
    • View Profile
Also, does not affect ejecting DVDs from Thunar in the same fashion, after burning files to DVD via Xfburn.
Don't worry about artificial intelligence.  Worry about natural stupidity.  :)
 

Re: System freeze on ejecting USB stick
« Reply #2 on: November 19, 2018, 06:05:36 AM »
 

ian_r_h

  • Merchandise Supporter
  • Forum Regular
  • *****
  • 103
    Posts
  • Reputation: 10
  • Linux Lite Member
    • View Profile
Should add that I am NOT running linux from the ejected USB stick(s)  :)

It is a standard build on HD, booted from HD - except that the HD is encrypted.  Laptop has performed flawlessly for over a year.
Don't worry about artificial intelligence.  Worry about natural stupidity.  :)
 

System freeze on ejecting USB stick
« Reply #1 on: November 19, 2018, 06:04:31 AM »
 

ian_r_h

  • Merchandise Supporter
  • Forum Regular
  • *****
  • 103
    Posts
  • Reputation: 10
  • Linux Lite Member
    • View Profile
Hi, all,

Just a heads up at the moment, and a bare bones description until I can spend a bit more time explaining the problem and researching it.  This is on a production laptop, so until I can update my test laptop you can understand my reluctance to test it again!  But I'll research online and go through the log files.

Basic description of problem:  (After a file copy operation in Thunar) Upon ejecting a USB stick using the left menu column eject icon in Thunar, the mouse cursor changes to busy and then system immediately goes into complete freeze requiring a hard reset.  After boot, the last file written to the hard drive manually (in this case a text file containing verification SHA256 values I calculated on the USB stick file copies) is 0 bytes in size.  Causes no known problems in the linux build on the laptop and does not corrupt the files on the USB stick.

Problem occurs immediately following update from 20181019 4.4.0-136-generic # 162 to OS below (both LL3.8).  However one USB stick had ejected fine after a copy FROM usb (i.e., without writing to the USB stick) - so the issue may be restricted to a specific make and size or to write to usb operations.

OS version:  (LL3.8) Linux linux01 4.4.0-140-generic #166-Ubuntu SMP Wed Nov 14 20:09:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Thunar version:  1.6.11
Unaffected USB stick (read from only):  KINGSTON DataTraveller G4 64GB (brand new).
Affected USB sticks (two separate ones after write to, but having performed flawlessly for over 30 cycles each):  KINGSTON DataTraveller G4 16GB.

Not tested ejecting USB stick from terminal or partition drives menu option.

Having booted the laptop after each freeze with the USB stick still physically connected and manually re-verifying the SHA256 values of the files on both the HD and USB (which were correct), the USB stick ejected without problem from Thunar - which suggests to me the issue is related to copying files from HD to USB via Thunar.

Haven't tried copying files from HD to USB stick from terminal.

Thanks for reading.
Don't worry about artificial intelligence.  Worry about natural stupidity.  :)
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section