LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2004, 07:29 PM   #1
jalperin
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Rep: Reputation: 0
Symlink or Mount or Another Technique?


Just installed Mandrake 10.0 and am very new at Linux. I have mp3 files on a second hard drive that I would like to make available through my Apache webserver. The document root for Apache is on the primary hard drive. What is the appropriate way to make the mp3's appear to be within the Apache document root? Mount the directory under the document root? Do something with symlink (which I don't really understand). Thanks for the coaching. --Jeff
 
Old 08-26-2004, 07:43 PM   #2
sibtay
Member
 
Registered: Aug 2004
Location: U.S
Distribution: Ubuntu
Posts: 145

Rep: Reputation: 15
Yes you have to first mount that hard drive and then make a symlink within the apache root folder, that would point to ur destination (where it is mounted)

to mount a hard drive you need to know its number

fdisk -l

would give you the list of partitions of all your hard drives

according to my fdisk -l, my windows drive is on /dev/hda1

so to mount it i use the following command

mount /dev/hda1 <location> (i use /mnt/windows)

to make a symbolic link type ln -s <link Name> <target>

for example to make a sym link for /mnt/windows/songs i'll type

ln -s mysongs /mnt/windows/songs
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A question related to DVD burning technique babyboss Linux - Hardware 8 08-15-2005 05:19 AM
Back up technique for one-time re-install rickh Fedora 3 07-07-2005 05:49 PM
symlink mikedelo Linux - Software 2 03-28-2004 01:32 PM
Advanced GREP technique ? ganninu Linux - General 2 10-08-2003 07:55 AM
mount not writing to /etc/mtab if is symlink? sannik Linux - General 1 07-27-2003 01:18 AM


All times are GMT -5. The time now is 06:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration