Ask Your Question

Can I mount Windows at startup?

asked 2016-07-23 02:25:55 -0500

xCvl gravatar image

Running Fedora 24. Without any configuration, my dual boot Windows 10 partition shows up in Nautilus and will mount and load fine once I enter the root password. However, I'm really trying to streamline the dual boot and it would be nice if I could somehow set it up to mount every time I boot so I don't have to enter another password. Any way this is possible?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-07-23 02:48:58 -0500

sideburns gravatar image

That's a very good question. Yes, you can, and it's not that hard. All you need to do is edit /etc/fstab to add an entry for that filesystem and it will be mounted at boot. As an example, let's say that the partition is at sda1 and you want to mount it at /mnt/windows:

sudo mkdir /mnt/windows
sudo nano /etc/fstab

Of course, you can use whatever editor you prefer. Add a line at the bottom that looks roughly like this:

/dev/sda1    /mnt/windows    ntfs    defaults    0 0

Be sure that you hit Enter at the end of the line because mount won't process the line without it. Save your work, but don't exit. Then, in a different terminal run this command: sudo mount -a and if there aren't any errors, you can close that terminal and exit your text editor. If there are, you can make whatever corrections needed, save and try again until you've got it working. Once you have it working, your Windows partition will be mounted every time you boot.

When you first look at fstab, you'll see that the various columns are lined up, and I recommend that you stick to this format, not because it looks better but because it makes things easier to read.

edit flag offensive delete link more

answered 2016-07-24 19:29:18 -0500

terrycloth gravatar image

updated 2016-07-25 23:52:29 -0500

You can also do it with GNOME Disks.

Select the Windows drive in the left column. Then, if the Windows drive is split into partitions, look under Volumes and select the partition you want to mount (probably the biggest one). Then click on the gears icon and click on "Edit Mount Options...". You may need to turn the Automatic Mount Options switch to off. Then you can click the check box to enable "Mount at startup", and edit the "Mount Point" (where you want the Windows drive to appear in the file tree).

There are other settings available too, but unless you know you want or need to change them, you can probably leave the rest at their default value.

edit: If you're using Cinnamon as your desktop, you still probably have GNOME Disks installed, or could easily install it.

KDE Plasma users will probably prefer KDE Partition Manager, but it would be a similar process: Choose the drive and partition you want. Make sure it's not mounted -- click in the menu bar: Partition > Unmount. Then, Partition > Edit Mount Pint, and type in the mount point and click the checkboxes for the settings you want.

edit flag offensive delete link more


Note about mount points:

Flash drives and other automatically mounted storage devices usually get put in /run/media/Your_Username/ so it would be consistent to set your mount point to something like /run/media/Your_Username/Windows_Drive_Name.

However, you can set it to whatever you want. I personally like a mount point with a shorter path -- something like /media/Windows_Drive_Name.

terrycloth gravatar imageterrycloth ( 2016-07-24 19:37:49 -0500 )edit

Two comments: first, not all of us use Gnome, which is why my method doesn't depend on your DE. Second, /mnt was originally intended for all temporary mounts, long before /media existed and it seems reasonable to use if that way. Use whatever path you want, of course, but I wanted to explain my choice.

sideburns gravatar imagesideburns ( 2016-07-24 19:49:53 -0500 )edit

Sure, that's fine and good. I just wanted to add a solution that would work with a gui application :)

terrycloth gravatar imageterrycloth ( 2016-07-24 22:10:51 -0500 )edit

Question Tools

1 follower


Asked: 2016-07-23 02:25:55 -0500

Seen: 1,577 times

Last updated: Jul 25 '16