Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

W2K mount points

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> W2K mount points Page: [1]
Login
Message << Older Topic   Newer Topic >>
W2K mount points - Feb. 9, '05, 5:31:50 PM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
I have a W2KSP4 running SFU 3.5 with a series of mount points on the host OS. Unfortunately under Interix, I can change to the mount point, but cannot enumerate the files. I receive when running an ls, "ls: fts_read: No such file or directory".

Any ideas?
Post #: 1
RE: W2K mount points - Feb. 10, '05, 12:29:48 AM   
Rodney

 

Posts: 3144
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
How is the mounting getting done? NFS, SMB, ... ?
Have you tried just using the /net filesystem instead?

(in reply to prj32)
Post #: 2
RE: W2K mount points - Feb. 10, '05, 2:16:50 AM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
Sorry Rodney, I should of been more specific. Windows 2000 disk mount points (junction to volume). Not Interix NFS or symlinks.

(in reply to Rodney)
Post #: 3
RE: W2K mount points - Feb. 10, '05, 12:44:21 PM   
Rodney

 

Posts: 3144
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
mmmm, okay. A junction should be pretty "invisible" (i.e. no special treatment
above the device driver).

Which ls are you using? The SFU or /Tools version?
(In ksh: "whence ls", in csh/tcsh: "which ls").

If you are using the "/bin/ls" (the SFU one) try the /Tools ls
in "/usr/local/bin". The 'ls' and 'FTS' code I can add debugging to
for figuring this one out some more.

(in reply to prj32)
Post #: 4
RE: W2K mount points - Feb. 10, '05, 10:59:01 PM   
markfunk

 

Posts: 629
Joined: Mar. 31, '03,
Status: offline
Note: some junction points do work with Interix
If the junction destination is a relative pathname it works fine.
Just absolute path names don't seem to work.

(in reply to Rodney)
Post #: 5
RE: W2K mount points - Feb. 11, '05, 12:22:45 AM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
If I run ls outside the mount point it works fine. Its just if I am currently within the mountpoint nothing works. The bizzare thing is I can cd into the filesystem.

Is this likely to get fixed?

(in reply to markfunk)
Post #: 6
RE: W2K mount points - Feb. 11, '05, 2:00:38 AM   
Rodney

 

Posts: 3144
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
The question "which ls are you running?" still applies.

(in reply to prj32)
Post #: 7
RE: W2K mount points - Feb. 11, '05, 2:33:32 AM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
sorry, I have tried both. same error.

(in reply to Rodney)
Post #: 8
RE: W2K mount points - Feb. 11, '05, 11:34:54 PM   
markfunk

 

Posts: 629
Joined: Mar. 31, '03,
Status: offline
both ??
What are the explicit pathnames to the programs ?

This is likely a bug in the Interix subsystem.

(in reply to prj32)
Post #: 9
RE: W2K mount points - Feb. 12, '05, 2:14:13 AM   
Rodney

 

Posts: 3144
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
To be clear about what it is you are doing:
You have a junction, lets call it "foo".
1) If you do "/bin/ls foo" the content of foo is listed, yes?
2) If you do "cd foo ; /bin/ls" then you get the error message stated in the first post, yes?
3) Do you get any output, besides the error message in case 2 ?
4) If in 1 and 2 you replace "/bin/ls" with "/usr/local/bin/ls" is the output identical?
5) If you do "cd foo ; /usr/local/bin/ls -U" what happens ?

< Message edited by Rodney -- Feb. 12, '05, 2:18:34 AM >

(in reply to markfunk)
Post #: 10
RE: W2K mount points - Feb. 12, '05, 8:29:50 PM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
quote:

ORIGINAL: Rodney
To be clear about what it is you are doing:
You have a junction, lets call it "foo".
1) If you do "/bin/ls foo" the content of foo is listed, yes?
Yes it works; /bin/ls /dev/fs/C/foo
2) If you do "cd foo ; /bin/ls" then you get the error message stated in the first post, yes?
No error, but it displays the root of /dev/fs/C, NOT /dev/fs/C/foo? If I go one directory deeper. i.e. /dev/fs/C/foo/foo2 and perform a /bin/ls; I receive the "ls: fts_read: No such file or directory.
3) Do you get any output, besides the error message in case 2 ?
Nope, truss returns.
getdata() getdata returned 0
getrlimit() getrlimit returned 0
pthread_inform_signals() pthread_inform_signals returned 0
open("/usr/share/locale//_ASCII", 0x1) open returned 3
read(3, 0x824310, 131072) read returned 131072 0x20000
close(3) close returned 0
open("/usr/share/locale//ASCII_", 0x1) open returned 3
read(3, 0x844318, 512) read returned 512 0x200
read(3, 0x844520, 131072) read returned 0
close(3) close returned 0
isatty(1) isatty returned 0
ioctl(1, 0x40087404, 0x81FF64) ioctl returned 0
getids() getids returned 0
stat(".", 0x01B10720) stat ret: 0 dev: 0x41010000000043 ino: 0x00004f7a
open(".", 0x1) open returned 3
fchdir(3) fchdir failed: errno 2, No such file or directory

write(2, 0x81F448, 4) ls: write returned 4
write(2, 0x81F464, 8) fts_readwrite returned 8
write(2, 0x81F44C, 2) : write returned 2
write(2, 0x81F448, 26) No such file or directory
write returned 26 0x1A
lseek(0, 1, 0) lseek returned 0
lseek(0, 0, 0) lseek returned 0
exit(1) process exited with status 1

4) If in 1 and 2 you replace "/bin/ls" with "/usr/local/bin/ls" is the output identical?
Yep, same problem. i.e. listing incorrect directory, when you go deeper into the junction you receive the fts_read error.
5) If you do "cd foo ; /usr/local/bin/ls -U" what happens ?
Same as 4, the command returns /dev/fs/C/ as apposed to /dev/fs/C/foo.

(in reply to Rodney)
Post #: 11
RE: W2K mount points - Feb. 12, '05, 11:18:48 PM   
markfunk

 

Posts: 629
Joined: Mar. 31, '03,
Status: offline
How was the junction "/dev/fs/C/foo" created ?
What is the exact command line ?
Or sequence of commands.

thanks.

(in reply to prj32)
Post #: 12
RE: W2K mount points - Feb. 13, '05, 7:25:49 PM   
prj32

 

Posts: 29
Joined: Oct. 16, '04,
Status: offline
I used the Disk Manager GUI utility. But you should be able to use mountvol.exe, diskpart.exe [assign] or even maybe linkd.exe.

< Message edited by prj32 -- Feb. 14, '05, 1:42:40 AM >

(in reply to markfunk)
Post #: 13
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> W2K mount points Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047