Solved

ubuntu, corrupted MBR - How to restore system

Posted on 2010-11-27
5
669 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 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VMware Tools Install On Linux Problem 3 101
number in printf 13 42
How to recover unsaved document deleted from a recycle bin. 7 56
Looking for a program called HoneyMine. 3 63
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
In 2017, ransomware will become so virulent and widespread that if you aren’t a victim yourself, you will know someone who is.
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
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.

756 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