LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-16-2006, 01:23 PM   #1
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
Can I "mount <some_directory> <another_directory>"?


Hello Friends,
I have directory named /media/hda7/Songs which I wish to mount to my /var/www/songs directory. I know how to mount a filesystem to a directory with
Code:
mount /dev/hda7 -t ext2 /media/hda7
But, now I wish to mount only a directory instead of a device. Is it possible?
 
Old 05-16-2006, 01:27 PM   #2
labratmatt
LQ Newbie
 
Registered: Nov 2004
Location: The Matrix
Distribution: Gentoo, Redhat, OS X
Posts: 21

Rep: Reputation: 15
Wouldn't a sym link do the same thing?
 
Old 05-16-2006, 01:38 PM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
For simple things, a symlink - like labratmatt said. For more complex things, like overlaying multiple directories into a single mountpoint, ... unionfs
 
Old 05-16-2006, 01:41 PM   #4
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
You could mount /media/hda7 in multiple locations but you can't mount the directory. But like was said above a symlink will do the same thing.

ln -s /media/hda7 /var/www/songs_directory

KC
 
Old 05-16-2006, 02:27 PM   #5
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by labratmatt
Wouldn't a sym link do the same thing?
Quote:
Originally Posted by haertig
For simple things, a symlink
Quote:
Originally Posted by kencaz
ln -s /media/hda7 /var/www/songs_directory
Thanks a lot friends.
Code:
ln -s /media/hda7/Songs /var/www/songs
The symlink did work fine. Thanks again.
 
  


Reply



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
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
"fc5" mount does not recognize "smbfs" file system? bdplays Linux - Networking 6 06-28-2006 11:21 AM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 12:17 PM
problems with smbfs mount-point in /etc/fstab - "mount -a" works, but not at boottime MarkSide Linux - Software 4 11-20-2005 03:30 PM
Segmentation Faults with "ls" and "mount" Mark007 Slackware 11 03-02-2005 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:58 PM.

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
Open Source Consulting | Domain Registration