LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2020, 07:59 PM   #1
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 967

Rep: Reputation: 53
How does data recovery work?


If the MBR is corrupted what is the process of reorganizing data on a hard drive so a application can load it? As this is a vague question I thank you for any links provided to as a more direct question.
 
Old 02-04-2020, 09:16 PM   #2
vtel57
Senior Member
 
Registered: Jul 2006
Location: VPN Tunnel, USA
Distribution: Slackware64 14.2
Posts: 1,357

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
If the MBR in question is on a bootable drive where a Linux OS is installed, you can boot with any rescue disk and reinstall the GRUB or LILO bootloader via chroot.

Here's one fellow's method:

http://www.aboutlinux.info/2005/11/h...-and-boot.html

Also, check this out: Mageia Reinstalling GRUB from live dvd

Luck.

Last edited by vtel57; 02-04-2020 at 09:21 PM.
 
1 members found this post helpful.
Old 02-04-2020, 09:18 PM   #3
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 4,277

Rep: Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216Reputation: 1216
The MBR contains two things: A short assembly program to bootstrap the boot loader, and a partition table, which contains the starting addresses and sizes of partitions on that disk.

If the MBR is corrupted, the partition table may still be in a usable state, so that all or some partitions can be accessed. You won't be able to boot from that disk.

You could re-create the boot program by reinstalling the boot loader, e.g. grub-install.

If the partition table is broken, you may have a backup of the MBR. Write it back and you can access your partitions again.

If you don't have a backup, you may still guess where the partitions are. There are programs that look for certain strings, like filesystem superblocks, physical volume headers etc, and recreate a partition table that is likely to bring back some of the partitions. Personally I don't know them and would have to search for them.
Gparted is able to handle problems like overlapping partitions.

Last edited by berndbausch; 02-04-2020 at 09:19 PM.
 
1 members found this post helpful.
Old 02-04-2020, 10:02 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,385

Rep: Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011
The usual tool for recvering a lost partition table is testdisk. It scans for recognizable structures such as file system super blocks, LVM headers, LUKS headers, etc., and makes some intelligent guesses about where the partitions might have been. It can get confused if a disk has been repartitioned several times and thus has leftover headers lying around, but by choosing among the possibilities it presents, you can usually recover the correct partitioning.
 
2 members found this post helpful.
Old 02-05-2020, 01:12 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,565

Rep: Reputation: 3109Reputation: 3109Reputation: 3109Reputation: 3109Reputation: 3109Reputation: 3109Reputation: 3109Reputation: 3109Reputation: 3109Reputation: 3109Reputation: 3109
Quote:
Originally Posted by berndbausch View Post
Gparted is able to handle problems like overlapping partitions.
Nope. Those links use sfdisk to ham-fistedly change the partition allocations. With no consideration for first resizing any filesystem contained there-in. Could (would) lead to some pretty ugly situations. Gparted is only used to see if the changes actually resulted in consistent partitions.
 
  


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
LXer: 5 Best Linux Distributions To Recover Dead Computers Data (Linux Data Recovery) LXer Syndicated Linux News 1 08-05-2016 11:10 PM
LXer: 5 Best Data Recovery Tools For Linux To Recover Data Or Deleted Partitions LXer Syndicated Linux News 0 04-18-2015 02:32 PM
Linux rescue disk for data recovery of data on windows laptop with corrupt os Jonjo-k Linux - Newbie 10 01-04-2014 06:00 PM
[SOLVED] Combining anti-virus + data recovery + image recovery? littlebigman Linux - Software 8 08-12-2010 02:39 AM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:11 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