Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Disable write-caching on removable drives?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="SUparJErk" data-source="post: 1163413" data-attributes="member: 184663"><p>I have a MacBook Pro running OS X 10.6.5, and would like to disable write-caching (asynchronous I/O) on removable drives so as to help prevent data corruption, but have so far been unsuccessful. Here's what I have tried so far:</p><p></p><p>- Looked for an Apple-provided setting in System Preferences -- doesn't seem to be anything there.</p><p></p><p>- Looked for /etc/fstab to change default mount options. /etc/fstab.hd exists, but contains only a comment telling me the file does nothing and should be ignored.</p><p></p><p>- Found this section in /etc/autofs.conf: </p><p></p><p>[CODE]# Mount options.</p><p># A string containing a comma-separated list of mount options</p><p># that will be applied, by default, to all mounts done by automountd(8).</p><p># The options for a particular mount can override these options.</p><p># This controls the same default mount options that the -o option to</p><p># automountd(8) controls.</p><p>AUTOMOUNTD_MNTOPTS=nosuid,nodev[/CODE]</p><p>I tried changing the final line to read:</p><p>[CODE]</p><p>AUTOMOUNTD_MNTOPTS=nosuid,nodev,noasync[/CODE]</p><p>but even after a reboot, plugging in a drive, and running the "mount" command in the Terminal, the drive was mounted without the noasync option.</p><p></p><p>- I tried just manually mounting the drive in Terminal with the following command:</p><p>[CODE]sudo mount -o noasync -t hfs /dev/disk1s3 temp[/CODE]</p><p>But this gives me the following error: </p><p>[CODE]mount_hfs: -o async: option not supported[/CODE]</p><p></p><p>This one is particularly baffling, as the -o option I passed in was definitely "noasync", not "async". Also, the man page for mount clearly documents that "async" and "noasync" are both supported options. Why are they not functioning??</p><p></p><p>I welcome any suggestions. Thanks in advance.</p></blockquote><p></p>
[QUOTE="SUparJErk, post: 1163413, member: 184663"] I have a MacBook Pro running OS X 10.6.5, and would like to disable write-caching (asynchronous I/O) on removable drives so as to help prevent data corruption, but have so far been unsuccessful. Here's what I have tried so far: - Looked for an Apple-provided setting in System Preferences -- doesn't seem to be anything there. - Looked for /etc/fstab to change default mount options. /etc/fstab.hd exists, but contains only a comment telling me the file does nothing and should be ignored. - Found this section in /etc/autofs.conf: [CODE]# Mount options. # A string containing a comma-separated list of mount options # that will be applied, by default, to all mounts done by automountd(8). # The options for a particular mount can override these options. # This controls the same default mount options that the -o option to # automountd(8) controls. AUTOMOUNTD_MNTOPTS=nosuid,nodev[/CODE] I tried changing the final line to read: [CODE] AUTOMOUNTD_MNTOPTS=nosuid,nodev,noasync[/CODE] but even after a reboot, plugging in a drive, and running the "mount" command in the Terminal, the drive was mounted without the noasync option. - I tried just manually mounting the drive in Terminal with the following command: [CODE]sudo mount -o noasync -t hfs /dev/disk1s3 temp[/CODE] But this gives me the following error: [CODE]mount_hfs: -o async: option not supported[/CODE] This one is particularly baffling, as the -o option I passed in was definitely "noasync", not "async". Also, the man page for mount clearly documents that "async" and "noasync" are both supported options. Why are they not functioning?? I welcome any suggestions. Thanks in advance. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Disable write-caching on removable drives?
Top