LinuxQuestions.org
Visit Jeremy's Blog.
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 05-12-2010, 02:15 AM   #1
kaydenva
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
In Ubuntu 9.04, how do I mount different folders of the same partitions to different


[edit]since the original on yahoo has been deleted i removed the link[/edit]

I have a shared NTFS partition ("shared") that I use for data for both Windows and Ubuntu. How can I mount the music folder on shared to $Home/Music, and the Videos folder on shared to $Home/Videos? I want to mount the different folders on the partition to different folders in home. Any help here? Thanks in advance!

Last edited by Tinkster; 05-12-2010 at 07:06 PM.
 
Old 05-13-2010, 10:51 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Use symbolic links?

ln -s /shared/Music $HOME/Music
ln -s /shared/Videos $HOME/Videos
 
Old 05-13-2010, 12:04 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-17.1 with Cinnamon & KDE
Posts: 1,478
Blog Entries: 3

Rep: Reputation: 95
Quote:
Originally Posted by kaydenva View Post
[edit]since the original on yahoo has been deleted i removed the link[/edit]
...
How can I mount the music folder on shared to $Home/Music, and the Videos folder on shared to $Home/Videos? I want to mount the different folders on the partition to different folders in home.
...
When you speak of mount and umount you are talking about operations on file systems. Every "partition" has its own "file system". Every file system has a "type" like NTFS, EXT2, EXT3, EXT4, XFS, and so on.

When you speak of folders those are a feature implemented by the installed file system. (There was a day when "folders" where an exception, but that was long long ago.)

You must mount a file system before you may access any of its contents. (Yes, there are ways to read a file system without mounting but that is beyond the scope of this response.) The mount processing associates the top-level folder of the new file system with some named folder that already exists within your already mounted root "/" file system. For example, mounting a flash drive may result in the contents being available at /media/myFlashDrive. NOTE -- When I create a folder for use as a mount point, I put a text file in that folder called _THIS_IS_A_MOUNT_POINT_.txt. When you mount a file system on a folder, the file system hides any current folder contents. This if this file is visible, that mount point is not active.

At this point you may access the contents of your newly mounted drive.
For example, /media/myFlashDrive/Music ... /media/myFlashDrive/Photos ... /media/myFlashDrive/Documents ... and so on.

Respondent, AlucardZero, described the use of links to give your folders named placeholders at some other place in your folder tree heirarchy. This works well. I've used it frequently. You must use caution, however. the link file will continue to exist even if the target file system is not mounted and thus the target folder is no longer available. This can lead to bad behavior on the part of programs that try to access the folder links.

Cheers,
~~~ 0;-Dan

Last edited by SaintDanBert; 05-13-2010 at 12:21 PM.
 
  


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
mounting folders to partitions? qwertyjjj Linux - Newbie 2 02-07-2010 04:38 PM
Permissions on folders & Partitions Ubuntu ahmed_as8 Linux - Newbie 7 01-31-2009 07:21 AM
Can't mount partitions from HDA, But will mount partitions from HDB Colonel-1990 Linux - Hardware 13 08-09-2008 10:59 AM
Mount remote folders into local Ubuntu machine (sshfs) nthillaiarasu Ubuntu 1 01-06-2008 04:12 AM
mount windows xp partitions in ubuntu newbieSC Linux - Newbie 8 04-20-2005 10:47 PM


All times are GMT -5. The time now is 08:45 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