LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 08-01-2009, 02: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, 04:33 PM   #2
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 325

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

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

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
You could use the --bind option from mount
http://aplawrence.com/Linux/mount_bind.html
 
Old 08-01-2009, 04: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


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 10:19 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration