changing mount point

Preston Hagar prestonh at gmail.com
Thu Dec 3 19:52:40 UTC 2009


On Thu, Dec 3, 2009 at 1:00 PM, Gary Kirkpatrick <pegngary at gmail.com> wrote:
> I have my data on a partition, sda2.  9.04 is on sda4.  When I go to sda2 I
> have to click home, then main before I can get to my data files.  Is there a
> way to avoid a step or two, going straight to where the data is stored?  I
> think this has something to do with mounting but could not tell for sure
> from the posts I read.
>
> thanks
>
> gary
>

There are a couple of different options, the top two would be a
symlink or to move the mount point.  To give the exact
commands/changes, I might need a little more information, but I can
give you a general guide.

It sounds like sda2 is mounted at /home/<yourUserName>/main  which
would cause you to go into home, then main to access your data.  Is
there anything else in your home folder besides the main folder?  If
main is the only thing in there, then you can likely just move the
mount point, if there are other things in there, you would probably be
better off with symlinks.

Reply with the output of the following terminal commands:

df -h

cat /etc/fstab

ls -la /home/

# (for the next command, you will need to replace <yourUserName> with
your user name

ls -la /home/<yourUserName>

In general, to change a mount point, you will edit (as root) the
/etc/fstab file and change where sda2 is mounted.  If there is other
stuff in your home folder, however, it will possibly be more trouble
than its worth to move the mount point.   Send me the output to the
commands above, and I can send you more detailed instructions.

Preston




More information about the ubuntu-users mailing list