grub 2

Tom H tomh0665 at gmail.com
Sun Aug 8 00:40:17 UTC 2010


On Sat, Aug 7, 2010 at 6:54 PM, Jordon Bedwell <jordon at envygeeks.com> wrote:
> On 08/07/2010 05:41 PM, Karl Larsen wrote:
>>
>> The SuperGrub cd-rom I have is the only thing smart enough to
>> fix Grub2. You get this from: www.supergrub.com/ and put it on a cd-rom
>
> LiveCD > Mount > Chroot > Reinstall Grub == Win
>
> sudo mkdir /repair
> sudo mount /dev/sda /repair
> sudo mount --bind /dev/ /repair/dev
> sudo chroot /repair
> sudo grub-install /dev/sda

I'm glad that someone understood what Karl was referring to; although
I don't understand the "== Win".

Also:

It should be
sudo mount /dev/sdaX /repair
not
sudo mount /dev/sda /repair
where sdaX is the root partition.

There needs to be a
sudo mount /dev/sdaY /repair/boot
if /boot is a separate mount.

There probably needs to be a
sudo mount -t proc proc /repair/proc
too.

I also like to have non-bind mounts for /dev/pts, /dev/shm, and /sys
when I chroot, but that's just me...

To Karl: There's no such thing as a "bash binary". You must of course
mean bash (shell) scrip. But I understand your frustration with the
"configurability" of grub2 because /etc/default/grub doesn't have
enough options. By the way, you don't necessarily need to edit
/etc/default/grub. You can run "sudo dpkg-reconfigure grub-pc" to
modify some of the settings in /etc/default/grub (like
GRUB_CMDLINE_LINUX_DEFAULT and GRUB_CMDLINE_LINUX).




More information about the ubuntu-users mailing list