Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/boot/boot/boot/boot etc....?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
chickenwing
n00b
n00b


Joined: 31 Mar 2004
Posts: 21
Location: Fayette-Nam, NC

PostPosted: Thu Jun 24, 2004 3:41 pm    Post subject: /boot/boot/boot/boot etc....? Reply with quote

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
View user's profile Send private message
supreme_geek_overlord
Apprentice
Apprentice


Joined: 13 Oct 2003
Posts: 217
Location: Floating around in my ego

PostPosted: Thu Jun 24, 2004 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
suck_ma_penguin
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 180

PostPosted: Thu Jun 24, 2004 3:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
deepdown
n00b
n00b


Joined: 18 Feb 2004
Posts: 6
Location: Zurich

PostPosted: Thu Jun 24, 2004 4:05 pm    Post subject: Reply with quote

waht is the reason for this symlink inside /boot to itself?
Back to top
View user's profile Send private message
chickenwing
n00b
n00b


Joined: 31 Mar 2004
Posts: 21
Location: Fayette-Nam, NC

PostPosted: Thu Jun 24, 2004 4:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
supreme_geek_overlord
Apprentice
Apprentice


Joined: 13 Oct 2003
Posts: 217
Location: Floating around in my ego

PostPosted: Thu Jun 24, 2004 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
logon
Apprentice
Apprentice


Joined: 22 May 2002
Posts: 182
Location: Bonn / NRW Germany

PostPosted: Thu Jun 24, 2004 4:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
neondonkey
n00b
n00b


Joined: 24 Jun 2004
Posts: 1
Location: the land of gentoo

PostPosted: Thu Jun 24, 2004 9:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Mon Oct 18, 2004 5:41 pm    Post subject: Reply with quote

Moved from Installing Gentoo, please see this topic:

https://forums.gentoo.org/viewtopic.php?t=72717
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum