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

Joined: 27 Aug 2004 Posts: 51
|
Posted: Tue Apr 05, 2005 2:13 am Post subject: Nested /boot directory after genkernel |
|
|
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 -> . |
what did i do.. and more importantly, is there any way to fix it?
Thanks, in advance for your help. |
|
Back to top |
|
 |
beavsux n00b


Joined: 02 Apr 2005 Posts: 37
|
Posted: Tue Apr 05, 2005 2:17 am Post subject: |
|
|
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 |
|
 |
epohs n00b

Joined: 27 Aug 2004 Posts: 51
|
Posted: Tue Apr 05, 2005 2:27 am Post subject: |
|
|
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 |
|
 |
beavsux n00b


Joined: 02 Apr 2005 Posts: 37
|
Posted: Tue Apr 05, 2005 2:58 am Post subject: Re: Nested /boot directory after genkernel |
|
|
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 |
|
 |
epohs n00b

Joined: 27 Aug 2004 Posts: 51
|
Posted: Tue Apr 05, 2005 9:37 pm Post subject: |
|
|
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 |
|
 |
dsd Developer

Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
|
Back to top |
|
 |
|