Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 12-28-2003, 07:19 PM   #1 (permalink)
Junkie
 
Location: Louisville, KY
NTFS Shenanigans, or "How do I map a remote drive as local folder?!"

Ok I'm setting up a streaming MP3 server on my spare box, lets call it "Machine B". I've got all my MP3s on a different box, "Machine A", which has the MP3 folder as a network share. Both boxes use Windows XP.

Is there a way to map the network share on Machine A in such a way that Apache on Machine B will see it as a regular folder, and stream from it?

I've already tried NTFS links and junctions. They are fine for mapping stuff on the same box, but don't work for networked drives. All I want is for the network drive to appear as a folder somewhere, like you can do with partitions!

Can it be done?
__________________
You do not use a Macintosh, instead you use a Tandy
Kompressor break your glowstick, Kompressor eat your candy
Kompressor open jaws, Kompressor release ants
Kompressor watch you scream, Because Kompressor does not dance
Nefir is offline  
Old 12-28-2003, 07:38 PM   #2 (permalink)
Addict
 
this is probly over my head but did we ever try maping the drive on what ever pc u want to use it on? it just shows up at like g:\ realy easy on win xp. Just right click on my computer and map drive. Locate it on the pc it on and go. not sure if this will work for what u want but it might )
Smackre is offline  
Old 12-28-2003, 08:05 PM   #3 (permalink)
Junkie
 
Location: Louisville, KY
Quote:
Originally posted by Smackre
this is probly over my head but did we ever try maping the drive on what ever pc u want to use it on? it just shows up at like g:\ realy easy on win xp. Just right click on my computer and map drive. Locate it on the pc it on and go. not sure if this will work for what u want but it might )
Oh that much I know, and tried. The problem with mapping it as a drive is that I have no way of accessing it within Apache's document root. It needs to be a FOLDER inside the document root, otherwise the program can't touch it.

Junction (a very cool undocumented NTFS feature) won't work on a mapped drive either, so I can't create a folder that will respond as if it was the drive itself.
__________________
You do not use a Macintosh, instead you use a Tandy
Kompressor break your glowstick, Kompressor eat your candy
Kompressor open jaws, Kompressor release ants
Kompressor watch you scream, Because Kompressor does not dance
Nefir is offline  
Old 12-28-2003, 08:10 PM   #4 (permalink)
Not so great lurker
 
Location: NY
EDIT: looks like I'm a bit late with this post,
It sounds like you want to mount the drive as a folder like they do in unix? Would that be a correct assumption?


If you do as smackre says and map a network drive to the shared folder it should work fine.

Note: you may want to make sure that reconnect on logon is checked and also that you have set up the permissions so that the share is accessible.

For the people who don't know (but may be interested), usually you map the drive in the form of \\machinename\share

Last edited by heyal256; 12-28-2003 at 08:13 PM..
heyal256 is offline  
Old 12-28-2003, 08:28 PM   #5 (permalink)
Junkie
 
Location: Louisville, KY
Quote:
Originally posted by heyal256
EDIT: looks like I'm a bit late with this post,
It sounds like you want to mount the drive as a folder like they do in unix? Would that be a correct assumption?


If you do as smackre says and map a network drive to the shared folder it should work fine.

Note: you may want to make sure that reconnect on logon is checked and also that you have set up the permissions so that the share is accessible.

For the people who don't know (but may be interested), usually you map the drive in the form of \\machinename\share
Ok maybe I'm not being clear. Here's exactly what I need to accomplish:

MP3 server root:
D:\www\htdocs\netjuke

MP3 files:
\\station-two\mp3

I need the MP3 files to be:
D:\www\htdocs\netjuke\music

I can map the mp3 share to Z:\ or something, but thats no good. It needs to be inside the server root!

Hope that explain it better

The server can't see anything outside of the root. It is possible to set a local partition to be inside a folder within the root, and I am trying to accomplish the same thing with a share.
__________________
You do not use a Macintosh, instead you use a Tandy
Kompressor break your glowstick, Kompressor eat your candy
Kompressor open jaws, Kompressor release ants
Kompressor watch you scream, Because Kompressor does not dance

Last edited by Nefir; 12-28-2003 at 08:30 PM..
Nefir is offline  
Old 12-28-2003, 10:13 PM   #6 (permalink)
Junkie
 
Location: North Hollywood
I'm reasonably sure you can't do that, best to just tell apache to rediect or something either with a vhost or an alias
charliex is offline  
Old 12-29-2003, 01:56 AM   #7 (permalink)
paranoid
 
Silvy's Avatar
 
Location: The Netherlands
I'm not runnig XP or a windows-hosted webserver but,
you could try to create a shortcut named D:\www\htdocs\netjuke\music
that points to Z:\ (which you then map your network share in)

If you set the permissions right it might work.
Other than that, I have no clue.
__________________
"Do not kill. Do not rape. Do not steal. These are principles which every man of every faith can embrace. "
- Murphy MacManus (Boondock Saints)
Silvy is offline  
Old 12-29-2003, 05:39 AM   #8 (permalink)
Junkie
 
Location: Louisville, KY
Thanks for all your replies, folks!

Here's how I managed to get the problem solved:
- Created new accounts on both machines with same logins
- Set Apache to use those accounts
- Created an Alias for the network share as a local folder

And it works! Woohoo! Now I've got MP3s on one machine being streamed through another. Kickass.
__________________
You do not use a Macintosh, instead you use a Tandy
Kompressor break your glowstick, Kompressor eat your candy
Kompressor open jaws, Kompressor release ants
Kompressor watch you scream, Because Kompressor does not dance
Nefir is offline  
Old 12-29-2003, 07:27 AM   #9 (permalink)
"Officer, I was in fear for my life"
 
hrdwareguy's Avatar
 
Location: Oklahoma City
you can use the subst command to do this.

First map the shared folder as a drive (we will call it z. Next create a bathc file that has the following line

subst z: d:\www.htdocs\netjuke\music

Now put that batch file in your startup folder and you should be good to go.
__________________
Gun Control is hitting what you aim at

Aim for the TFP, Donate Today
hrdwareguy is offline  
 

Tags
drive, folder, local, map, ntfs, remote, shenanigans


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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 03:47 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54