IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Grub question
I had my winders partition on my laptop go tits up on my, so I had to reinstall it. Now, that, of course, wiped out the grubster. My windows partition is sda1, swap is sda2, root is sda5, /boot is sda6, with var, opt, and home partitions as well. The mtab in /etc is good, but what's the magic incantation when booted from a ubuntu live disc to get grub in and reading /boot/menu.lst etc correctly? I've installed grub (using grub-install --root-directory=/mnt) and now when it boots I get a grub prompt, but I have no idea how to make it continue on its merry way....
Expand Edited by jake123 Nov. 16, 2009, 02:01:37 PM EST
New Re: Grub question
You were missing the device, grub-install assume you only want in the partition you specify as the booting device.

Also just to make sure your mounts are like this:
/        = sda5

/boot = sda6


And you are mounting that like this, during grub-install
/mnt         = sda5

/mnt/boot = sda6


If that is the case...

This will install the boot loader into the mbr:

grub-install --root-directory=/mnt /dev/sda

You may need "--recheck" additionally...

Otherwise, I'm not sure.
New I got it fixed
It turned out that I needed to get the 9.04 ubuntu install image, not the 9.10... it's a known problem that this happens when you use the 9.10 install cd to put it on a system installed from an earlier version. I downloaded and burned the 9.04 install, and basically did the exact same thing and it came right up.

Seems kind of dumb... I actually used the 9.10 install cd because I'd done the dist-upgrade to 9.10 several weeks back, but it turns out that's a no-no.
New /me still uses Debian Sid.
Probably never will change.
     Grub question - (jake123) - (3)
         Re: Grub question - (folkert) - (2)
             I got it fixed - (jake123) - (1)
                 /me still uses Debian Sid. - (folkert)

I liked Dragon Ball Z better; it didn't try as hard to be idiotic.
50 ms