Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have Linux running on a machine on which eComStation is also installed. I wish to designate one partition of the eComStation installation for data transfer between the two OSes. At the moment I want the transfer to be in one direction only, so I want to mount the transfer partition witout write permission for anyone, including the superuser.
Mounting the partition in Linux is no problem:
<mount -t hpfs /dev/sda12 /home/stan/importdata>.
But the default is to mount with write permission, which I don't want. As I read the man page for mount, I should be able to alter this by adding the r option behind the -t:
<mount -tr hpfs /dev/sda12 /home/stan/importdata>.
But this gets me a referral back to the man page, so clearly I am misunderstanding, although it seems simple enough. What is it that I am misunderstanding?
you would need to specify the -r seperately from the -t as the -t needs to know that hpfs parameter. personally i would say use "-o ro" with is passing a standard "read only" flag as an option. as far as your syntax
Originally posted by david_ross You should be able to mount it with the ro (read only) option - just add "-o ro" to your mount command or "ro" to the options column of /etc/fstab
Interesting. The man page says merely that "-o ro" is a synonym for "-r", implying that the latter is at least as valid as the other. I'll try your suggestion, for which many thanks.
Originally posted by acid_kewpie you would need to specify the -r seperately from the -t as the -t needs to know that hpfs parameter. personally i would say use "-o ro" with is passing a standard "read only" flag as an option. as far as your syntax
Ach!! Very clear. I should have seen that the way I had it broke the association between the "t" and its argument.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.