You are on page 1of 6

How do I mount a drive in read-only mode in U... https://www.quora.com/How-do-I-mount-a-drive-...

1
Home Answer Notifications Search Quora Ask Question

Unix Ubuntu (operating system) Linux Related Questions

How do I mount a drive in read-only mode in Why is Ubuntu 14.04 showing input-output error on a
Ubuntu? mounted drive?

This question previously had details. They are now in a comment. I have a VPS running Ubuntu 14.04 and my desktop
uses Mint. Is it possible to mount my VPS drive as a
Answer Request ▾ Follow 6 Comment 1 Downvote disk drive in Mint?

How do I get files to not open in read-only mode when


I'm opening them with gedit in Ubuntu?
6 Answers
Why does my Ubuntu Linux fail to mount a Windows
Jonti Savani, In L0V3 with Linux :P partition?
Answered Jul 19
How do I install Ubuntu 14.04 alongside my Windows
I know this was asked long time ago, but still. May help someone in future. 7 64-bit?

The thing is you really don’t need to mount the drive in ro mode, you can still mount How do I read MOBI files on Ubuntu?

that drive with all the access. Just follow along. How can I install Linux "Ubuntu" or else on a laptop
that doesn't read USB Drives or CDs?
There are two solution:
Can I install programs and save files with Ubuntu on a
Disabling the Fast Boot in Windows flash drive?

To disable disable Fast Boot, follow along: Why wont my Ubuntu Linux home folder decrypt with
the mount pass-phrase and root password?
Open the Control Panel (icons view), and click on the Power Options
How can I fix this Linux/Ubuntu error (mounting
icon.
128GB SD-Card) (installing exfat utils)?
Click on the Choose what the power buttons do link on the left side. (see
More Related Questions
screen-shot below)

Click on the Change settings that are currently unavailable link at the Question Stats
top. (see screen-shot below)
6 Public Followers
Under Shutdown settings, un-check the Turn on fast startup box, and
27,728 Views
click on the Save changes button.
Last Asked Oct 22, 2014

Edits

(Image: Fast Startup - Turn On or Off in Windows 8 )

Force mounting through terminal

Though turning off Fast Boot is permanent solution, I’d suggest to keep it


ON as that would help in lower booting time for Windows.

To mount Windows drive, type:


Upvote 13 Downvote

1 of 6 9/24/17, 5:23 PM
How do I mount a drive in read-only mode in U... https://www.quora.com/How-do-I-mount-a-drive-...

1
Home Answer Notifications Ask Question
Now try again re-mounting, it should mount with full access.

For more detailed answer, here you go.

Hope this helps.

1.3k Views · 2 Upvotes

Upvote 2 Downvote

Add a comment... Recommended All

Promoted by JetBrains
Powerful continuous integration out of the box.
TeamCity makes sure your software is built, tested, and deployed on time. Takes
moments to set up.

learn more at jetbrains.com

Bikash Gupta, Chemical Engineering Student,IIT Delhi,India


Answered Feb 22, 2015

step1:
First, click on the ‘Dash’ icon and search for the following term..
"disks"

Then as shown below, click on its icon to open the program..

step 2:
Once opened, on its main window, ‘Disks’ graphically shows you your current partition
layout.

Now simply choose the NTFS partition that you want to change the  permission of, then
click on the small gears icon slightly below it,  then from the menu choose: ‘Edit Mount
Options…’

Upvote 13 Downvote

2 of 6 9/24/17, 5:23 PM
How do I mount a drive in read-only mode in U... https://www.quora.com/How-do-I-mount-a-drive-...

1
Home Answer Notifications Ask Question

step 3:
1. From the next window that you get, move the  button to the left, under the option
‘Automatic Mount Options’, to get  access to the settings.
2. Now, remove the check-mark under the option ‘Mount at startup’.
You can let it stay enabled too, but I prefer to let Nautilus (file manager) mount the
NTFS partitions, after the desktop is loaded, to speed up the boot-up process .
3. Then, as shown in the below screenshot, you will see a field that says
‘nosuid,nodev,nofail,x-gvfs-show’.
Now all you have to do is, simply copy and paste the below code, and  add (paste) it to
the end of that text line (without a space).

,ro

Step 4:
Once done, click on the ‘OK’ button at the bottom, when asked enter your
administrative password, and now you are done!.
If you have more than one NTFS partition, then follow the same steps for setting up the
permission to each one individually.
Now try opening a NTFS partition in Nautilus (or any utility) and you  will notice that
you no longer can ‘Cut’ or ‘Delete’ files inside it,  as it is mounted with read-only
permissions.
How to disable it?
If later, you wanted to re-enable the read-write support, then simply  remove that
manually added ‘,ro’ code (or, you can also move that top  button to the right side, until
you see the option ‘ON), and save your  changes. That’s it!.
Note: Please remember this works in Ubuntu 12.10 and later versions only.

23.3k Views · 13 Upvotes

Add a comment... Recommended All


Upvote 13 Downvote

3 of 6 9/24/17, 5:23 PM
How do I mount a drive in read-only mode in U... https://www.quora.com/How-do-I-mount-a-drive-...

1
Home Answer Notifications Ask Question
Answered Oct 22, 2014

Using terminal :

First you create your directory to mount into :

$mkdir /media/foo

Then use the mount command to mount the drive in read-only mode :

$sudo mount --read-only /dev/sdb3 /media/foo

You can use "-r" or "-o ro" instead of "--read-only"

Refer to "man mount" for more info

Edit : Regarding your error - Ubuntu isn't able to mount the Windows NTFS partition as
Windows might be hibernated. So go to Windows, shut it down completely if you
haven't and then mount the drive on Ubuntu.

11.7k Views · 9 Upvotes

Upvote 9 Downvote

Add a comment... Recommended All

Marco Guardigli, Linux enthusiast and professional user


Answered Jan 11, 2016

0.use command line if you want to learn: open a root console

1.Create a mount point folder

#mkdir /tmp/win_c

2.Perform mount

#mount -o ro /dev/sdb2 /tmp/win_c

The read only option is "-o ro"

Optional is to indicate filesystem with "-t ntfs"

3.read/copy your files from /tmp/win_c

4.unmount when done

#umount /dev/sdb2

--

Your system is requiring you to mount read-only because windows partition has
hybernate data and can not be manipulated since it holds a live system status. Ntfs
volumes have a a specific flag to dignal this condition.

I do not understand which partition is your /dev/sdb3: maybe a windows data volume?

Error message in your picture is really confusing: errors in /dev/sdb3 and /dev/sda5:
typical example of simple things made complex by too many representation layers
(graphical interface).

Hint: Give to your mount points meaningful names within the source filesystem
context!! If windows C:\ drive is on /dev/sdb3 mount it on /mnt/win_c

4.7k Views · 1 Upvote

Upvote 1 Downvote

Add a comment... Recommended All

Upvote 13 Downvote
my router, and even on

4 of 6 9/24/17, 5:23 PM
How do I mount a drive in read-only mode in U... https://www.quora.com/How-do-I-mount-a-drive-...

1
Home Answer Notifications Ask Question

Generally it's a bad idea to suspend windows and try to mount the filesystem elsewhere,
the filesystem might not be in a consistent state.  I'd recommend virtualizing one OS
inside the  other or shutting down windows before starting linux.

But if you really want to try something like this at the command line:

sudo mkdir /mnt/tmp;

sudo mount -t ntfs -o ro /dev/sda5 /mnt/tmp

When done:

sudo umount /mnt/tmp

2.7k Views

Upvote Downvote

Add a comment... Recommended All

Gautam K, Technical Consultant


Updated Sep 13, 2016

You do not mount /dev/sda, that refers to the entire disk. You need to mount
/dev/sda1 or whatever partition you want.

Make a mount point.

1 sudo mkdir /media/secure

Mount

1 sudo mount -o ro /dev/sda1 /media/secure

Rafer: #man mount

1.7k Views

Upvote Downvote

Add a comment... Recommended All

1 Answer Collapsed (Why?)

Upvote 13 Downvote

5 of 6 9/24/17, 5:23 PM
How do I mount a drive in read-only mode in U... https://www.quora.com/How-do-I-mount-a-drive-...

1
Home Answer Notifications Ask Question

Top Stories from Your Feed

Answer written · Speed · 57m Answer written · Theoretical Physics · 3h Answer written · Indian Institutes of T... · Topic you
might like · Fri
Why is the speed of light the Can light have mass?
"cosmic speed limit"? What are the dirtiest secrets of
Mahesh Shenoy, Physix Teacher,
FloatHeadPhysix - Youtube IIT?
Sakshi Pandey, works at Student
Answered 57m ago Answered 3h ago Yash Bajaj, BTech Computer
Great answers. A small thing I need to add Science, Indian Institute of
One of the foundational axioms of the Technology, Kharagpur (2015)
theory of relativity is the existence of an though. Something that is extremely
Updated 22h ago · Upvoted by Vivek
invariantspeed: a speed that is the same important. What is mass? You need to Srivastava, B.Tech, Bachelor of

for all observers. As it turns out, particles know the answer to this question first, Technology Degrees, Indian Institutes of
Technology (2010)
with no rest mass, such as t... before you can digest the concept. Mass is
a... Indian
Education
system and the
media are
Read In Feed Read In Feed responsible for Read In Feed
the suicides of
Upvote 13 Downvote

6 of 6 9/24/17, 5:23 PM

You might also like