Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nested /boot directory after genkernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
epohs
n00b
n00b


Joined: 27 Aug 2004
Posts: 51

PostPosted: Tue Apr 05, 2005 2:13 am    Post subject: Nested /boot directory after genkernel Reply with quote

ok, so i just did a genkernel, trying to upgrade to linux-2.6.11-gentoo-r5.

rebooted the machine, and everything seemed to be ok, but now my /boot directory seems to be a never ending loop.

cd /boot

cd boot

cd boot

cd boot

Code:
boot # pwd
/boot/boot/boot/boot


Code:
boot # ls -l
total 0
lrwxrwxrwx  1 root root 1 Apr  6 18:08 boot -> .


:o

what did i do.. and more importantly, is there any way to fix it? :)

Thanks, in advance for your help.
Back to top
View user's profile Send private message
beavsux
n00b
n00b


Joined: 02 Apr 2005
Posts: 37

PostPosted: Tue Apr 05, 2005 2:17 am    Post subject: Reply with quote

From https://forums.gentoo.org/viewtopic-p-2223380-highlight-recursive+boot.html#2223380

Quote:
although it's not a disaster it's still anoying. if you have a symlink in /boot
Code:
# ls -l /boot
total 2588
lrwxr-xr-x 1 root root 1 Jul 7 2004 boot -> .

backing up /boot will result in a recursive backing up of boot. this is wasting space and time. the solution is easy, remove the symlink:

rm /boot/boot


Try that and see what happens
Back to top
View user's profile Send private message
epohs
n00b
n00b


Joined: 27 Aug 2004
Posts: 51

PostPosted: Tue Apr 05, 2005 2:27 am    Post subject: Reply with quote

Hmm.. now there's absolutely nothing in /boot.

Code:
boot # ls -l /boot
total 0


Am I screwed the next time I reboot?
Back to top
View user's profile Send private message
beavsux
n00b
n00b


Joined: 02 Apr 2005
Posts: 37

PostPosted: Tue Apr 05, 2005 2:58 am    Post subject: Re: Nested /boot directory after genkernel Reply with quote

epohs wrote:

Code:
boot # ls -l
total 0
lrwxrwxrwx  1 root root 1 Apr  6 18:08 boot -> .



Is that the full listing of /boot? If so, you're probably good. If it's broken after a reboot, just boot from a cd, mount the root (or boot) partition, and go into the boot directory. Then, run "ln -s . boot", and it will recreate the recursive symlink.

If you're not comfortable fixing it via that method, then you might as well put the symlink back now and verify that ls -l gives the same output as what you documented before.
Back to top
View user's profile Send private message
epohs
n00b
n00b


Joined: 27 Aug 2004
Posts: 51

PostPosted: Tue Apr 05, 2005 9:37 pm    Post subject: Reply with quote

Isn't there supposed to be quite a bit more in /boot than a recursive symlink?

Specifically, grub and grub.conf?


At least, there was before I rebooted after my most recent genkernel. Is that data lost now? Don't I need it?
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Tue Apr 05, 2005 10:03 pm    Post subject: Reply with quote

sounds like you forgot to

Code:
mount /boot

_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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