LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-26-2001, 03:26 PM   #1
N2technology
LQ Newbie
 
Registered: Dec 2001
Posts: 3

Rep: Reputation: 0
Unhappy Symbolic Links taking up space?!


Why would a Symbolic Link take up room?

We have Red Hat Linux v 7.2 and have about 1 million symbolic links pointing to seperate data files on another box that we are NFS'ed to... The Symbolic links seem to be taking up room on the system it's self. Any ideas? Is there any way around this?


Thanks!
 
Old 12-27-2001, 02:17 AM   #2
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Re: Symbolic Links taking up space?!

Quote:
Originally posted by N2technology
Why would a Symbolic Link take up room?
Sure, not much -- nowhere near what having a duplicate copy of the file would take -- but some resources.


Quote:

We have Red Hat Linux v 7.2 and have about 1 million symbolic links pointing to seperate data files on another box that we are NFS'ed to... The Symbolic links seem to be taking up room on the system it's self. Any ideas? Is there any way around this?


Thanks!
Ummm, you could delete them, I doubt that this would be a very good idea, but it would get rid of them...


John
 
Old 12-27-2001, 03:10 AM   #3
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
everything takes up space... i just did a short test... a link on my system from one file to another takes up 9 bytes... i think it varies from link to link tho.
 
Old 12-27-2001, 03:21 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
If you have that many links you would save space by having your ext2 block size at 1k

the default is 4k for some systems
 
Old 12-27-2001, 09:41 AM   #5
N2technology
LQ Newbie
 
Registered: Dec 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Block size

I don't suppose that the block size can be changed without loosing my data on that parition, could it?

If I had caught this early on, before the disk was so full, it would have been better, but now, the data is just too much to resolve this problem easely...
 
Old 12-27-2001, 11:05 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
No way to backup and restore?
 
Old 01-01-2002, 06:18 PM   #7
N2technology
LQ Newbie
 
Registered: Dec 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Symbolic links

Backup and restore would cost money, as my systems are hosted by an ISP. My backup really consists of another system that gets data copied to it...

Back to the origonal problem with Symbolic Links taking up room, it would seem that based on my calcluations my symbolic links are taking up about 9K each. The filesystem was setup with defaults which should be 4 k blocks?... any ideas?
 
Old 01-02-2002, 02:37 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
someone with 1k blocks may be able to test it, I believe you are seeing a file size of 8192.

you could save somewhere between 0 and 3072 per link

Last edited by DavidPhillips; 01-02-2002 at 02:38 AM.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
symbolic links durden2.0 Linux - Newbie 6 11-12-2008 04:06 AM
cp and symbolic links? sausagejohnson Linux - General 3 07-19-2005 02:25 AM
Symbolic Links Greg_courageous Linux - Newbie 1 05-10-2004 08:05 AM
Symbolic links? TongueTied Linux - Newbie 3 08-27-2003 07:00 AM
symbolic links NoahsMyBro Linux - Newbie 1 11-16-2001 12:13 PM

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

All times are GMT -5. The time now is 02:30 PM.

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