Solved

ubuntu, corrupted MBR - How to restore system

Posted on 2010-11-27
5
670 Views
Last Modified: 2012-05-10
HI,

I have the following:

 * An ubuntu netbook remix iso installed on a bootable usb
 * a hard disk with a corrupted MBR.

What I want to do:

* Is boot off the hard disk using the kernel on the usb stick so I can get important data off it
* is fix the MBR

Further Information:

* the bootable usb uses SYSLINUX
* I can modify install packages on the bootable usb to help with the task if required
0
Comment
Question by:geldfeld
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 78

Accepted Solution

by:
arnold earned 500 total points
ID: 34223316
http://ubuntuforums.org/showthread.php?t=24113
Deals with booting the system with a liveCD and then reseting the MBR on the hard drive.

If your install has grub-install/grub you should be able to use it as outlined in the earlier post to restore the MBR.
make sure to make sure to reference the correct partitions where /boot is setup.

Covers multiple application of MBR restore.
http://clonezilla-sysresccd.hellug.gr/supergrubdisk.html
0
 

Author Comment

by:geldfeld
ID: 34224846

The second post of that thread was helpful. I am not out of the woods yet, though.

I seem to have downloaded 2 corrupted ISOs. When I boot of the usb I am able to mount them it seems that it is the filesystem.squashfs that has been corrupted in both downloads.  I have spent the last few days trying to reconstruct a working filesystem.squashfs from the stock ubuntu-10.4-netbook-remix.iso/casper/filesystem.squashfs.

This is a shot in the dark but I get a parse error for me sudoers file when I boot of the usb drive. I get dumped into the console without an ability to sudo. I can't mount the corrupted drive or do anything else.

I only need to get as far as a root shell so that I can use grub to restore the MBR as described in one of the answers to my intial question.  I can edit the squashfile on a working linux system.

I can not download another iso. Internet goes through a satellite backbone and bills are in excess of two hundred dollars a month for 1 GB download limit. I'd appreciate pointers. Thx.
0
 
LVL 78

Expert Comment

by:arnold
ID: 34226420
get the http://www.damnsmalllinux.org/
a 50MB download.

You would then mount your HD partitions where grub-install and grub are.

The problem you may run into is if your UBUNTU install is 64 bit while the damnsmalllinux might be 32 bit and would likely not be able to run grub* commands if those are not included on the Damnsmalllinux distro.  
Do you have any other access to the net where you can download the ISO?  
0
 
LVL 88

Expert Comment

by:rindi
ID: 34978040
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Facing problems with you memory card? Cannot access your memory card? All stored data, images, videos are lost? If these are your questions...than this small article might help you out in retrieving your lost or inaccessible data.
Fine Tune your automatic Updates for Ubuntu / Debian
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question