PC wont boot either Ubuntu or Windows 7

I installed Ubuntu alongside Windows 7. After I installed Ubuntu ran the first time. After I restarted I couldn't get it to boot.

I went on Windows and looked for a fix. I tried it in the terminal, not sure what it was, was like sudo (something something). The command that I used I believe moved something (can't remember).

I then restarted and it took me to the GNU GRUB. I can't reinstall Ubuntu because it won't find a device for boot-loader installation.

i think that i had ubuntu working fine when i did the sudo command and that i should have just waited longer for it to start up (could be wrong) if i can just boot windows i will be happy so if there is a way from the grub menu i will take that
found the command i used not sure if it could have done much harm ---- sudo e2fsck -n -v /dev/sdXY

2

2 Answers

If you only want to get into Windows with the Windows bootmgr, do this:

Way 1

  1. Put the installation disc in the CD drive and boot from it.
  2. When it shows Install dialog, go to the lower left corner and click Computer repair options.
  3. Then select Command Prompt and type bootsect /nt60 ALL /force, bootrec /fixboot and then bootrec /fixmbr.
  4. Reboot.

Way 2

  1. Put the installation disc in the CD drive and boot from it.
  2. After it has loaded and you see the first dialog, press [Shift]+[F12].
  3. Type bootsect /nt60 ALL /force, bootrec /fixboot and then bootrec /fixmbr.
  4. Reboot.

If nothing works

  1. Put the Ubuntu Live CD or a similar Linux disc in the CD drive and boot from it.
  2. Use a partitioning program like GParted to format (delete) your Ubuntu partition. You can also format your entire drive to start it all over with a fresh system.
18

e2fsck command is for checking an ext2, 3 or 4 filesystem. It shouldn't do any harm.

Once I wanted to restore Windows XP bootloader, but had trouble doing that with Windows installation CD. I've found something called Rescatux. It's a small Linux liveCD for repairing GRUB, MBR and similar things. It has a beta option to restore Windows bootloader. It worked for me, but may not work for you.

Alternatively you can try to install Ubuntu again (create ext4 partition on unallocated part of hard disk and install it there). If during Ubuntu's installation you are using the advanced partitioning method (not the one with one big slider) then make sure to set your main disk as device for bootloader installation. (Probably it's /dev/sda . Don't choose /dev/sda4 or something else ending with number, because it means "partition with this number". And it won't work.)

Also it would help, if you could run sudo fdisk -l and paste output here. It shows info about all disks and partitions.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like