Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-06-2004, 09:56 PM   #1
LQ Newbie
Registered: Mar 2004
Distribution: slackware 9.1
Posts: 1

Rep: Reputation: 0
How can I fix an ungodly amount of broken symbolic links?

Hi, I attempted to install the 2.6 kernel on my machine I'm running slackware 9.1 with the 2.4.26 kernel installed prior to this (it's still there).

I (ha ha) thought things went smoothly, it turns out they did not. as i attempted to lsmod I received the following message:
Kernel requires old lsmod, but couldn't run lsmod.old: Too many levels of symbolic links

then the following as root to look for broken symbolic links:

( find / -type l | xargs file ) | grep 'broken symbolic link'

ooh.. I was slack-jawed at the results.. tons.

I've been poking around the web looking, reading and questioning for what i've done/not done to have made this happen, and how I can repair it. If someone could pass along some advice on this I would truly appreciate it.

Old 05-07-2004, 03:04 PM   #2
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Too many levels of symbolic links
This happens if you have a link pointing to itself, or some other arrangement of recursive links
For example try this as user, in your home directory (you need write access):

$ ln -s foo foo
$ ls foo
ls: foo: Too many levels of symbolic links
$ rm foo
So it looks like you probably have a link pointing to itself. Perhaps lsmod.old?

As for broken links, I tried that command on my system, and counted the number of broken symbolic links:

$ ( find / -type l | xargs file ) | grep 'broken symbolic link' | wc -l

So I guess it's normal and nothing to worry about!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cp and symbolic links? sausagejohnson Linux - General 3 07-19-2005 01:25 AM
How do I fix a broken Symbolic Link? dickgregory Linux - Newbie 4 11-07-2004 08:08 PM
help with symbolic links sopiaz57 Linux - General 2 06-11-2004 06:17 PM
Symbolic links bkmesenbrink Linux - Newbie 2 11-13-2002 11:54 AM
symbolic links NoahsMyBro Linux - Newbie 1 11-16-2001 11:13 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration