LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Symbolic Links taking up space?! (https://www.linuxquestions.org/questions/linux-general-1/symbolic-links-taking-up-space-10664/)

N2technology 12-26-2001 02:26 PM

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!

rootboy 12-27-2001 01:17 AM

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

isajera 12-27-2001 02:10 AM

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.

DavidPhillips 12-27-2001 02:21 AM

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

N2technology 12-27-2001 08:41 AM

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...

DavidPhillips 12-27-2001 10:05 PM

No way to backup and restore?

N2technology 01-01-2002 05:18 PM

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?

DavidPhillips 01-02-2002 01:37 AM

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


All times are GMT -5. The time now is 03:37 PM.