LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-27-2016, 03:32 PM   #16
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067

A partition table can be recreated without corrupting filesystem contents if you know the start sectors and sizes.
 
Old 10-27-2016, 03:43 PM   #17
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by mrmazda View Post
A partition table can be recreated without corrupting filesystem contents if you know the start sectors and sizes.
You can't if you can't even connect the disk to the computer without freezing the system. When a disk is detected, the first thing the kernel does is examine the partition structure. For this case, the kernel goes into an infinite loop in the driver, and the only recourse is pressing the reset button or forcing a power-off. Even disconnecting the drive won't break the loop.
 
Old 10-27-2016, 07:04 PM   #18
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
I'm no expert on how kernels do what kernels do, but I have to believe the kernel(s) used by this OP have broken error handling, and some other kernel(s), older and/or newer, would avoid the freezing, allowing progress to be made. Assuming I only had one PC to try with, which is not the case, I'd boot a Knoppix CD, DVD or stick, and if that didn't work, I'd try a newer or older Knoppix. If no joy there, I'd find a live Linux that is not Debian-based and try again. Even systemrescuecd or something else of that ilk might be useful at least to clear the MBR sector.
 
Old 10-27-2016, 07:30 PM   #19
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
I can confirm that SystemRescueCD locks up instantly when it sees the drive. Windows 7 doesn't lock up, but won't let you access the drive with any tool, and also refuses to shut down (have to force power-off) with the drive connected. (It wouldn't allow me to disconnect the drive from the VM either, so I don't know what would happen if you pulled the plug on a physical drive.)

Of course all of this is based on your problem really being with an infinite loop in the logical partitions.
 
Old 10-27-2016, 08:49 PM   #20
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Quote:
Originally Posted by rknichols View Post
I can confirm that SystemRescueCD locks up instantly when it sees the drive.
How can you confirm what happens on OP's hardware? BilboBaggins is the OP.
Quote:
Windows 7 doesn't lock up, but won't let you access the drive with any tool
Which tools were tried? Any low level tool should be able to do something as long as logged in in maintenance mode or as admin. If it was me booted to Windows, I'd be trying with DFSee (which I have a license for), and if it wouldn't do anything useful, I'd be back to trying DFSee on DOS, Linux or OS/2, and if those wouldn't work either, I'd either write the HD off as unsalvageable, or if desperate for something on it, be sending it to OnTrack or some data recovery specialist like it.
 
Old 10-28-2016, 09:59 AM   #21
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by mrmazda View Post
How can you confirm what happens on OP's hardware? BilboBaggins is the OP.
The scenario I described is independent of hardware.

Contrary to my previous post, it also does not appear to be a kernel problem. Close examination of the code in the check_partition() function shows that there are indeed sanity counters that prevent that loop from running forever.

CentOS 6 has no problem at all with that disk. You do end up with a lot of ghost partitions, but you can access the disk just fine.

When that disk is connected to a CentOS 7 system, the CPU does loop for a long time, with several instances of the OOM (Out Of Memory) killer dumping udevd processes, but it does eventually recover and allow access to the disk.

SystemRescueCD 4.8.0 actually will eventually boot with that disk connected. It just takes 15 to 20 minutes to do so. If you boot without that disk and connect it later, the system takes only a few minutes to recover (faster if you don't have the GUI environment running).

It seems to be a problem with systemd-udevd in newer systems. Systems without systemd don't seem to suffer.
 
  


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
load Linux onto a hard drive on one computer then move the hard drive to another Ark9 Linux - Newbie 2 10-06-2008 06:56 PM
can I take a hard drive from one computer and implant it in another computer michaelbenton Linux - Hardware 5 09-26-2008 09:39 PM
Removed bad hard drive from computer, now flash drive won't mount. checkmate3001 Linux - Hardware 6 08-15-2008 12:03 AM
System temporarily freezes at hard drive write! squallce Linux - Software 3 09-27-2007 02:07 AM
My comp freezes while using two hard drive stickman200 Debian 4 11-12-2003 10:14 AM

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

All times are GMT -5. The time now is 03:28 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
Open Source Consulting | Domain Registration