View previous topic :: View next topic |
Author |
Message |
chickenwing n00b
Joined: 31 Mar 2004 Posts: 21 Location: Fayette-Nam, NC
|
Posted: Thu Jun 24, 2004 3:41 pm Post subject: /boot/boot/boot/boot etc....? |
|
|
I was installing a system last night and hit a snag. I broke out my partitions (/,/boot, /home, ...) and mounted them accordingly under /mnt/gentoo. I looked at "mount" and I thought that everything looked right. I chrooted over and everything looked good.
Anyway, the install was going fine and I made it to the kernel compile. I chose the gentoo-devel package for the 2.6 kernel. Well, after "make modules-install" I looked into /boot to see if everything made it. All I saw was /boot/boot/boot/boot/boot/...... I tried to copy a file to /boot and the command didnt error but the file did not make it to the chrooted /boot or the outside /boot. What gives?
Can anyone toss me a bone and tell me where to look? _________________ Right you are, Ken. |
|
Back to top |
|
|
supreme_geek_overlord Apprentice
Joined: 13 Oct 2003 Posts: 217 Location: Floating around in my ego
|
Posted: Thu Jun 24, 2004 3:51 pm Post subject: |
|
|
This probably won't help anything but here's a little tidbit. The "boot" file in /boot is just a symlink back to boot, so when you go to /boot/boot/boot/... your really just staying in the same place. I suppose you already knew that but you asked for a bone, so at least you have some marrow... _________________ 9 out of 10 geeks prefer supreme_geek_overlord to Satan as the all-powerful dictator of the universe. |
|
Back to top |
|
|
suck_ma_penguin Apprentice
Joined: 03 May 2004 Posts: 180
|
Posted: Thu Jun 24, 2004 3:53 pm Post subject: |
|
|
If you followed the install guide verbatim then the /boot partition isn't automatically mounted. Kernel modules are kept in /lib/modules/kernel-version.
To install a kernel on the boot partition, assuming it is compiled, then do the following:
Code: | $ su
$ mount /boot
$ cp /usr/src/linux/arch/i385/boot/bzImage /boot/kernel-version |
You might also want to copy the file /usr/src/linux/.config, so that you have a working config if anything goes wrong. Then you need to edit the file /boot/grub/grub.conf to boot from kernel-version. All of this is in the handbook, just after the section on compiling kernels.
The reason for the recursive boot directory is that (for no reason I know) there is always a symlink to /boot in /boot. So it you cd to /boot/boot/boot/boot/boot you are in reality still in /boot |
|
Back to top |
|
|
deepdown n00b
Joined: 18 Feb 2004 Posts: 6 Location: Zurich
|
Posted: Thu Jun 24, 2004 4:05 pm Post subject: |
|
|
waht is the reason for this symlink inside /boot to itself? |
|
Back to top |
|
|
chickenwing n00b
Joined: 31 Mar 2004 Posts: 21 Location: Fayette-Nam, NC
|
Posted: Thu Jun 24, 2004 4:08 pm Post subject: |
|
|
When I set up the partitions, I mounted (by hand) ...
my root partition /dev/hda5 to /mnt/gentoo
my boot partition /dev/hda3 to /mnt/gentoo/boot
etc...
Whats really puzzling me is that I can copy files to "/boot" and they do not show up anywhere. _________________ Right you are, Ken. |
|
Back to top |
|
|
supreme_geek_overlord Apprentice
Joined: 13 Oct 2003 Posts: 217 Location: Floating around in my ego
|
Posted: Thu Jun 24, 2004 4:20 pm Post subject: |
|
|
deepdown wrote: | waht is the reason for this symlink inside /boot to itself? |
I would guess its some sort of compatability thing, but I'm not an expert...
chickenwing wrote: | When I set up the partitions, I mounted (by hand) ...
my root partition /dev/hda5 to /mnt/gentoo
my boot partition /dev/hda3 to /mnt/gentoo/boot
etc...
Whats really puzzling me is that I can copy files to "/boot" and they do not show up anywhere. |
Could you maybe post your /etc/mtab for us? Sometimes it looks right, but really isn't. _________________ 9 out of 10 geeks prefer supreme_geek_overlord to Satan as the all-powerful dictator of the universe. |
|
Back to top |
|
|
logon Apprentice
Joined: 22 May 2002 Posts: 182 Location: Bonn / NRW Germany
|
Posted: Thu Jun 24, 2004 4:27 pm Post subject: |
|
|
deepdown wrote: | waht is the reason for this symlink inside /boot to itself? |
I am not shure but i guess it is because of the bootmanager grub. When you write the grub.conf and you want to address your kernel on your boot partition lets say hd(0,0) then you could write:
hd(0,0)/bzImage and hd(0,0)/boot/bzImage.
So i guess it's just for the case that someone is not shure about this issue. This way both settings work. But i am not the developer... This is just what i thought when i saw the symlink the first time. |
|
Back to top |
|
|
neondonkey n00b
Joined: 24 Jun 2004 Posts: 1 Location: the land of gentoo
|
Posted: Thu Jun 24, 2004 9:21 pm Post subject: |
|
|
her's my solution, because i had the same problem.
cd /boot
rm boot
emerge grub
edit the grub.conf file accordingly if needed
install grub using the grub command
reboot and it should work... i had to boot with the livecd however and do things that way, but it still worked. i'm wondering what causes this.
good luck!! |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
|
Back to top |
|
|
|