Will softlinks occupy space in Solaris10


 
Thread Tools Search this Thread
Operating Systems Solaris Will softlinks occupy space in Solaris10
# 1  
Old 11-28-2014
Will softlinks occupy space in Solaris10

I have a pen drive1 with UFS file system and it has 43G used. It has a hell lot of soft links to other files which are located in a second pen drive2. We partitioned the file system on sun sparc machine, such that / has around 150G space.Now when we are copying the files from pen drive 1 to / on the sun machine, the space on the machine has already increased to 69G without full copy. What could be the reason. I am using df -h to check the space. Are soft links using space?? if so , so much??
# 2  
Old 11-28-2014
How are you copying the files?
Are any of the files on pen drive1 sparse?
# 3  
Old 11-28-2014
Quote:
Originally Posted by crackperl
It has a hell lot of soft links to other files which are located in a second pen drive2.
Please better define "a hell lot".
Quote:
What could be the reason.
The more likely is a mistake in the way you copy the softlinks, as already suspected by Don Cragun but there might be other explanations.
Quote:
I am using df -h to check the space.
"df -i" would help too.
Quote:
Are soft links using space??
Well, they obviousy use some space.
Quote:
if so , so much??
How many links are there on disk 1 ? Is there something else than symlinks ?
What kind of filesystem is used on the target system ?
# 4  
Old 11-28-2014
There is some confusion here. When you give the copy command a source name that is a symbolic link - the "big" file - the one the link refers to gets copied.

Code:
cp linkname newname

Does not create a second link, it goes to the source instead and copies that. So you get lots of data.

Why else would a command like vi linkname allow you to actually change a file? Links are not like some kinds of filesystem objects example: snapshots that simply contain delta data.

Short answer : use the ln command to "copy" a link.

Also note that symlinks never tell you that the original files does not exist - until you try to stat or open that file. You can symlink across filesystems, but it is fraught with problems if you are not careful. Your USB symlink copy could rapidly become pointless.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris10 and pxeLinux

I want to run solaris10 with my pxelinux server i put on pxelinux.cfg/default this LABEL solaris 10 kernel mboot.c32 append -solaris solaris/boot/platform/i86pc/kernel/unix -v -m verbose install dhcp nowin nfs://192.168.0.2/jumpstart/config.tar -B install_media=192.168.0.2:/solaris... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

2. UNIX for Dummies Questions & Answers

Create softlinks between 2 different hosts

Hi I want to create softlinks, my source files and folders are placed in one server(hostname: info-1) and i want to access those files from different host(hostname :info-2). file and folder names in info-1 host. file1 folder1 Thanks, Mallik. (1 Reply)
Discussion started by: tmalik79
1 Replies

3. Shell Programming and Scripting

HardLinks and Softlinks

How do i make a hardlink readable,writable, and executable by me? I am kinda hoping for a command i can use Also, i was wondering what file type are hardlinks and softlinks?Are they directories? (10 Replies)
Discussion started by: lilbo4231
10 Replies

4. Shell Programming and Scripting

What amount of store occupy only files in a directory?

Hello I'm trying to do an exercise programming in bash where I have to get only the store of files in a directory but NOT all capacity of the directory. I probe with: du -sh "$directory"*` but I get all the capacity and I probe with ls command but I couldnt. Are there any way to get only files... (2 Replies)
Discussion started by: adiegorpc
2 Replies

5. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

6. Solaris

Solaris10

Hi All How can we verify if any of the parameters we have change in Solaris10 after reboot. Like is there any command? Please advice Thanks (3 Replies)
Discussion started by: imran721
3 Replies

7. Solaris

Sun Solaris10

hi to all, I am newuser can anyone tell me from where i get the sun solaris 10 dumps. plz mail me at (no email addresses - read the RULES of these forums) (2 Replies)
Discussion started by: quickgun
2 Replies

8. AIX

IHS 6.1 on AIX - problem with symlinks / symbolic links / softlinks

Hello, I got an IHS 6.1 installed and want to publish a directory with an index of files, directories and symlinks / symbolic links / soft links, last ones being created with the usual Unix command "ln -s .... ....". In httpd.conf I've tried following for that directory: Options Indexes... (1 Reply)
Discussion started by: zaxxon
1 Replies

9. Solaris

Re: Crontab in solaris10

Hi all, I wrote a small shell (bash) script and it was executing well. I'm getting problem when I use this in crontab. My script is: #!/usr/bin/bash mkdir `date '+%m-%d-%y'` cd `date '+%m-%d-%y'` cvs co -r br_name module cd dir1/dir2/dir3 bash build.sh this is doing well... (7 Replies)
Discussion started by: gullapalli
7 Replies

10. Solaris

help,win2003 and solaris10 in a pc?

sorry,my english is poor. who can install win2003 and solaris10 in one pc ? my win2000server in hda1 so frist install win2003 in hda5 second install solaris10 in hda2 but after install over,the win2003 can't logon in. alway let me press<ctrl>+<alt>+<del>. why? (1 Reply)
Discussion started by: keyi
1 Replies
Login or Register to Ask a Question