LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 05-28-2018, 07:02 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Restoring the MBR in Arch.


Hi: any utility to restore the master boot record (boot sector in the linux jaergon)? Lilo could do it (lilo -M /dev/sdX mbr) but the target is an eMMC device and lilo can't write it. Perhaps grub can? "Restore" means to write, in logical sector 0 of the disk, the code expected to be there to load the MS-DOS OS. Nothing to do with the partition table. The code begins with a 0xEB90 jump to the code proper.
 
Old 05-28-2018, 08:04 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,377
Blog Entries: 28

Rep: Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163Reputation: 6163
It's not so much a utility, but there is a dd command that will accomplish that. It's been a long time, but I have used successfully.

By the way, a web search for linux restore MBR turns up a plethora of articles.
 
Old 05-29-2018, 03:50 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Hey, but dd won't operate in a vacuum! I must give some file. And where do I get the file? The answer if syslinux, as I have been told in another forum.
 
Old 05-30-2018, 03:20 PM   #4
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hey stf92,

Unless I'm misunderstanding your requirement (not impossible ...), I believe BootRepair (available as standalone live ISO) can restore the MBR. I've had success with both Windows and linux boots.
 
1 members found this post helpful.
Old 06-01-2018, 10:10 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
In fact all I need is a 512 bytes file containing (almost) any MBR! In this the era of information I think I should be able to find it on the internet. Only not many people will ever ask for such a thing and there it can be a little dificult to acquire.
 
Old 06-12-2018, 07:26 PM   #6
WFV
Member
 
Registered: Apr 2012
Location: somehow, somewhere
Distribution: Arch
Posts: 197

Rep: Reputation: Disabled
multsystem bootable usb used to have MBR repair tools, haven't used it in many years but always had success when I did.
 
  


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
[SOLVED] restoring Grub2 to MBR DonaldUK Linux - Laptop and Netbook 3 05-23-2013 11:25 PM
Restoring MBR :partitions are detected only after the reboot after MBR restoration? sharathksin Linux - Newbie 2 04-14-2006 07:48 AM
Restoring GRUB to MBR slidermsu Ubuntu 2 01-08-2006 08:09 PM
restoring winxp in the mbr? pcandpc Linux - Newbie 3 05-03-2005 11:31 PM
Restoring MBR aaronluke Linux - Software 2 09-27-2002 12:15 AM

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

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