Re: slash
Re: slash
- Subject: Re: slash
- From: Axel Luttgens <email@hidden>
- Date: Sat, 07 Jul 2012 01:26:41 +0200
Le 6 juil. 2012 à 22:32, Luther Fuller a écrit :
> I've just tried these ...
>
> POSIX file "/" --> file "OS_X:"
>
> and
>
> (POSIX file "/") as alias --> alias "OS_X:"
>
> with the results you see. It seems that "/" must be the startup disk.
It is often the startup disk, but not necessarily.
> But what is the official definition of "/" ?
> I've Googled, but found nothing.
The Unix metaphor is that, ultimately, everything may be described as a hierarchy of directories and files; as a result, one needs a starting point, i.e. the root directory denoted as "/".
Adding a new drive (e.g. connecting an external USB drive) may then be handled, for example, through a pseudo file "/dev/rdisk1" for accessing the raw characteristics of that drive.
If that drive has a valid filesystem of a known type, the hierarchy of directories and files residing on that drive may be grafted somewhere under the root directory, for example at "/Volumes/MyDisk" as Mac OS X conventionally does in the most usual cases (a drive with multiple logical volumes is handled in a similar way).
But this also means that the root of the filesystem is somewhat arbitrary: once sufficiently loaded from some drive (or volume), the OS may choose to elect another drive (or volume) as the root of its filesystem. This is for example the case for Lion with FileVault: the OS boots from a helper volume (which in fact is the "startup disk"), then elects the "true" volume as the root of its filesystem.
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >slash (From: Luther Fuller <email@hidden>) |