How can I automount my windows partition at boot?

I have all my music and videos on my NTFS partition. How can I automount it during boot so that I may make links like this:

ln -s /windows/music ~/music

work automagically in KDE without having to give root password.

You need to edit the file /etc/fstab.
Either using a text editor like kwrite or gedit, or you can open YaST > Partitioner, go to Hard disks, select the partiotion and click ‘Edit’. Then select ‘Mount’ under ‘Mounting Options’ and choose your mount point. Click ‘Finish’ and reboot.

Note that in both ways you can easily mess your system and make it non-bootable, so be careful.

And do not forget that your mount point, in your case /home/billypap/music, must be owned by user billypap (and that user must set the access to his liking).

I use the following line in my fstab to auto mount my Windows hard drive. While you can use a ln command to create a link, I have not found that is require and just point my Linux programs to the native source folder:

/dev/disk/by-id/ata-ST32000641AS_9WM0BWE8-part2                     /Windows             ntfs-3g    defaults,noatime                                  0 0

Keep in mind my hard drive name is different than yours. You can use the YaST Partitioner to create a similar entry in your fstab file and then edit the fstab file manually and use the suggested options “defaults,noatime” over what is added there for you. You can use the Partitioner to edit any partition, BUT DO NOT FORMAT an Existing One, but only enter a folder name for it to be mounted. The folder will be created if it does not exists and if it does exist, no files or folders should exist within it. To edit system files like /etc/fstab, have a look at my bash script editor program here:

SYSEdit - System File Editor - Version 1.00 - Blogs - openSUSE Forums

Thank You,

Thanks all for the insightful replies, I got it working now :slight_smile:

This thread has been here for a while but still it helped me yesterday (Jan 2014) to get a Windoze partition going at boot. I added in /etc/fstab the following line “/dev/disk/by-id/ata-ST32000641AS_9WM0BWE8-part2 /Windows ntfs-3g defaults,noatime 0 0”

from jdmcdaniel3 which works perfectly - thank you!

Today I came acroos the following (by chance) but haven’t tried it as mine as now working.

Go to Kickoff Launcher → System Settings → Hardware → Removable Devices. In here one can tick “Enable automatic mounting of removable media”. Below that is a list of media which can be ticked/mounted.
As I said, I haven’t tried it but might be worth a try.

I hope this helps and good luck!


But this doesn’t mount the drive at boot, only if that particular user logs in.
Depending on your use case/needs this may or may not be sufficient to you.

Btw, you can also use YaST->System->Partitioner to create that fstab entry, if you don’t want to edit the file by hand.
But this already has been mentioned here anyway.

As in Wolfi’s reference to “Depending on your use…”:

I only use my NTFS partition for specific jobs, so I don’t have it automount at boot.

Instead, I open Dolphin, choose the partition, enter root password when asked, and it is mounted for current user with the necessary permissions to get my work done.

When I am finished the work, I use Dolphin to unmount the NTFS partition until needed again.

That suits my purpose.

I just do not feel comfortable having an NTFS partition permanently mounted.

Not that I don’t trust Microsoft filesystem security, but …

I do not trust Microsoft filesystem security. ;-D