Solved

ubuntu, corrupted MBR - How to restore system

Posted on 2010-11-27
5
668 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
  • 2
5 Comments
 
LVL 77

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 77

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Fine Tune your automatic Updates for Ubuntu / Debian
Employees depend heavily on their PCs, and new threats like ransomware make it even more critical to protect their important data.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

856 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