LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-14-2006, 04:24 AM   #1
samyboy
LQ Newbie
 
Registered: Nov 2006
Posts: 12

Rep: Reputation: 0
Mount a local folder


Hi there,

I would like to mount a local folder.

Example :
Home directories are in /mnt/hdx/homedir
I would like to type mount /mnt/hdx/homedir /home

No idea how to do that.
 
Old 12-14-2006, 04:49 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
Originally Posted by samyboy
Hi there,

I would like to mount a local folder.

Example :
Home directories are in /mnt/hdx/homedir
So the disk is already physically mounted right?
Quote:
I would like to type mount /mnt/hdx/homedir /home

No idea how to do that.
1st way to do it:
Create a link from /home to /mnt/hdx/homedir:
cd /
ln -s /mnt/hdx/homedir /home

2nd way (I use this one):

from man mount:
Quote:
Since Linux 2.4.0 it is possible to remount part of the file hierarchy somewhere else. The call is
mount --bind olddir newdir
After this call the same contents is accessible in two places. One can also remount a single file
(on a single file).
cd /
mkdir home
mount -rbind /mnt/hdx/homedir home
 
Old 12-14-2006, 05:57 AM   #3
samyboy
LQ Newbie
 
Registered: Nov 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you !

It works like a charm.
 
Old 01-23-2007, 07:15 AM   #4
samyboy
LQ Newbie
 
Registered: Nov 2006
Posts: 12

Original Poster
Rep: Reputation: 0
The fstab entry :

/mnt/hdx/home /home none bind
 
Old 04-26-2013, 11:36 PM   #5
cwoneil
LQ Newbie
 
Registered: Feb 2009
Distribution: Lubuntu
Posts: 3

Rep: Reputation: 0
Smile Check for noexec on mount point

If you use software like PlayOnLinux, this must execute files in your home directory. If the mount point where you move your home directory is user mountable, then the noexec option will be set and you wine installation will stop working.

To check this type mount
find the drive where you are linking to your new home directory
ensure that it does not show "noexec" as one of the mount options
If it does, edit fstab to add the exec option or to remove the user option. Security settings in Linux don't allow files to be executed from user mountable drives.

Good luck.
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I mount a local NTFS disc as SAMBA mount point? alek66 Linux - Networking 15 10-01-2006 10:02 AM
Thunderbird shared Local Folder NikToo Linux - Software 2 01-25-2006 09:52 AM
how do I add a local folder as a repository? akudewan Ubuntu 2 09-05-2005 01:35 AM
can't copy folder to usr/local ontwolf Linux - Hardware 5 04-23-2004 12:56 PM
Remote Mounting? (Mount remote folder on local filesystem) mac_phil Linux - Networking 1 11-15-2003 03:48 PM


All times are GMT -5. The time now is 04:37 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration