Computing.Net > Forums > Linux > Mounting a Windows Share

Mounting a Windows Share

Reply to Message Icon

Original Message
Name: Michael J (by mjdamato)
Date: March 26, 2005 at 01:17:46 Pacific
Subject: Mounting a Windows Share
OS: Debian 3.0r4
CPU/Ram: 200MHz P1/128MB
Comment:

Ok, this is the situation. I have built a Linux webserver to host a PHP/MySQL application that will allow browsing and streaming of my mp3 collection (internally).

The mp3's, however, currently reside in a shared folder on my file server which is running WindowsXP. The web application needs access to the mp3's, obviously. How would I go about mounting the Windows share in Linux.

Please keep in mind that although I am very computer literate, with some DOS experience, I am very new to Linux - I set up the Linux server following a tutorial. Thanks in advance for your help.

Michael J


Report Offensive Message For Removal


Response Number 1
Name: nilbus
Date: March 26, 2005 at 20:44:19 Pacific
Reply: (edit)

http://www.linux.cu/documentos/RedHat/gsg/s1-q-and-a-windows.htm

This guide assumes that /dev/hda1 is your windows partition (the first partition on the first disk). The naming convention goes like this: /dev/hdXY where X is a-d, or the disk, and Y is 1-9, the partition number.

Also it assumes that you're using FAT32 (vfat) on windows (unlikely). Instead, you can try using -t ntfs, if your drive is formatted in NTFS format.

If you don't know where your windows partition is located, you can attempt to locate it by running (as root) fdisk -l /dev/hda (or hdb, hdc, hdd) Until you find a partition with the system type HPFS/NTFS, or FAT 32.


Report Offensive Follow Up For Removal

Response Number 2
Name: Michael J (by mjdamato)
Date: March 26, 2005 at 23:15:38 Pacific
Reply: (edit)

Thanks for the reply nilbus, but that article is about accessing a Windows partition on the same machine. I need to access a shared folder on a completely separate machine.

Any other ideas?

Michael J


Report Offensive Follow Up For Removal

Response Number 3
Name: quacked
Date: March 28, 2005 at 22:20:50 Pacific
Reply: (edit)

I had a problem mounting the Files on my WinXP machine from my Fedora core 3 machine until I downloaded and installed a Ntfs file reader Plugin.. Not sure of the web address right now... could look for It later... I then was able to mount the files shared after an certian update ...As I understand it because of the Licensing restrictions Red Hat is the only one that doesn't support NTFS file reading .. Out of the box ... or Distro .. there is however the plugin available for this purpose.
I was able to mount,read,and access the shares . However, Until I copied the files to the Linux machine I was unable to get the Mp3 files to play , ( I used the Xmms with the Mp3 plugin. ) Don't Know that much about any other configurations to be able to tell you much about it ,, as I'm a Linux newbie Myself.... Waiting to see someone more Knowledgeable about Linux administration chime in and offer a more complete explanation..

How or what script may be written , as far as setting up the user for accessing those shares and streaming them to the web.. well that's another matter ... Sorry if I have rambled on and haven't given any answer Just trying to offer an Idea of something that I had a problem with and still haven't quite found a total solution to myself ... that may or may not be related to your situation...


MSI 845e mb 768 mb ram and a p4 2.4n running xp ,win 2000 advanced server and win 98 SE alot to learn and I know so little !!!!


Report Offensive Follow Up For Removal

Response Number 4
Name: 3Dave
Date: March 29, 2005 at 05:28:37 Pacific
Reply: (edit)

You can mount the windoze share somewhere
below your web root (often something
like /var/www/html/):
#
smbmount //servername/share /var/www/html/mp3s
-o username=a_windoze_user

Then the directory should appear at
http://servername/mp3s


Report Offensive Follow Up For Removal

Response Number 5
Name: Michael J (by mjdamato)
Date: April 2, 2005 at 22:41:38 Pacific
Reply: (edit)

Thanks 3Dave, that looks like exactly what I want. I'll let you know if it works!

Michael J


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Mounting a Windows Share

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge