You are not logged in.

#1 2010-06-27 18:12:14

x5x_tim
Member
Registered: 2010-06-13
Posts: 86

Mounting a subfolder

Is there any way to only mount a sub folder in the root of a file system?
I want to mount /Music in /dev/sda3 to ~/Music.
Is this possible or should I just create a symbolic link after mounting the entire file system.
Related: would it take more system recourses if I mount the entire file system and create a link, or is this difference not noticeable?

Offline

#2 2010-06-27 18:13:29

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Mounting a subfolder

no I think you can mount a subfolder


EDIT : I stand corrected : you cannot do that, since Music will not be under /dev/sda3
you will have to mount the drive and then bind as andresp mentioned.

Last edited by Inxsible (2010-06-27 18:21:20)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-06-27 18:14:29

andresp
Member
Registered: 2010-05-29
Posts: 62

Re: Mounting a subfolder

You have to mount sda3. Then do a bind mount

mount --bind /mountpoint/Music ~/Music

Offline

#4 2010-06-27 18:25:51

x5x_tim
Member
Registered: 2010-06-13
Posts: 86

Re: Mounting a subfolder

andresp wrote:

You have to mount sda3. Then do a bind mount

mount --bind /mountpoint/Music ~/Music

Ok, thanks

Offline

Board footer

Powered by FluxBB