GRUB issue: /boot partition was deleted while installing XP
dear all,
Thanks for looking at this :D I always seem to have GRUB issues :o Anyway, I needed to install WinXP on my HP Dv9500t laptop, for some really annoying software which is only windows and I can't be bothered to wine it. So While installing I wrote over the /boot partition of the hard drive :( Now there is nothing in boot except for some things that I've made from other pc's. Any idea? Should I just reinstall everything? I don't really want to do that if I don't have to but I will if I must. If I do whats the easyist way to back things up? Make an iso with dd or a tar.gz? and can someone remind me of the commands ? Thanks, paul Code:
root@ubuntu:/# fdisk -l |
Your profile says that you use Ubuntu. I believe that Ubuntu has a system repair option in the live CD installer.
|
windows overwrites mbr. You just need to re-install Grub to the mbr of the first drive. If you can't boot from the hardrive use a Live CD, in a terminal type "grub" to get the grub prompt (grub>), then enter:
geometry (hd0) geometry (hd1) find /sbin/init find /boot/vmlinuz so you know where the files you need are and then do the following: root (hd0,1) setup (hd0) quit This assumes your Linux distro in on sda2, if it's on sdb1, change the root entry to (hd1,0). |
Sorry forgot to say that. Yes we're using Ubuntu Hardy and no I didn't see the repair option on the live disc. So I booted up the live disc and mounted the hard drives (2 sata HDD) as in my first post. Then I did
Code:
root@ubuntu:/boot# ls -lhR Hence when I do do Code:
root@ubuntu:/boot# grub |
So, you were booting out of a separate /boot partition? And it is now gone? (it is certainly not there...). Does that mean your kernel is missing too?
In this event, you will either need to recreate it and put the right stuff in it, or you need to put a /boot directory on your / partition. You should be able to get what you need off of a live CD that matches your distro. This is probably going to mess up your package manager though, but you can fix that. Just fire up the live CD, remount the partition (sda2, it looks like) that is your system parttion as writable, then copy /boot from the live CD onto it. Then, install grub. |
I copied over what the live CD had and this is what I got. I probably could mess around and get it all working but with the different kernel version I can't be bothered. My partitions are kind of nasty anyway so fresh install here we come :D
just FYI I did root@ubuntu:/# tar cvf /homeDIR_BK.tar /home/*******/ which worked quite nicely :D but it was too big for gzip otherwise I would do root@ubuntu:/# tar cvf - /home/********/ | gzip > /homeDIR_BK.tar.gz here is what the live CD gave and my different kerenl images so ....yea Code:
root@ubuntu:/# ls boot/ |
All times are GMT -5. The time now is 03:09 PM. |