Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-16-2006, 02:23 PM   #1
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
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, 02:27 PM   #2
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, 02:38 PM   #3
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, 02:41 PM   #4
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

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

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


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

All times are GMT -5. The time now is 05:36 AM.

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