View Single Post
06 Oct 2012  
Sir George

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by ben657 View Post
Hello, I recently tried to install debian linux via a live USB, which didn't go too well. Basically, my mbr and general boot sector got messed up completely.

So I used the live USB to re-write the mbr of Windows 7 using "TestDisk" on linux, which let the OS show up in my win 7 recovery disk.

The first time, it started repairing straight away, and asked me to reboot. I did so, and the second time, it went to the list of recovery options, of which I selected repair system (I think thats what it's called... the first one anyway) which did some more repairs, and asked me to reboot again. This time, the repair CD still booted, but said there were no problems and the OS should boot perfectly fine.

This is not the case, removed the cd and I still just get "mbr" on my boot screen. Any ideas what options I have from here?
I have limited experience with linux, so the following may or may not solve your problem;
  • Download a Live CD version of Ubuntu 11.10 (make sure that you download the amd64 Live CD if your system is 64 bit).
  • Boot into the Live CD, ask to try Ubuntu which opens a new terminal window.
  • Run the following commands:
    • sudo mount /dev/sda1 /mnt
    • sudo mount --bind /dev /mnt/dev
    • sudo mount --bind /proc /mnt/proc
    • sudo mount --bind /etc /mnt/etc
    • sudo mount --bind /sys /mnt/sys
      (some of these might be redundant but some programs may give out some errors if these weren't run)
    • sudo chroot /mnt
  • When in root, run:
    grub-install /dev/sda.
As I stated, I am not well versed in the use of linux, so ...
My System SpecsSystem Spec