LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-08-2006, 04:37 PM   #1
ayteebee
Member
 
Registered: Jul 2005
Location: Derbyshire
Distribution: Originally Suse 9.1 Professional, currently Knoppix 3.7, migrating to Slackware
Posts: 75

Rep: Reputation: 16
Question What's the purpose of links in a filesystem that go nowhere?


I noticed a link in my /boot directory that doesn't seem to go anywhere:

Code:
andy@op3n:~> ls -l /boot
total 6025
-rw-r--r--  1 root root     512 2004-10-01 21:47 backup_mbr
lrwxrwxrwx  1 root root       1 2004-10-01 21:32 boot -> .
-rw-r--r--  1 root root   55495 2005-12-01 18:54 config-2.6.5-7.202.7-smp
drwxr-xr-x  2 root root     480 2004-10-30 12:59 grub
lrwxrwxrwx  1 root root      24 2005-12-26 12:41 initrd -> initrd-2.6.5-7.202.7-smp
-rw-r--r--  1 root root 1375746 2005-12-26 12:41 initrd-2.6.5-7.202.7-smp
-rw-r--r--  1 root root  125492 2005-12-01 18:54 Kerntypes-2.6.5-7.202.7-smp
-rw-r--r--  1 root root   84480 2004-07-20 18:46 message
-rw-r--r--  1 root root   81991 2005-12-01 18:55 symvers-2.6.5-7.202.7-i386-smp.gz
-rw-r--r--  1 root root  790599 2005-12-01 18:47 System.map-2.6.5-7.202.7-smp
-rw-r--r--  1 root root 1959006 2005-12-01 18:54 vmlinux-2.6.5-7.202.7-smp.gz
lrwxrwxrwx  1 root root      25 2005-12-26 12:41 vmlinuz -> vmlinuz-2.6.5-7.202.7-smp
-rw-r--r--  1 root root 1670179 2005-12-01 18:47 vmlinuz-2.6.5-7.202.7-smp
andy@op3n:~> cd /boot
andy@op3n:/boot> cd boot
andy@op3n:/boot/boot> cd boot
andy@op3n:/boot/boot/boot> cd boot
andy@op3n:/boot/boot/boot/boot> cd boot
andy@op3n:/boot/boot/boot/boot/boot> cd boot
I mean, WTF's this all about?

Why is there a link that doesn't go anywhere? Can I delete it? Not that I need to, but you know...
 
Old 09-08-2006, 06:12 PM   #2
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
Apparently it isn't the dumbest thing I've ever seen. I'd delete it but you might want to wait for answers from Suse gurus. Something somewhere might actually make use of it.

Last edited by vls; 09-09-2006 at 01:43 AM.
 
Old 09-08-2006, 06:15 PM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I wouldn't be too quick to remove it!
Seems to be a Suse thingy as I see it in my 10.1 version.
Also noticed it is near time to backup_mbr in my box too.
 
Old 09-08-2006, 06:19 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
There is a perfectly good reason for those symlinks, but I can't remember what it is.
 
Old 09-08-2006, 06:30 PM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
That reminds me of the question...

How do you keep a blonde in suspense?
 
Old 09-08-2006, 07:29 PM   #6
hpladd
Member
 
Registered: Feb 2003
Distribution: Kubuntu
Posts: 142

Rep: Reputation: 15
Anybody else ever get a "Symbolic link to nowhere" error message? Now that's mystical.
 
Old 09-08-2006, 07:54 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
The OP didn't say anything about an error message ....
Quote:
I noticed a link in my /boot directory that doesn't seem to go anywhere:
and as I mentioned, seems to be related to the backup_mbr which is likely to be used if you want to restore the mbr. If I recall, that is a feature in the YAST control center.
 
Old 09-08-2006, 08:10 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by ayteebee
andy@op3n:~> cd /boot
andy@op3n:/boot> cd boot
andy@op3n:/boot/boot> cd boot
andy@op3n:/boot/boot/boot> cd boot
andy@op3n:/boot/boot/boot/boot> cd boot
andy@op3n:/boot/boot/boot/boot/boot> cd boot

I mean, WTF's this all about?
Yep, you are screwed. You'll never get out of this.

This symlink is needed if there is separate boot partition. Then GRUB can still find the kernel in /boot/somekernel. You can't say it leads nowhere, it leads to same directory with /boot added on path.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
links (hard links and soft links..) sachitha Programming 1 08-10-2005 12:10 PM
Sym links and hard links akudewan Linux - Newbie 4 02-09-2005 05:08 AM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
how to change relitive links to specific links? wolfe2554 Linux - General 4 07-03-2004 12:40 AM
Links Section updated - Please add your Linux links. jeremy Linux - General 2 11-24-2001 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:32 AM.

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