Grub2 in my own distribution
I try to make my own distribution with grub2. So I want to install file system on hard drive and also install grub2 from my cd.
However, when I try to run grub-setup from my cd, sh tells me: Code:
/bin/sh: ./grub-setup: not found |
I'm guessing that you're running ./grub-setup from a script on the
cd during the installation process. Is that right? If so, put the commands "mount", "pwd", "echo $PATH" and "set | more" in that script temporarily. When you run it, you might be able to figure out why ./grub-setup is not found. |
Quote:
|
Okay, then run these commands after booting from the cd at the point
where you would run ./grub.conf and post the results. pwd ls |
its grub-install isnt it?
grub-install --root-directory=/media/disk /dev/sda |
Quote:
Code:
/sbin # pwd |
Okay, the files are there. Try running "ls -l" this time so
we can see if they are executable. |
Quote:
Code:
-r-xr-xr-x |
Okay, let's try one more thing. Instead of "./grub-setup" try
"/sbin/grub-setup". |
I try, but this didn't help. And tab-completion see this file. I think that problems are in libraries, required by this program.
|
One other thought, maybe it will work if you run the executable that
is on the cd, rather than the copy in /sbin. Or is there some reason that you don't want to do it that way? |
Quote:
|
Then it might be a problem with that cd. Try a different distribution
or a different version of the cd. Out of curiosity, which cd are you using? |
In first post I wrote that it is distribution, that I had been trying to create myself
|
Okay, now that we know more about your environment, we know several things
that are not causing the problem. You might want to describe how you're designing the cd and what sources you are using for the executables and libraries. |
All times are GMT -5. The time now is 12:56 AM. |