How do I repair the GRUB from Fedora 11?
I'm going to be installing Windoze (because 3D graphics are still not there in Linux), but that will of course override the MBR. So how do I rewrite it? I just tried starting from the Fedora 11 DVD until it got into the 1st graphical screen, and then I tried to mount *any* of my Fedora partitions - I think it's made 5 of them (God knows why!!), but anyway,none of them would mount except /boot - kept saying "wrong fs type or superblock" etc. My plan was of course, to chroot my current Fedora partition, and then run grub-install, but of course I can't if the partition itself doesn't mount.
What do I do? Thanks. |
You should be able to run grub-install from the DVD. The important question is, what's in those other partitions? fdisk is your friend (but it'll turn on you the moment you make a mistake). Try(as root, in a terminal window)
Code:
fdisk -l /dev/sda Quote:
|
Did you install Ubuntu to this computer?
|
Quote:
|
It would if you were in Ubuntu and mounted root partition of fedora.
Then do "os-prober" "updsate-grub" sudo if you have it setup |
|
What Os is installed?
|
Quote:
ubuntu@ubuntu:~$ sudo mount -t ext4 /dev/sda3 /mnt/ mount: wrong fs type, bad option, bad superblock on /dev/sda3, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so And how do I find out which one the root partition IS? This is what FEdora did to my hard drive: Device Boot Start End Blocks Id System /dev/sda1 1 12748 102398278+ 7 HPFS/NTFS /dev/sda2 12749 15358 20964825 5 Extended /dev/sda3 15359 17968 20964825 83 Linux /dev/sda4 17969 19457 11960392+ 83 Linux /dev/sda5 * 12749 12774 204800 83 Linux /dev/sda6 12774 15358 20759992+ 8e Linux LVM By the way, mounting /dev/sda5 works fine! (that's the one with the kernel in it and stuff). |
We are all guessing, do as the RockDoctor suggested and from terminal as root give us the results of fdisk -l (small L).
|
Quote:
Quote:
It's also noted there by "*". Now all you have to do is mount again and repair your grub, the FEDORA way. |
Quote:
sudo fdisk -l /dev/sda Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x13d713d6 Device Boot Start End Blocks Id System /dev/sda1 1 12748 102398278+ 7 HPFS/NTFS /dev/sda2 12749 15358 20964825 5 Extended /dev/sda3 15359 17968 20964825 83 Linux /dev/sda4 17969 19457 11960392+ 83 Linux /dev/sda5 * 12749 12774 204800 83 Linux /dev/sda6 12774 15358 20759992+ 8e Linux LVM |
I think fdisk -l only lists partitions.
Is Ubuntu presently installed on this system and working? |
Quote:
|
Your 4 primary partitions are taken you would have to make room inside of logical
http://www.justlinux.com/forum/showt...hreadid=143973 http://www.justlinux.com/forum/showthread.php?t=147959 |
Windows
Quote:
Quote:
Quote:
It looks like you prepartitioned for 3 or 4 os'es. |
All times are GMT -5. The time now is 07:11 PM. |