Re: Wheezy USB Harddrive install grub2 issues
On Fri, May 11, 2012 at 07:19:32PM +0800, Bob wrote:
> 8< snip
>
> >Probably want to skip that "--root-directory" option, unless you're
> >trying to avoid the mbr for some valid reason...
>
> I've tried it with and without.
>
> >Might want to stick with genuine Debian documentation, too, unless
> >you're actually running Ubuntu...
>
> I've had trouble finding much Grub2 documentation.
> http://wiki.debian.org/Grub2
> is a bit sparse & the GRUB site recommends the Ubuntu documentation
> http://www.gnu.org/software/grub/grub-documentation.html
> info grub does produce more & I'm trying to find the relevant bit at
> the moment.
>
I see...
Still, using that "--root-directory=/" option will not install grub
to your mbr, which is where you want it, and is only useful if you have
another boot loader in the mbr with an option to point to your root directory's
grub installation. Apparently you don't have such a setup.
So do this instead:
First, determine for sure what the designation of your drive really is
-- could be sda, sdb, hda, etc -- you can use parted to check this if
you're able to boot into debian, or use a live cd (the debian installer,
systemrescuecd, etc).
Then do:
# grub-install /dev/whatever_disk_you_have_debian_installed_on
#update-grub
Should work, assuming you haven't done anything to the files in /etc
/grub.d, and your initrd.img is proper...
--
❤ ♫ ❤ ♫ ❤ ♫ ❤
Indulekha
Reply to: