Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I need to know which drive is the System drive.

Is it safe to assume that / is always the system drive ? Or in some situation (for example booting from a FW drive) / is not the drive were the system is. thanks.

share|improve this question
    
Off topic, go to stackoverflow. –  houbysoft Sep 12 '12 at 0:40
    
Yeah ... the same post was closed/deleted there. And since it's a OS X global question ... It might have more its place here. –  Matthieu Riegler Sep 12 '12 at 0:40
1  
Did they give a reason? Anyways, / is by definition the path of the drive from which you booted. –  houbysoft Sep 12 '12 at 0:43
    
No the post was just deleted right after I got closed ... But thx for your answer. –  Matthieu Riegler Sep 12 '12 at 0:44
add comment

1 Answer

up vote 1 down vote accepted

The basic answer is yes, although it depends a bit on exactly what you mean by "system drive". A few versions ago, Apple introduced what they call "Boot≠Root"; I can't find much documentation on it, but the basic idea is that OS X can load the booter file from one volume, then use a different volume as the operating system root.

For instance, when your startup volume is encrypted with FileVault 2, it actually loads the booter from a different volume (the hidden "Recovery HD" volume); the booter decrypts the startup volume, and then loads the operating system from the encrypted volume.

The rule is that / will always refer to the volume you are running the operating system from, just not necessarily the one that the boot process started from. This applies whether you're starting from an internal disk, FireWire disk, USB disk, NetBoot disk image, disk image,... whatever.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.