Solved

ubuntu, corrupted MBR - How to restore system

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

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 76

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 87

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
First I will try to share a design of a Veeam Backup Infrastructure without Direct NFS Access backup. Note: Direct NFS Access backup transport mechanism is only available in Veeam v9 In above I try to design the Veeam Backup flow between i…
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…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now