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'd like to give the Windows partition of my Ubuntu installation a persistent device name, so different applications (like the local folder-account of my email software, or my local dropbox client) have access to folders and files on this partition via a fixed file path.

As far as I understand (I am a Linux newbie), the easiest way to do this will be to create personal udev-rules. I tried to follow several guides like this one, but these seem specifically written for USB devices. If I follow their steps and type udevadm info -a -p $(udevadm info -q path -n /dev/sd2) (sd2 is my Windows partition), I get, for instance, no BUS-value and no SYSFS{product}-value either, although both seem to be necessary for writing rules.

Maybe newer Ubuntu versions even have a far more easier way to accomplish this task? Many thanks in advance for your help!

share|improve this question
up vote 1 down vote accepted

All you need to do is modify your /etc/fstab file giving the windows partition a fixed mount point.

This is an example: /dev/sda2 /media/Windows ntfs uid=1000,gid=1000,dmask=027,fmask=137 0 0

Practically, this line says mount the /dev/sda2 partition to /media/Windows and sets partition permissions.

Every time you turn your computer on the Windows partition will automount on /media/Windows.

share|improve this answer
I just modified the fstab-file. It seems to work. Many thanks!!! – muderseb Apr 20 '13 at 0:34
Just for further clarification, can you maybe explain what exactly the expressions uid=1000, gid=1000, dmask=027, fmask=137, and the two 0 at the end of the line mean or point to? So I can understand not only that this is the correct solution, but also why. – muderseb Apr 20 '13 at 10:04

Go to System --> Administration --> Disk Utility and change the file name.

Or use gparted from the ubuntu software centre and right click on the partition drive you want to rename and click label.Now,enter your desirable name.

share|improve this answer

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.