LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-05-2017, 07:07 AM   #1
Crb999
Member
 
Registered: Jan 2017
Location: West Coast Scotland
Distribution: Suse Linux 42.2 Now 15.1
Posts: 319

Rep: Reputation: Disabled
Hard disk failure what logs should I try to recover?


Hi,

I have running Suse Linux leap 42.2 without major problems.

The machine is a Dell 780 optiplex 8Gb ram 1Tb HD and is dedicated to Linux.

I have now got a catastrophic failure.

After some discussion elsewhere on this forum, it is not clear whether it is actually a hardware or a software problem.

Briefly, after some days away from the machine, I found a message "Screen lock is broken"

There was some advice as to what to do next, which I followed, all to no avail.

I can boot into a terminal and would like to rescue any logs you recommend to better understand what has happened.

I have looked at the disk and the partitions are there but I don't know exactly where to look, or exactly what to look for.

A disk examination shows it has either failed or is on the point of failing. The "D bus" Warning that came with the "screen lock broken" declaration has been suggested as a software problem.

So, as a Newby, I'm finding it confusing.

I'm planning to fit 2 new disks in raid 1 and reinstall 42.2. I'll put the suspected faulty drive as a stand alone and recover whatever I can.

Any advice and specific information regarding useful logs will be gratefully received.
 
Old 05-05-2017, 07:41 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Run smartmontools.

This program reads the health status of discs.
 
Old 05-05-2017, 10:19 AM   #3
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Boot with any linux live CD/USB and try to mount partitions from the internal drive.
If you can do it you probably can save your important data.
And check partitions for free space, if free space exhausted (or less then 5% of free) it may cause a strange problems like yours.
 
Old 05-05-2017, 02:12 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
This could be much less problem than you think, nothing to do with any hardware. Running logged into any of vtty[1-6] as root, open mc, a text mode swiss army knife file manager. If mc is not installed, install it: 'zypper in mc'. Ordinary commands can be run from within mc, with or without normal mc output on the screen. Use Ctrl-o to toggle between those modes. Persistent logs are found in /var/log/.

I've seen the subject of broken screen locking in 42.2 on the opensuse mailing list recently. This might be curable by simply updating and rebooting. To update from cmdline, simply do 'zypper ref; zypper up' logged in as root. OTOH, it seems there may be a matching open openSUSE bug.

Something else to try is a fallback window manager. If your current problem is related to XFCE, Mate, Gnome or KDE, stopping the display manager and using 'startx /usr/bin/icewm' or 'WINDOWMANAGER=icewm startx' could be instructive. If this fails as ordinary user, you could try startx logged in as root, or logged in as root execute 'chmod 4711 /usr/bin/Xorg' and try again as ordinary user.

To stop the display manager, as root, do 'systemctl stop display-manager', or reboot appending a 3 to the Grub cmdline using the e key when the Grub menu appears.

Last edited by mrmazda; 05-05-2017 at 05:43 PM. Reason: opensuse mailing list thread uri added
 
Old 05-05-2017, 04:33 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,139

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Quote:
Originally Posted by Crb999 View Post
So, as a Newby, I'm finding it confusing.
Perhaps (fewer) small steps first.
I would second the use of smartctl first to attempt to ascertain where the problem might lie.


Oops - I see you've already ascertained the disk is the problem. Don't worry about logs, just get your data backed up. Then maybe try to figure out what packages you added so you can re-install them.

Last edited by syg00; 05-05-2017 at 04:45 PM. Reason: oops
 
Old 05-08-2017, 07:51 AM   #6
Crb999
Member
 
Registered: Jan 2017
Location: West Coast Scotland
Distribution: Suse Linux 42.2 Now 15.1
Posts: 319

Original Poster
Rep: Reputation: Disabled
Hi Guys and Gals,

There was no important data on the disc. Apart from installing various apps, it was all exploratory.

I have fitted a new disk. I am using RAID 1 and have installed 42.2.

I now am confronted with various problems.

Using YaST, I selected wicked over NetworkManager however my Wlan does not start. 'Ifup wlan0' declare it is up, but it isn't. I cannot ping my BT Hub.

In yast>networks settings for Wlan, the network setup method is 'wicked', the DHCP Client identifier is blank.
The host name to send is linux-dxa1.
Change default route via DHCP is not ticked.
Ipv6 is not enabled.
On the Hostname page:

The host name is linux-dxa1

Domain name is empty

Assign host name to loop back is selected.

There are no named servers.

In Routing:

The default Ipv4 gateway is the Wlan0 ip address

Ipv4 forwarding is enabled.

I cannot move forward from here until I Sudo NetworkManager

Wlan then starts and I can ping my BT hub and my windows machine but I cannot connect to the Internet.

I am able to log on to the BT Hub and check that the Linux box is there, which it is, and connected, which it is.

My firewall is disabled

What am I missing?
 
Old 05-13-2017, 12:06 AM   #7
Crb999
Member
 
Registered: Jan 2017
Location: West Coast Scotland
Distribution: Suse Linux 42.2 Now 15.1
Posts: 319

Original Poster
Rep: Reputation: Disabled
Well thank you for giving me those fine tips.

I've changed back from wicked and now the Wlan starts automatically.

Thrashing about is a sort of way to learn, but not the best.

There are suggestions that this site is to change its name from linuxquestions to Linuxstoneysilence

:-)
 
Old 05-14-2017, 03:02 AM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
You probably should have started a new thread for the second question, that's all.
 
Old 05-14-2017, 03:37 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Crb999 View Post
There are suggestions that this site is to change its name from linuxquestions to Linuxstoneysilence
you just mention systemd and see how quickly that changes!

but seriously, this is your second thread for what i consider to be the same problem:
"After some discussion elsewhere on this forum"
i think you should take at least partial responsibility for that stony silence.
and learn more about general troubleshooting and how to help others to help you:
https://wiki.archlinux.org/index.php...roubleshooting
http://catb.org/~esr/faqs/smart-questions.html
 
  


Reply



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
how do I check my hard disk for errors. possible hard disk failure lgtrean Linux - Hardware 6 06-22-2011 04:06 PM
How to recover a raid1 over nbd after failure of local disk? adrian_stephens Linux - Server 1 05-22-2009 12:16 PM
Hard Disk Failure: How do I move data to a new hard disk drive? spyros Linux - Software 2 10-31-2008 03:01 PM
Please help me recover from Hard Drive failure... ArthurDent Linux - Newbie 5 03-24-2007 06:29 PM
Raid 5 XFS FC2 recover disk failure mattma Linux - Hardware 1 11-11-2006 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:58 AM.

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
Open Source Consulting | Domain Registration