Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

At my laptop I have one HDD with 2 partitions (OS and DATA).
Each time Ubuntu starts I have to mount it firstly so that I have access to it.
I want it to be automatically mounted.
How can I do that? And why it isn't by default?

share|improve this question
    
possible duplicate of How to automount NTFS partitions? –  Binarylife Sep 18 '11 at 19:39

1 Answer 1

up vote 1 down vote accepted

You can do that by editing your /etc/fstab file.

Excerpt from SOURCE:

A root filesystem:

UUID=30fcb748-ad1e-4228-af2f-951e8e7b56df / ext3 defaults,errors=remount-ro,noatime 0 1

A non-root file system, ext2:

/dev/sdb1 /media/disk2 ext2 defaults 0 2

fat16 and fat32

/dev/hda2 /media/data1 vfat defaults,user,exec,uid=1000,gid=100,umask=000 0 0

/dev/sdb1 /media/data2 vfat defaults,user,dmask=027,fmask=137 0 0

ntfs

This example is perfect for a Windows partition.

/dev/hda2 /media/windows ntfs-3g defaults,locale=en_US.utf8 0 0
share|improve this answer
    
Ok, I did that and the partition is mounted automatically. The only problem is that it shows up at the launcher and at desktop. But I don't want it to be like that. Can't this partition be like an extra hdd that does not show up at the launcher and is mounted automatically? Thank you. –  Chris Sep 18 '11 at 20:51
    
In order for that to happen, please make the mount point directories in /mnt (e.g., /mnt/Data_Partition/. Items in /media will show up on the desktop and launcher. –  nitstorm Sep 19 '11 at 2:20
    
I made a dir at mnt folder via sudo mkdir /mnt/DATA/ and then used that "/mnt/DATA/" as a mount point. In fact I have added this line: /dev/sda5 /mnt/DATA/ ntfs-3g defaults,locale=en_US.utf8 0 0 and the partition doesn't show up at the computer. What is wrong? –  Chris Sep 19 '11 at 13:00
    
@Chris Although the partition doesn't show up in the desktop/launcher, it is mounted. Just try browsing via your file manager to /mnt/DATA/. You could bookmark those locations in your file manager so that you can access them easily. That's the way you add it, if you don't want it shown in the launcher/desktop. –  nitstorm Sep 19 '11 at 13:30
    
I wanted it to be appeared as in windows, where it is always mounted and shows up in the computer. Isn't there any way to achieve that? –  Chris Sep 19 '11 at 13:59

Your Answer

 
discard

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.