[NTLUG:Discuss] 'Which' command for GRUB
Stuart Johnston
saj at thecommune.net
Thu Feb 11 16:19:36 CST 2010
On 02/11/2010 04:05 PM, David Simmons wrote:
> Guys,
>
> Just a quick question (because I fully believe there's always many
> ways to get to the same answer within Un*x / Linux).....does anyone
> know of a 'which' command for Grub?
>
> Here's the situation. I have four hard-drives in my main
> workstation....when a new version of OS came out - I'd get a new drive
> - install onto that new/empty drive...and use older drive(s) as
> storage/data.
>
> I'd like to make changes to my Grub / Menu.lst file....but on my main
> / drive - there isn't a /boot/grub/menu.lst file!? I can do the
> digging (but don't normally mount the other /boot partitions)....but
> it got me thinking - 'Is there a which command that will tell you
> where you're grub files are for your currently booted session?'
I don't have an answer to your actual question but Grub 2 uses an
entirely new configuration system. The file is /boot/grub/grub.cfg
which is typically generated based on files under /etc - depending on
your distro.
More information about the Discuss
mailing list