InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   [How To] Prevent a partition from mounting at boot (http://infinitemac.com/showthread.php?t=801)

Dies 09-18-2008 07:53 PM

Yes, just using labels is much easier to wrap your head around, easier to set and easier to remember. UUID must have some advantages over labels since everything is moving in that direction but I haven't found them yet.

Two things I found out while excluding my Windows partition from mounting. Thought maybe they could be added to the first post so others don't have to go searching?

From Leopard on you need to use vifs to create and edit /etc/fstab, or at least you should.
Code:

sudo vifs
Also, you might find that /etc/fstab is ignored and your partition still mounts. Two things to try

Code:

sudo defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisksWithoutUserLogin -bool true
Instead of using "none" for the mountpoint use the normal location i.e. /Volumes/WindowsXP along with the ro,noauto options.

Also, MacFUSE/NTFS-3G is awesome, a little slow compared to the normal NTFS-3G but still.

Voyn1x 09-18-2008 09:05 PM

Cheers Dies i didn't know about vifs. Guide updated. :)

zuz242 10-17-2008 10:51 PM

Quote:

Originally Posted by Voyn1x (Post 9564)
From Leopard on you need to use vifs to create and edit /etc/fstab, or at least you should]

Well, nice tutorial but it took me a while to get vifs to do what i wanted.
I had no idea of the commands used in the vi(fs) editor. Google helped ;)

But maybe you could add the 3 commands for vi in your tut.
"i" for insert mode,
"esc" for switching back to command mode
":wq" for saving

Aydinz 10-30-2008 07:50 AM

can the label option be used for NTFS as well? because one of my NTFS drives doesnt have a UUID. and also just so im clear i enter "sudo vifs" into terminal put in the label commands to unmount the disks then type is :wq to save the file and then reboot my system and it should all work?

Voyn1x 10-30-2008 02:24 PM

Label will work, but you'll also need to change the fs type to ntfs:

Code:

LABEL=name_of_volume none ntfs ro,noauto
I'm going to update the first post with this. :)

scififan68 10-31-2008 03:30 AM

Can I use this tutorial for a Fat16 partition? :)

Aydinz 10-31-2008 06:31 AM

how do i save the command after i have written in what i want?

nfoav8or 10-31-2008 06:50 AM

1. shift+"i" to insert/edit text.
2. edit
3. esc to quit the editing/insertion.
4. ":s /etc/fstab" to save over the old fstab.

do it in this order.

demigod 01-09-2009 12:56 PM

i added LABEL=WinXp /Volumes/WinXp/ ntfs rw,noauto 0 0
this in /etc/fstab using sudo vifs and also executed this "sudo defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisksWithoutUserLogin -bool true" in terminal still it's not unmounting it automatically..

what should i do to unmount it automatically.

Voyn1x 01-09-2009 02:22 PM

Have you tried using none for the mount point?