Wednesday, April 9, 2008

Brown Worm In My Cat's Eye

Windows - Repair the boot sector and MBR


Windows - Repair the boot sector and MBR


The tutorial on recovering GRUB
wrote that by accident we can prevent the loading of Windows when the computer starts. I actually typing

grub-install / dev/hda1

Where / dev/hda1 is the partition
with Windows, this is what happen.
We now have a corrupted bootsector ... What's next?
It turns out that the repair in this case, fortunately, is not too difficult. The only thing we have to do is find a tile installation with Windows and run with the computer. Then, after loading all the drivers and other garbage (D) to select the option
R or repair the system (generally enter into recovery mode.) Are moved to the console windows.
Now execute the following commands: fixmbr
fixboot c:
Then, if you've come here because of grub do again what was written in a tutorial on the recovery
grub after reinstalling windows
and everything will work as expected .

If you're a Windows user simply reboot the computer and enjoy operating system again.

Jaromir Świechowski



Breville Bb300 Breadmaker Manual

Odzykiwanie GRUB after reinstalling Windows



Odzykiwanie GRUB after reinstalling Windows




If we have two operating systems such as Debian and Windows XP (as in my case), we encounter a problem with an appropriate system after reinstallation of another (in fact it is only for reinstalling Windows, P).
I refer to overwrite the MBR

by Windows. If you use a boot manager like GRUB or LILO, for example, then you may find that after the reinstallation of Windows in general GRUB will not start.

So we have a problem - we must somehow recover the grub in the old way if we want to work on both systems.


start up from CD
First, we need to boot from the CD. This could be your installation disc operating system (Debian, Slackware, Gentoo, etc..) Or rescue disk. Rescue disk is the most minimal Linux system on a CD. I personally use is the second solution in the form of Timo's Rescue CD Set
. When you turn on your computer, go to
uiw BIOS settings, change the boot order to CDROM for example, C DISK, FLOPPY is possible to boot from the CD. However, in most current computers simply during startup press F8 and select the appropriate device from the list. Then, when you use the installation CD after booting up, hit all the required elements ALT + F2 (or CTRL + ALT + F2) to go to another console and get access to the shell. However, if
Timos Rescue CD Set
log in using the following data: user: root password: rescue
GRUB Recovery
Now we are only a few simple steps to do: First, display the partition table fdisk our device
-l
Now we are looking sign for a partition Linux installed, it may look like in two ways: SCSI eg / IDE dev/scsi/host0/bus0/target0/lun0/part1 eg / dev/hda4 . Once we identify the device, we need to mount them using the command mount

:
    mkdir / mnt / mojDysk mount / dev/hda4 / mnt / mojDysk
  • Now we use the chroot command
  • to launch an interactive shell with special parent directory, eg / mnt / mojDysk will be used as / chroot / mnt / mojDysk final step is to re-install GRUB: grub-install / dev / hda or grub-install / Dev / sda
  • Complete Exit from the shell, remove the disc from the CD-ROM drive and restart your computer. Now everything should work correctly.
  • Attention! Do not type in the command grub-install value style / dev/hda1 instead of / dev / hda ! Use only the device ID. Eg If you enter the partition ID with Windows (in my case / dev/hda1 ), you will need to recover the MBR for windows, and once again play with the GRUB recovery. Remember that IDs of disks, partitions, etc. to replace his own.
  • However, if by chance you manage to avoid running Windows to read the tutorial
bootsector'a and recovery in Windows MBR

Jaromir Świechowski