FedoraThis forum is for the discussion of the Fedora Project.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I installed windows on a partition on my comp that i had previously deleted it from. my grub went away, and i tried the following to get it back:
1. boot fedora dvd
2. linux rescue
3. chroot /mnt/sysimage
4. grub-install /dev/hda
here's what happens: when i chroot, all of my dev files go away because the /dev that is under /mnt/sysimage is empty, so grub-install cant find hda. also, i tried:
ln -s /dev /dev/dev
but that didn't work. also, i tried not doing the chroot and just making symlinks from / into /mnt/sysimage whenever it told me it couldnt find something, but when i tried to do a symlink in /usr/share for the actual grub files, it told me i was in a read-only file system!
please help me get my linux system back, because i dont want to be stuck with the alternative again! help is much appreciated, because I am out of ideas..
OK, that's your Windows NTFS partition (partition type 7), and grub can't find it's files there, which is to be expected.
Which partition contains your Linux /boot directory (usually setup as a separate partition)? Lets say that it's on the same hard drive, in the second partition (remember that grub counts from 0). In that case, change the root command in the previous post to:
This tells grub that the /boot/grub files are on the first hard drive, second partition.
If the /boot partition is on the first partition of the second drive, then the root command would be:
The setup command tells grub which drive's MBR to modify. If your boot drive is actually the second drive, then specify: