Grub Problem - Cannot Load Linux
Hi
I have a dual boot system with XP and Fedora and I made some changes to my XP partition and now rather than receiving the usual grub menu list I am taken to a grub prompt -> grub> I have searched high and low for a solution to this and was able to come across some commands which have enabled me to log into Windows using the 'chainloader+1' command but I can no longer locate my Linux partition. I tried using the fedora cd to repair my system but it could not find Linux on my system. I tried using the 'find /boot/grub/stage1' command but it could not find anything. I also used a mepis Live cd and ran the command Fdisk -l with the output below Device Boot Start End Blocks Id System /dev/sda1 * 1 2294 18426519 7 HPFS/NTFS /dev/sda2 2295 8031 46082448 7 HPFS/NTFS /dev/sda3 8032 20779 102398309+ f W95 Ext'd (LBA) /dev/sda5 8032 20779 102398278 7 HPFS/NTFS My 3 windows partitions are fine on sda1,2 and 5 but there is no output for my Linux partition - Does this mean that my Linux install has gone forever or is there any way I can still rescue it? |
Quote:
Quote:
|
Quote:
So if I have now lost all of my Linux files, how do I get rid of grub - no point in prolonging the inevitable.... |
Code:
Yes I did, but the change was only made to my primary partition. If you had sensitive data on the linux partition it may still be possible to recover it, although you probably need some physical expert help. To unninstall grub, here's a manual: http://www.cyberciti.biz/faq/linux-h...ninstall-grub/ |
Quote:
|
Quote:
I know this may not help but it is easier the next time around. If you get it back up check out the different ways to create backups. Larry |
Hi
surely (can anyone please back me up on this) if you had the patience and the storage to do so, you could take an image of the entire disk. You'd need a live disc and another hard disk the same size or bigger than youre original. Doing this takes each byte and copies it to a new location. it uses the "dd" command. another poster may be able to help you here James |
Partition table...
You can try to restore your partitions with TestDisk. You might be advised to make a clone copy of your HDD with the command "dd" or with Clonezilla. This lets you try a restoration and fail without loosing data and gives you a chance to try again. Do not write anything to the HDD. http://www.cgsecurity.org/wiki/TestDisk http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step |
|
Quote:
|
OK I think I might be almost back in business but I am still having the grub problem - The TestDisk utility recovered my Linux partitions and I have written them to disk but grub is still not loading.
My output from Fdisk -l in the mepix live cd is now - Code:
Disk /dev/sda: 320.0 GB, 320072933376 bytes |
You probably need to reinstall grub.
You can do this by (if i remember correctly) sudo grub-install /dev/sda (or sdX where X is your drive letter) If this is wrong, can someone please let me know. Im almost sure there are more commands but i cant remember them James |
Quote:
I ran - chroot /mnt/sysimage to become root and then grub-install /dev/sda6 |
Congratulations on the recovery...
This is a GRUB rescue utility that you can use. http://www.supergrubdisk.org/ You can also use almost any linux live-cd, except fedora, to repair GRUB, including many rescue CDs. http://www.sysresccd.org/System-tools http://partedmagic.com/ |
Quote:
James |
All times are GMT -5. The time now is 06:54 PM. |