Unmount Windows drive automatically during OS X boot up (or make it not mount at all)

  • Hey guys,


    The title says it all, do you know which one is the best way to do it?
    My Windows drive is 7200RPM, and with an other 7200RPM one together (plus an 5400RPM backup drive) they make the house (Fractal Design R4 XL) vibrate as hell, so I don't need Windows to be mounted all the time.
    Yes, and how to mount it, if I need it?


    Cheers!

    Gigabyte Z77-DS3H [Ozmosis 167X] - i5 3570k - HD3000 - 8GB Corsair Vengeance 1600Mhz - Samsung 840 Pro 256GB SSD [OS X 10.11.2] / 1TB Seagate HDD [symlinked user folders] / 1TB Seagate HDD [Windows 8.1] / 1TB WD Green HDD [Time Machine]

  • Just rename the drive in windows and put a . infront of the name and OS X will not show it anymore

  • You mean OS X won't mount it? Is it possible then to mount it, in case I need to access it from OS X?
    I was hoping for a terminal command.. :)

    Gigabyte Z77-DS3H [Ozmosis 167X] - i5 3570k - HD3000 - 8GB Corsair Vengeance 1600Mhz - Samsung 840 Pro 256GB SSD [OS X 10.11.2] / 1TB Seagate HDD [symlinked user folders] / 1TB Seagate HDD [Windows 8.1] / 1TB WD Green HDD [Time Machine]

  • a leading dot just hides it but its mountet anyway.
    If you really want to prevent OSX from mounting it go to the Terminal and type

    Code
    1. sudo diskutil info /Volumes/TheNameOfOurWinHD


    and copy paste the UUID of the windows Volume to a text-file
    then edit (again in the Terminal) the fstab

    Code
    1. sudo nano /etc/fstab


    go to the line where the UUID matches and change "rw,auto" to "rw,noauto"
    save it and reboot
    Cheers,
    6F

    Kein Privatsupport via PN, bitte stellt eure Fragen im Forum !
    Als MacPro5.1 [OSX 10.9.5 & 10.10]: GA Z77X-UD5H OZ, i7-3770, Corsair 16Gb DDR3, HD4000, Samsung 840Pro 256GB, Seagate 1TB, IR&Wifi v. MBP.
    Ein MacMini 2012 [OSX 10.10]: i5, 4Gb Ram, HD4000, Webcam Logitech C615.

    Lenovo T450 [Manjaro i3wm]

  • For the command

    Code
    1. sudo diskutil info /Volumes/WIN 8


    I get:


    Usage: diskutil info[rmation] [-plist]
    MountPoint|DiskIdentifier|DeviceNode|UUID
    Display detailed information about a disk or partition.
    Root access is not required.


    Looks like no UUID comes up (by the way the Windows drive is not displayed in Ozmosis GUI either, if it helps).

    Gigabyte Z77-DS3H [Ozmosis 167X] - i5 3570k - HD3000 - 8GB Corsair Vengeance 1600Mhz - Samsung 840 Pro 256GB SSD [OS X 10.11.2] / 1TB Seagate HDD [symlinked user folders] / 1TB Seagate HDD [Windows 8.1] / 1TB WD Green HDD [Time Machine]

  • this is because the shell interpretes the blank between Win AND 8
    uncomment the blank like this:

    Code
    1. sudo diskutil info /Volumes/WIN\ 8


    cheers,
    6F

    Kein Privatsupport via PN, bitte stellt eure Fragen im Forum !
    Als MacPro5.1 [OSX 10.9.5 & 10.10]: GA Z77X-UD5H OZ, i7-3770, Corsair 16Gb DDR3, HD4000, Samsung 840Pro 256GB, Seagate 1TB, IR&Wifi v. MBP.
    Ein MacMini 2012 [OSX 10.10]: i5, 4Gb Ram, HD4000, Webcam Logitech C615.

    Lenovo T450 [Manjaro i3wm]

  • okay, that one worked, but for some reason it doesn't display the UUID:


    [hide]

    [/hide]

    Gigabyte Z77-DS3H [Ozmosis 167X] - i5 3570k - HD3000 - 8GB Corsair Vengeance 1600Mhz - Samsung 840 Pro 256GB SSD [OS X 10.11.2] / 1TB Seagate HDD [symlinked user folders] / 1TB Seagate HDD [Windows 8.1] / 1TB WD Green HDD [Time Machine]

    Einmal editiert, zuletzt von neoyoli ()

  • okay just do

    Code
    1. cat /etc/fstab

    and paste the output in a forum code-window please.
    6F

    Kein Privatsupport via PN, bitte stellt eure Fragen im Forum !
    Als MacPro5.1 [OSX 10.9.5 & 10.10]: GA Z77X-UD5H OZ, i7-3770, Corsair 16Gb DDR3, HD4000, Samsung 840Pro 256GB, Seagate 1TB, IR&Wifi v. MBP.
    Ein MacMini 2012 [OSX 10.10]: i5, 4Gb Ram, HD4000, Webcam Logitech C615.

    Lenovo T450 [Manjaro i3wm]

  • this comes up:


    Code
    1. cat: /etc/fstab: No such file or directory

    Gigabyte Z77-DS3H [Ozmosis 167X] - i5 3570k - HD3000 - 8GB Corsair Vengeance 1600Mhz - Samsung 840 Pro 256GB SSD [OS X 10.11.2] / 1TB Seagate HDD [symlinked user folders] / 1TB Seagate HDD [Windows 8.1] / 1TB WD Green HDD [Time Machine]

  • my fault :

    Code
    1. sudo cat /etc/fstab


    6F

    Kein Privatsupport via PN, bitte stellt eure Fragen im Forum !
    Als MacPro5.1 [OSX 10.9.5 & 10.10]: GA Z77X-UD5H OZ, i7-3770, Corsair 16Gb DDR3, HD4000, Samsung 840Pro 256GB, Seagate 1TB, IR&Wifi v. MBP.
    Ein MacMini 2012 [OSX 10.10]: i5, 4Gb Ram, HD4000, Webcam Logitech C615.

    Lenovo T450 [Manjaro i3wm]

  • Same thing 8|

    Code
    1. cat: /etc/fstab: No such file or directory

    Gigabyte Z77-DS3H [Ozmosis 167X] - i5 3570k - HD3000 - 8GB Corsair Vengeance 1600Mhz - Samsung 840 Pro 256GB SSD [OS X 10.11.2] / 1TB Seagate HDD [symlinked user folders] / 1TB Seagate HDD [Windows 8.1] / 1TB WD Green HDD [Time Machine]

  • okay, so we have to write a new fstab like this:

    Code
    1. sudo nano /etc/fstab


    and paste this line in the newly created fstab

    Code
    1. /dev/disk1s1 none ntfs ro,noauto


    When you are done press Control + X to exit and press “Y” to say “yes” to save changes, then hit return to save.
    6F

    Kein Privatsupport via PN, bitte stellt eure Fragen im Forum !
    Als MacPro5.1 [OSX 10.9.5 & 10.10]: GA Z77X-UD5H OZ, i7-3770, Corsair 16Gb DDR3, HD4000, Samsung 840Pro 256GB, Seagate 1TB, IR&Wifi v. MBP.
    Ein MacMini 2012 [OSX 10.10]: i5, 4Gb Ram, HD4000, Webcam Logitech C615.

    Lenovo T450 [Manjaro i3wm]

  • done, what's next? (I tried to check UUID again)

    Gigabyte Z77-DS3H [Ozmosis 167X] - i5 3570k - HD3000 - 8GB Corsair Vengeance 1600Mhz - Samsung 840 Pro 256GB SSD [OS X 10.11.2] / 1TB Seagate HDD [symlinked user folders] / 1TB Seagate HDD [Windows 8.1] / 1TB WD Green HDD [Time Machine]

  • reboot :D

    Kein Privatsupport via PN, bitte stellt eure Fragen im Forum !
    Als MacPro5.1 [OSX 10.9.5 & 10.10]: GA Z77X-UD5H OZ, i7-3770, Corsair 16Gb DDR3, HD4000, Samsung 840Pro 256GB, Seagate 1TB, IR&Wifi v. MBP.
    Ein MacMini 2012 [OSX 10.10]: i5, 4Gb Ram, HD4000, Webcam Logitech C615.

    Lenovo T450 [Manjaro i3wm]

  • okay, I rebooted, and still no UUID and the disk still mounts. I'm ready for the next task :)
    (I checked with TinkerTool and it is set to not mount automatically, so there must be some weird thing going on)


    UPDATE: I found an easy solution: made an Automator app to eject the drive, and added the script to the login items :thumbsup:


    Thanks for the input guys!

    Gigabyte Z77-DS3H [Ozmosis 167X] - i5 3570k - HD3000 - 8GB Corsair Vengeance 1600Mhz - Samsung 840 Pro 256GB SSD [OS X 10.11.2] / 1TB Seagate HDD [symlinked user folders] / 1TB Seagate HDD [Windows 8.1] / 1TB WD Green HDD [Time Machine]

    4 Mal editiert, zuletzt von neoyoli ()

  • It's specific for the drive, but it's a very easy process:


    1. open Automator - New Document - choose document type as Application
    2. drag the drive in the workflow window
    3. in Actions on the left, go to Files and Folders-Eject Disk - drag it under the drive workflow that has been created previously
    4. save it and put in the Login Items in System Preferences/Users and Groups


    That's it!


    One thing though, this does not eject the disk when the computer wakes from sleep, so the disk gets mounted again.
    Is there any way to eject it also when waking up?

    Gigabyte Z77-DS3H [Ozmosis 167X] - i5 3570k - HD3000 - 8GB Corsair Vengeance 1600Mhz - Samsung 840 Pro 256GB SSD [OS X 10.11.2] / 1TB Seagate HDD [symlinked user folders] / 1TB Seagate HDD [Windows 8.1] / 1TB WD Green HDD [Time Machine]

  • There is a little command line tool called sleepwatcher available (just ask google) which is designed to run scripts on sleep/wake.

  • griven

    Hat das Label Erledigt hinzugefügt