Help with GRUB for a noobie. . .

Savior1

n00b
Joined
Mar 12, 2006
Messages
25
I have been running Ubuntu 6.06 for a bit now and everything was going fine. I ran it in its partition separate from an old NTFS piece that remained there for potential Window's issues. So it goes, I needed to install Windows today, and after putting in a Windows Pro install, I don't get the GRUB loader that I used to. Is there a way to just install GRUB and get back to dual booting? It was there when I had an older version of XP Home that had the activation expired, so it recognized it, and booted into it (it just didn't work). And in the Live Ubuntu CD I can see and access the partition through the Disk Manager, so it's still there and workable, it's just that GRUB got over written, or something. I'm pretty bad with all of this stuff.
Well I'm running on, but is there a way I can just put GRUB back without too much effort and get my PC back to the way it was? Thanks all!
 
Windows always trashes the master boot record and replaces it with it's own stuff, it doesnt play well with others.

You will have to boot up with a live cd and install grub to the MBR yourself, by hand. There should be plenty of guides available on the ubuntu forums for doing this.
 
Here is what you'll need to do... Listen up, becouse it is easy to do, but hard to understand.

1: get a livecd distro, I believe ubuntu install disk will work
2: boot the livecd distro
3: open a terminal
4: at the terminal prompt "grub" ("sudo grub" in ubuntu)
5: at the grub prompt "root (hd0,0) or whatever you boot partition is
6: at the grub prompt "setup (hd0)" or whatever the drive is you want to boot.
7: at the grub prompt "quit"
8: at the terminal prompt "reboot"
9: take the disc out the drive
10: watch grub load.
 
Umm, I'm not sure which is my boot partition. If I hit up "df" in the terminal I get:
Filesystem 1K-blocks Used Available Use% Mounted on
unionfs 1154784 687668 467116 60% /
varrun 517792 84 517708 1% /var/run
varlock 517792 4 517788 1% /var/lock
udev 517792 140 517652 1% /dev
devshm 517792 0 517792 0% /dev/shm
lrm 517792 9000 508792 2% /lib/modules/2.6.15-23-386/volatile
tmpfs 517792 16 517776 1% /tmp
/dev/sda1 4055272 338252 3717020 9% /media/XPORTER
/dev/hda1 36861108 8308324 28552784 23% /tmp/disks-conf-hda1
/dev/hda3 1154784 687668 467116 60% /
none of which seems to bring up the /boot mount point. Maybe that's the problem? As a side note, where the hell did all of these partitions come from, there used to be just 3, an NTFS one, and a Linux one with its swap partition. This is what I get though when I try it through the live disk, and the "Xporter" is a patriot USB thumb drive, but the rest I can't quite account for. So, are there more tricks and tips anyone can share with me? I'm still sans Linux.
 
Savior1 said:
Umm, I'm not sure which is my boot partition. If I hit up "df" in the terminal I get:
Filesystem 1K-blocks Used Available Use% Mounted on
unionfs 1154784 687668 467116 60% /
varrun 517792 84 517708 1% /var/run
varlock 517792 4 517788 1% /var/lock
udev 517792 140 517652 1% /dev
devshm 517792 0 517792 0% /dev/shm
lrm 517792 9000 508792 2% /lib/modules/2.6.15-23-386/volatile
tmpfs 517792 16 517776 1% /tmp
/dev/sda1 4055272 338252 3717020 9% /media/XPORTER
/dev/hda1 36861108 8308324 28552784 23% /tmp/disks-conf-hda1
/dev/hda3 1154784 687668 467116 60% /
none of which seems to bring up the /boot mount point. Maybe that's the problem? As a side note, where the hell did all of these partitions come from, there used to be just 3, an NTFS one, and a Linux one with its swap partition. This is what I get though when I try it through the live disk, and the "Xporter" is a patriot USB thumb drive, but the rest I can't quite account for. So, are there more tricks and tips anyone can share with me? I'm still sans Linux.

ok calm down...

1) the reason you are seeing alot more mount points is because how a LiveCD operates
in fact I am suppriees you say you use to have 3 before modern linux distro's have a few "virual mounts" to make things work better

but thats neither here not there

you have booted off a LiveCD and from the output of "mount" I would have at a guess that your /<ROOT> partition is either /dev/hda1 or /dev/hda3

have a browse around those two mount points (/tmp/disks-conf-hda1 etc) and see if it looks like yr root partition

then use that /dev node for the grub install
 
It's actually very simple if you install grub on the MBR. You can boot from most linux live cds and just run "grub-install /dev/sda" (assuming the correct disk is sda). You could also do this through the grub prompt, but I find using a single command much easier.
 
Back
Top