I have a dual boot system, Leap 42.3 with KDE and Windows 10. Each OS on separate physical drive, use GRUB. In Dolphin, I can mount my Windows drive by clicking the drive listing and entering my root password. The dialog identifies my Windows drive as WD10EACS-00D (/dev/sdc4). I would like to set it up to automount at boot. What is the easiest way to do this? Label for the drive is Windows and location is /run/media/username/Windows. Based on some other posts I’ve seen on this topic, I’m guessing I need to manually edit my fstab file. I have pasted mine below. Thanks for help.
You can do so using YaST > Sustem > Partitioning. Take care, see that the file system is not “formatted”.
Oh, and my advice would be to use a different mount point. All in /run/… is reserved for Desktop mounts. E.g. in /mnt/ or somewhere in /home/username/. Some prefer yo mount in /mnt/Windows and then let the user username create a symlink to it from his/her home directory.
It would not be bad to first look at how it is mounted at the moment:
mount | grep Windows
When then YaST has created the fstab entry, you can add parameters that you may need yourself. Important are uid=value, gid=value and umask=value.
dontosaw@linux:~> mount | grep Windows
/dev/sda4 on /run/media/dontosaw/Windows type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
Thanks for the reply hcw. I tried to do what you described using the YAST partitioning utility and failed. The results of mount | grep Windows did not change after my attempt. Unfortunately, I’m still pretty ignorant to the ways of Linux. Don’t really understand the concept of a mount point. When I mount the drive now, I am prompted for and must enter my Windows login password, so I know that will have to be entered into fstab for this to work. I’m going to read up on “mount point” to try to get a basic understanding of the concept. Thanks again for your help.
From you first post I did not understand that you miss the basic understanding of the one and only directory tree of a running Unix/Linux system and how to create that by mounting file systems in that tree. I only thought you missed some details on how to “Automounting Windows 10 NTFS Drive at Bootup for Read/Write”.
BTW, I am rather flabbergasted by you saying
When I mount the drive now, I am prompted for and must enter my Windows login password,
I have no idea how that can be achieved. The Linux system will have no idea about your Windows password on this (using multi boot I assume) or on any other system.
Could it ve that the file system is encrypted and that the password to decrypt is asked for? But as I have no idea about Windows, this is only a wild guess. In any case I never heard or experienced that a password is asked for when a NTFS file system is mounted in Linux.
Maybe he was asked for the root password. I doubt it would be a Windows password. Also as a general rule always turn off fast boot also there may be problems if Dynamic disks are used in Windows.
If you want the partition to mount at boot it must be added to the /etc/fstab. Easiest way is via Yast partition management. By default this mounts it with root ownership (ie access) replace default with user parameter if want normal users to have access.
Note that Windows miss labels things all the time partitions are not Drives!!! But MS insists on calling partitions drives. I understand there is some historic justification but MS has made no effort to move forward.
Henk and gogalthorp,
Thanks for the info. I use the same login password for Windows and openSuse, so hence the confusion regarding the password. When I installed openSuse I disconnected my Windows hard drive for “safety”. Then after install, reconnected it and used the YAST Boot Loader utility to find Windows and set up GRUB.
Let’s face it, MS does all kinds of things to promote user ignorance (i.e. hiding file extensions for know file types be default).
So, am I mounting the Windows partition on the Windows drive? Is that the right way to describe it?
My fstab file has all the drives identified by UUID, so I need to get that for my Windows drive (physical hard drive) first. The current mount point seems to work fine, so I don’t see a reason to change it, unless that is needed to make it accessible without root password. Just need to insert a line into fstab that will be read at bootup and mount the drive. I would like it to be accessible with my user account, so I don’t have to enter my root password. I’m not interested in executing anything on the Windows partition, but do want to read/write.
I got it when I attempted to use YAST Partitioner to set up the automount. I think trying to use this might be less safe than just editing fstab directly. I have attached an image of my partitions as shown in YAST Partitioner. The partition with the Widows label is the one. What would I enter into fstab to have the partition mounted at bootup? If you think I should use the graphical interface, I can try again and post screenshots of what I’m selecting.
Yes, I am sure. I went into UEFI setup and fast boot option is disabled. Furthermore, the Windows disk is set up as a standard disk (not dynamic). In any case, I can and do mount the disk in Linux. I just would like to set it up to be automatic if that is easily doable.
While you are correct that fast boot in Windows will create a problem, that is not the case here, because he can mount it. The problem is he is until now not able to create a fstab entry that does what he wants.
And you need certainly more options. Look at post #3 above!
In any case user_id and group_id (but not with 0, which is root, but with the uid of dontosaw and the gid of users)…
I would also add nosuid, nodev, maybe relatime.