View previous topic :: View next topic |
Author |
Message |
eclipsed n00b

Joined: 19 May 2002 Posts: 26
|
Posted: Mon May 27, 2002 8:52 am Post subject: grub weirdness |
|
|
I'm not sure if this is a grub issue or some other strangness but if I mount /dev/hda1 (where grub is installed) the directory tree seems to be endlessly dupilcated. For instance I cd'ed to /boot and saw that ls returned the same result as before. A quick pwd showed that I was indeed in the /boot/boot directory. I cd to boot about 30 more times and never saw the end of the tree. Is this some grub sprawl or some other issue. It doesn't seem to be causing any problems, but I'd like to know what the reason for it. TIA.
-Adam |
|
Back to top |
|
 |
Scandium Retired Dev

Joined: 22 Apr 2002 Posts: 340 Location: Germany
|
Posted: Mon May 27, 2002 8:59 am Post subject: |
|
|
Yes, that happens for everyone
Because in /boot there is a symlink which points to /boot again and again so you can access /boot/boot/boot as often as you like.
But don't ask me if that is grub-related or something - Before I started using Gentoo I always had used lilo, this endless thing came to my attention when I installed Gentoo but I don't know wether it's wanted nor if it can cause any problems (<-- don't think so that would be unrealistic) |
|
Back to top |
|
 |
tux-fan Tux's lil' helper


Joined: 10 Apr 2002 Posts: 131 Location: Paderborn, Germany
|
Posted: Mon May 27, 2002 11:58 am Post subject: |
|
|
I think grub can't see the mount-point /boot it only sees hd0,0 (dev/hda1 in your example). So for grub it is a (hd0,0)/boot/... but for your Linux it is /boot/boot/...
The symlink ln -s boot . keeps the things as easy as possible for you because U can edit the data directly under /boot, not /boot/boot. |
|
Back to top |
|
 |
fghellar Bodhisattva


Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
|
Back to top |
|
 |
Guest
|
Posted: Tue May 28, 2002 1:17 pm Post subject: It's a simple hack |
|
|
I think it's a simple hack so that when you boot the kernel it doesn't matter if your current directory where you are mounted is / or /boot, you can still reference /boot/bzImage and it will point to the same place.
Phillip. |
|
Back to top |
|
 |
craftyc Guru

Joined: 23 May 2002 Posts: 443 Location: Behind You.
|
Posted: Tue May 28, 2002 3:37 pm Post subject: Re: It's a simple hack |
|
|
Anonymous wrote: | I think it's a simple hack so that when you boot the kernel it doesn't matter if your current directory where you are mounted is / or /boot, you can still reference /boot/bzImage and it will point to the same place.
Phillip. |
I agree. One day I was feeling daring and deleted the symlink. Everything still worked. Mind you that could be because I do not have a seperate /boot partition. If I did, I would have edited the menu.lst file like so:
Code: | title=Gentoo Linux
root (hd0,4) (or whatever your boot partition is)
kernel /bzImage root=/dev/hda5 (or whatever your root partition is) hdc=ide-scsi
|
The top half of the file would remain the same. _________________ Postcount ++ |
|
Back to top |
|
 |
|