LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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


Reply
  Search this Thread
Old 08-01-2009, 01:57 PM   #1
Draal
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
Question Mounting a folder on a ext3 partition (instead of the full drive)


(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
 
Old 08-01-2009, 03:33 PM   #2
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
Don't think so ...
You mount a filesystem.

Last edited by joeBuffer; 08-01-2009 at 03:38 PM.
 
Old 08-01-2009, 03:48 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You could use the --bind option from mount
http://aplawrence.com/Linux/mount_bind.html
 
Old 08-01-2009, 03:49 PM   #4
pcunix
Member
 
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 149

Rep: Reputation: 23
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
 
  


Reply

Tags
drive, ext3, folder, mount



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:52 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
Open Source Consulting | Domain Registration