LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   2 hard links for file on ntfs partition (https://www.linuxquestions.org/questions/linux-newbie-8/2-hard-links-for-file-on-ntfs-partition-844277/)

sumeet inani 11-14-2010 11:18 PM

2 hard links for file on ntfs partition
 
$cd /sumeet
$ls -il

1490 -rwxrwxrwx 2 root root 137 2009-08-29 14:59 zone alarm.txt
$find /sumeet -type f -inum 1490
/sumeet/software/zone alarm.txt
Then where is second hard link ?

vishesh 11-15-2010 12:27 AM

Did you created hard link or concluding on the basis of 'ls -li' output ?

markush 11-15-2010 12:31 AM

Hi sumeet inani,

I've tried it and mounted my NTFS partition in Linux. Seems that there is always at least a "1" for NTFS. Here the output for "ls -lh /mnt/tmp
Code:

drwx------ 1 root root    0 14. Jul 2009  Documents and Settings
-rw------- 1 root root 4,0G 14. Nov 09:14 hiberfil.sys
drwx------ 1 root root    0 14. Nov 01:15 Install
drwx------ 1 root root    0 13. Nov 14:46 MSOCache
-rw------- 1 root root 4,0G 14. Nov 09:14 pagefile.sys
drwx------ 1 root root    0 14. Jul 2009  PerfLogs
drwx------ 1 root root 8,0K 14. Nov 03:52 ProgramData
drwx------ 1 root root 8,0K 14. Nov 01:08 Program Files
drwx------ 1 root root  12K 14. Nov 10:35 Program Files (x86)
drwx------ 1 root root    0 13. Nov 14:36 Recovery
drwx------ 1 root root 4,0K 14. Nov 00:46 $Recycle.Bin
-rw------- 1 root root 2,2K  1. Apr 2010  RHDSetup.log
-rw------- 1 root root  191  1. Apr 2010  Setup.log
drwx------ 1 root root 8,0K 14. Nov 10:35 System Volume Information
drwx------ 1 root root 4,0K 14. Nov 00:45 Users
drwx------ 1 root root  40K 14. Nov 01:25 Windows

Markus

sumeet inani 11-15-2010 01:47 AM

I did not create a hard link .
Actually /dev/sda6 is mounted as /sumeet.
If there is another it should be on same partition .
Isn't it ?


All times are GMT -5. The time now is 05:04 PM.