LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 08-01-2009, 02:57 PM   #1
Draal
LQ Newbie
 
Registered: Aug 2009
Posts: 4
Thanked: 0
Question Mounting a folder on a ext3 partition (instead of the full drive)


[Log in to get rid of this advertisement]
(in my case debian, but that doesnt matter)

Is it possible to mount a folder instead of the full drive?

i have a partition /dev/sdb5 with some folders:

(/dev/sdb5)/home/
(/dev/sdb5)/private/
(/dev/sdb5)/data/

etc, i just want to mount the data folder to /mnt/data
(something like: mount /dev/sdb5/data /mnt/data?)

would that be possible? if not, is there another filesystem which i can use to do this?

thanks
Draal is offline  
Tag This Post , , ,
Reply With Quote
Old 08-01-2009, 04:33 PM   #2
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 321
Thanked: 23
Don't think so ...
You mount a filesystem.

Last edited by joeBuffer; 08-01-2009 at 04:38 PM..
joeBuffer is offline     Reply With Quote
Old 08-01-2009, 04:48 PM   #3
repo
Senior Member
 
Registered: May 2001
Location: Belgium
Distribution: Debian/GNU Linux
Posts: 4,534
Thanked: 444
You could use the --bind option from mount
http://aplawrence.com/Linux/mount_bind.html
repo is offline     Reply With Quote
Old 08-01-2009, 04:49 PM   #4
pcunix
Member
 
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 127
Thanked: 12
If what you are trying to accomplish is to give more space to (/dev/sdb5), what you can do is mv "data" elsewhere and then make a symlink in (/dev/sdb5).

Or, if it's that you need to refer to /mnt/data, do it the other way: symlink in /mnt pointing to (/dev/sdb5)/data
pcunix is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Problems mounting ext3 drive. Unknown drive parameters augur86 Linux - General 2 03-24-2009 06:03 AM
ext3 partition not mounting kaiwan Linux - Hardware 1 05-16-2008 01:47 PM
I deleted lost+found folder on ext3 partition - any issues? slacky Linux - General 4 05-01-2008 11:09 AM
Mounting new ext3 partition xbc Ubuntu 4 02-18-2007 09:55 PM
Re-sizing a full EXT3 Part with Partition Magic problems VexSky General 3 09-10-2003 08:23 PM


All times are GMT -5. The time now is 01:15 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration