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 08:09 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, 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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360