Jump to content

[How To] Auto-Mount only selected partitions. Two Methods


28 posts in this topic

Recommended Posts

I just installed iatkos v7 (updated to 10.5.8) and I have a dual boot going just great with Windows 7 64bit. However I cannot get auto unmount to work no matter what i try with fstab. It worked with the login script but I want to do it via the fstab method. Windows 7 creates 2 partitions, System Reserved and the Windows partition. OSX sits under its own partition. Windows 7 is of course NTFS.

 

Last login: Thu May 27 17:29:44 on console
   joes-imac:~ Joe$ diskutil list
   /dev/disk0
	  #:					   TYPE NAME					SIZE	   IDENTIFIER
	  0:	 FDisk_partition_scheme						*596.2 Gi   disk0
	  1:			   Windows_NTFS System Reserved		 100.0 Mi   disk0s1
	  2:			   Windows_NTFS Windows				 439.4 Gi   disk0s2
	  3:				  Apple_HFS OSX					 156.7 Gi   disk0s3
   joes-imac:~ Joe$

 

And this is what is in my fstab:

 

	 joes-imac:~ Joe$ cat /etc/fstab
 LABEL=Windows none ntfs ro,noauto
LABEL=System/040Reserved none ntfs ro,noauto
 joes-imac:~ Joe$

 

I've tried finding UUID but its not listed anywhere (in disktutil or Disk Utility). I should note I have NTFS-3G and Macfuse installed because I need to access my external USB harddrive. Could that be the cause? I've tried adding the "rw" switch instead of "ro" but it didnt help. Fstab is in the right place, perhaps the permissions are not correct?

 

Also, am I doing the spaces thing right with the 040 thing?

Link to comment
Share on other sites

  • 2 weeks later...

Sucessory! I figured out what I was doing wrong. Since I have NTFS-3G installed so I can use my external USB harddrive, I didnt realize that the filesystem was renamed. It was looking for an NTFS one, but when you install NTFS-3G/Macfuse I guess it changes the name to "NTFS-3G".

 

   joes-imac:~ Joe$ cat -e /etc/fstab
  LABEL=Windows none ntfs-3g rw,noauto$
  LABEL=System\040Reserved none ntfs-3g rw,noauto$

 

I also had the \040 thing wrong, by using / instead of \. Now both partitions dont mount on boot. No more damn .trashes and .DS_store files on my Windows disk! (well they'll still show up on the USB drive though).

Link to comment
Share on other sites

  • 1 year later...

Hi, I have used the method 2 but now I can not undo it.

If i use the command

sudo defaults delete com.apple.loginwindow LoginHook.

 

There is no (LoginHook.) default for the (com.apple.loginwindow) domain.

Defaults have not been changed.

 

Thanks,

 

Vasco

Link to comment
Share on other sites

 Share

×
×
  • Create New...