Jump to content
14 posts in this topic

Recommended Posts

try using disk utility. click on the partition you want to unmount on the left, then click the blue unmount button up top. If you have to do this at every boot, you can also write a script, or add lines in your rc.conf file, to do it manually from the terminal command line. :P If you need to learn about mounting from the command line, I suggest opening the terminal, and typing "man mount" or "man unmount" for the manual pages- they are very helpful.

 

edit: by the way, is your username a reference to Cowboy Beebop? I love that show! long live [adult swim]

I use this avatar of Spike on AIM sometimes. Feel free to copy it and use it if you like :(

beebop.gif

I have this applescript but it didn't work:

 

-------

tell application "Finder"

eject drive "BOOT"

end tell

-------

 

but it didn't work. I have no idea why.

 

And yes, my username is ref to cowboy bebob. Thanks for the image, but I have an image myself, I'll update my avatar.

did you try disk utility like I suggested? I think that script you have is telling the system to unmount the drive you booted from (which I don't think OS X will let you do, obviously).

ps- I like your avatar better anyway :P

Yes I can unmount just find in Disk Util. So how do I set it up to do this everytime at bootup? I search but can't find rc.conf.

 

I removed /System/Library/Filesystems/ntfs.fs folder so that took care of the NTFS partition, but the FAT32 partition is still there. So a little help here...

I would certainly put back your /System/Library/Filesystems/ntfs.fs folder if you ever want to use an NTFS drive again (even temporarily)

Sorry, in OS X the file I was referring to is /Private/etc/rc It runs at startup, and then checks to see if you have added a 'rc.local' file. I would not edit the 'rc' file, but in that directory, create your own rc.local, and any commands you include in that file will be run at startup- after the regular rc file.

One possible command you could add would be "umount -A" from the man page for umount: "All the currently mounted filesystems except the root are unmounted."

Also check out this post about doing exactly the opposite of what you need- it may help.

Have been messing with umount and rc.local, but so far no success.

 

It works in Disk util. When I boot up, I see two FAT32 partitions, DATA and BOOT. In Disk Util, I select the FAT32 partition named BOOT, and hit Unmount and its gone. Why can't this work in the shell. When I tried umount /Volumes/BOOT, it executed and in Disk Util I see the BOOT volume icon changes into a Folder icon, but the BOOT volume is still on the desktop and in the Finder. Very strange....

have you tried relaunching the finder afterwords? Apple menu>Force Quit> click on finder and press relaunch :dev:

good question. I have no idea, although i'm sure there is one... In freeBSD it would be something like kill [processid], so you would need to know the id of the finder process, as well as give the terminal command permissions to kill it... Not sure- that's above my head, but I'll keep it in mind and see what I find. :D

Well, restarting the finder through terminal is not so hard:

ps auxc | grep Finder

Will search and return the process line including the Finder. As in this result:

jbjonas 2624 0.0 0.7 354040 7324 ?? S 8:21PM 0:00.31 Finder

Then, it is easy to kill the Finder process by typing:

kill 2624

And the finder will promptly restart.

The problem here, is that the Process ID for the Finder is not always the same. Here it is 2624, but will restart with a new process ID... How to automate that to run at startup is the problem. I think the easy way would be through Applescript. Unfortunately I don't know enough about applescript yet, but I think I can code a short program in C, that will do the job. I'll see what I can do. If anyone else out there wants to help with the effort and/or knows applescript, please join in! :D

---I'm off to find my old C/C++ textbook, and refresh my memory---

good question. I have no idea, although i'm sure there is one... In freeBSD it would be something like kill [processid], so you would need to know the id of the finder process, as well as give the terminal command permissions to kill it... Not sure- that's above my head, but I'll keep it in mind and see what I find. :)

Ok I figured it out. I have 4 Partitions, listed below:

 

20G for XP (NTFS)

20G for OSX (Mac Extended Journaled)

35G for Shared Data (Fat32)

500M for Boot Drive (Fat32)

 

Now when in OSX, I don't want it to mount the XP and Boot Drive partition. So I made a file called rc.local and put in /etc. In the rc.local file, I have these two commands:

--------------

disktool -u disk0

disktool -m disk0s5

--------------

 

This first command unmounts all partitions except for OSX partition of course.

The second commad mounts the Shared Data partition.

You can find what the diskxxx ID is with Disk Utility's Get Info button.

 

Thats it. Now when OSX boots, it will run /etc/rc, which in it has the command rc.local near the end. And OSX will mount only the OSX and Shared Data partitions.

Great! Unfortunately, my system has partitions over multiple drives, and for some reason it assigns them different diskXsY numbers every boot. I have no idea why- I tried the same thing you have except, to automount partitions, and it never worked. I'm guessing if you have all the partitions on one disk, there is never a disk1, disk2, etc. so it always assigns the same numbers. :)

 

Check out my thread here to see my problem (which has seemed to almost have stopped mostly by itself...)

×
×
  • Create New...