1

I recently installed Ubuntu 13.10 alongside Windows 8.1 and I had a question about preventing the unmounting of my windows drive. When I go into the file browser (I think it's called nautilus. It's the Ubuntu default one, anyways), I see my Windows drive on the left panel. However, it has a little eject icon next to it. I'm afraid I'm going to accidentally click that button and completely wreck my windows partition. Is there any way to remove this button and make that drive permanently mounted (or at least make it harder to unmount it)? Thanks!

Eliah Kagan
  • 117,780
Globmont
  • 175
  • 1
  • 12
  • 2
    Why do you think you will wreak anything? It won't let you unmount a volume if it is in use. – psusi Jan 20 '14 at 02:01
  • But isn't it unused when I'm running Ubuntu? I don't have any files from my Windows partition running. Or am I missing something? – Globmont Jan 20 '14 at 02:46
  • There's nothing to worry if you accidentally click the button to eject the partition as long as you don't delete or overwrite anything on this partition. – Minh Danh Jan 20 '14 at 03:52
  • If you don't have any files open on it, then you are allowed to unmount it, if you are using files on it, then it won't let you unmount it. – psusi Jan 20 '14 at 04:14
  • 3
    Close-voters: This question is not unclear. We know what the OP was thinking and what his/her concerns are. The other comments here reflect that understanding, plus it's possible to answer this and I have done so. I've rewritten the title to make this even more clear. – Eliah Kagan Jan 20 '14 at 12:07

1 Answers1

3

You can go ahead and unmount your Windows partition. That will not hurt anything. Unmounting a partition means making it no longer accessible to currently running system until it is mounted again.

This should have no effect on the Windows system itself. Unmounting a partition does not damage it in any way. Unmount does not mean anything like format or erase.

Therefore there is no reason for you try to to prevent yourself from unmounting it by accident. The damage you're worried about will not occur just from the partition being unmounted.

As psusi explained, the only situation where it would be harmful to unmount a partition is if there are open files on it that need to be written to disk before the partition is unmounted. But when that is the case, Nautilus will not unmount the partition when you click the "eject" button on it. So whether or not and to whatever extent you're using files on your Windows partition when booted into your Ubuntu system, this is not a problem either.


To clarify further, you asked:

So just to be sure, if I do press the button, it should automatically remount when I boot into Windows again?

Yes.

Or, more precisely: Whether or not your Windows partition is mounted in your Ubuntu system is completely unrelated to what happens when you actually use Windows.

Windows must (in a sense) mount this partition every time you boot into Windows, whether or not it was mounted before in Ubuntu. In fact, your Windows partition, like all your other mounted partitions, is automatically unmounted when you shut down or reboot your Ubuntu system.

Whether or not a partition is mounted is almost entirely a matter of what state the currently running operating system is in, not of what state the partition itself is currently in. When your Windows partition is mounted in Ubuntu, this means Ubuntu can access data on it. It has nothing at all to do with what Windows can do, next time it runs.

Totally optional reading: I say "almost entirely" since some types of partitions keep information on the disk about whether or not they're currently mounted, so that if they are not unmounted when they should be, like during reboot, automatic corrective action can be taken. Such repairs apply to situations where a partition is not unmounted as needed, rather than those where the partition is unmounted. Specifically, when you write a file to a partition, it's possible the file will not be (fully) written to disk until the partition is unmounted.

Eliah Kagan
  • 117,780
  • Thanks! So just to be sure, if I do press the button, it should automatically remount when I boot into Windows again? – Globmont Jan 20 '14 at 14:52
  • @Globmont That's correct. I've added a section to my answer with further clarifying details. In short, not only is it not harmful for you to unmount your Windows partition, but it is unmounted automatically every time Ubuntu shuts down. – Eliah Kagan Jan 20 '14 at 15:57
  • Thanks a lot! I'm no longer scared of Nautilus :P – Globmont Jan 20 '14 at 16:00
  • hi @eliah-kagan while ejecting external drive, sometimes I accidentally eject mounted ext4 partition (auto mounted at boot time through /etc/fstab) where I store virtual machines. Is there way to prevent unmounting of a partition using /etc/fstab option or some other way. Thanks. – Jags Sep 10 '23 at 13:24