Super User is a question and answer site for computer enthusiasts and power users. 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 am installing Ubuntu on my empty hard drive and I would like to have a separate partition on which I would store my data, like movies, music, documents, etc.

I don't like the idea of putting those files in /home/user directory because I would have multiple users on my computer and I want them all to easily access those files. I might also have multiple operating systems on my computer.

Now, the idea is, I would like that partition to be mounted on something like /data , instead of /media/data.

Is that safe, and how can I do that?

share|improve this question
up vote 4 down vote accepted

I don't know what should prevent you from mounting that partition just under root. The command would be sudo mount /dev/sda1 /data, where /dev/sda1 is the partition. Unmount via sudo umount /data.

To mount on startup add the following line to /etc/fstab:

/dev/sda1    /data    <partition type>    defaults    0    0
share|improve this answer
    
I thought so. Thanks. Just one more thing, how to make it mount on startup? – dac Aug 29 '12 at 10:27
1  
@dac - Take a look at this. Edit: Oh... er... Just saw that alnkpa already answered that... – SaintWacko Aug 29 '12 at 14:59
    
thank you very much! – dac Aug 29 '12 at 19:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .