I messed up with up Grub....I can not log in Windows or Ubuntu need help badly
I recently installed ubuntu 7.10 on my computer windows with dual boot.Ubuntu was running fine i accidently deleted grub.lst something like that......now when i start my computer i get a promt with "grub>".
So how do i restore my computer..........i having windows on drive C and ubuntu on /dev/sda6 I am writing this from live Cd Any help greatly appreciated I backed up a file grub.lst_backup on my c drive it contains following stuff Quote:
|
So, you deleted grub's config file, but before that, you backed it up? Well, in that case put the backup in the original's place and you'll be fine. What am I missing?
|
Quote:
This is not a particularly uncommon newbie experience. You might be able to "reinstall" from your live disk, and skip all the steps except "Install Grub". You may be able to open a terminal from your livecd, and type "install grub". Worst possible scenario, you could use your Windows install disk to rewrite the MBR to the Windows default, then reinstall Ubuntu. The point here is that I'm not sure what the best procedure is in this case, but someone will be along shortly with a specific solution. Your responsibility, at this point, is not to panic. There are workarounds, and given a little experimentation, you'll be back in service, and will have learned something as well. It's a win-win situation. |
Well, he seems to have deleted menu.lst which as far as I know, resides in /boot and not on the MBR (part of stage 2, stage 1 seemed to work for him). I use lilo myself so correct me if I'm wrong.
|
I'm not a big fan of Debians grub ad-ons, but "update-grub" looks like it should generate a usable menu.lst. See the manpage - you may have to do some updates and re-run it.
|
Try this
|
Quote:
|
if u want to logon to any system for now
just enter a windows cd and goto recovery console by pressing R then logon to the system and enter command fixmbr you can logon to one system atleast. then try other options. as mentioned above |
This might help you
|
Quote:
I have booted windows with the help of this link http://linuxtuts.blogspot.com/2008/0...ub-screen.html |
Now i can boot windows but what about linux??
|
|
Use the ubuntu live cd
to boot into it if you know the root partition mount it as /mnt sudo mount /dev/root-partition /mnt then use sudo grub-install --root-directory=/mnt & reboot |
hey is the problem resolved
|
No!!
It was taking long so i logged into windows and back up my data to a usb and with a linux file reader i backed my linux data and installed a fresh copy of windows |
All times are GMT -5. The time now is 02:30 PM. |