Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Ubuntu 11.10 Desktop on an old server. The Ubuntu OS is running on a 250Gb hard drive and the files I want to share on on a second 1Tb hard drive mounted in the server.

The 1Tb drive auto mounted to /media/New Volume in Ubuntu. But because it is mounted under /media my Windows Vista machines can't see the correct file path since it seems I can't share /media...

Is there anyway to direct/force Ubuntu to mount the secondary hard drive under /home/public?

Any advice?

share|improve this question

This should work

Look at the output of df. It will tell you the device for your external drive:

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             446G   36G  388G   9% /
udev                  1.9G  4.0K  1.9G   1% /dev
tmpfs                 750M  888K  750M   1% /run
none                  5.0M  8.0K  5.0M   1% /run/lock
none                  1.9G  4.7M  1.9G   1% /run/shm
/dev/sdb1              58G   17G   39G  30% /media/external

Then add an entry to /etc/fstab (use sudo pico /etc/fstab for instance):

/dev/sdb1    /mount-point/you-want  ext4  defaults   0   0

"ext4" should reflect the actual filesystem on your drive. Don't know it? look at output from "mount" to see the "type".

Once all this is done, as long as the drive is connected to the system when it boots, it should appear under the mount point you specified.

share|improve this answer
I've tried to mount by editing /etc/fstab and adding the UUID and when I go to mount it says that only root can mount to /home. Do I need to restart for it to auto mount to that location? – bennettwrite Jan 31 '12 at 21:13
yes, you do need to restart... – petermolnar Mar 20 '12 at 12:16
Not necessarily, you can do sudo mount -a, this will (as root) mount all partitions defined in fstab. – roadmr Mar 20 '12 at 15:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.