Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My other hard drive partition (i.e., the Windows partition) is located in /media/OS. However, I don't seem to be able to access it from the command line when my machine starts up in Ubuntu. I have to first open Nautilus and then click on the drive. Only then can I access the drive from the command line.

  • What is a simple way to ensure that the partition is always accessible from the command-line?

I thought perhaps there might be some simple command that I could add to the list of "startup applications".

share|improve this question
add comment

3 Answers

This is because your Windows partition is not mounted automatically when you started your Ubuntu. It is only mounted when you clicked on that drive in Nautilus. Trying this guide -> https://help.ubuntu.com/community/AutomaticallyMountPartitions to mount your Windows partition during startup.

share|improve this answer
add comment

From commandline you can do

sudo mount -t ntfs-3g /dev/sdx1 /media/OS

instead of going to nautilus. Replace /dev/sdx1 with your the windows partition.

Easy setup of auto mounting NTFS partitions taken from Here:

sudo apt-get install ntfs-config
sudo ./ntfs-config
share|improve this answer
add comment

Edit /etc/fstab. If you not sure What to put there, mount it first in nautilus, and see output of mount command.

share|improve this answer
add comment

Your Answer

 
discard

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.