naming mapped drives on the Mac

Joined
Jul 29, 2011
Messages
5
Reaction score
0
Points
1
Hi,
I'm a new Mac user here at work. I've been a PC guy since Window 2.x, a long time. One thing I've always liked about Windows is that network drives can be named with letters. Drive G:, drive H:, drive Z:, etc. So, I know that Mac can easily network, too. I'd like to know if it's possible to name Mac network connections to my liking. Can I name a distant server/drive drive H:, for example?
Thanks.
 
Joined
Oct 22, 2007
Messages
8,967
Reaction score
287
Points
83
Location
London
Your Mac's Specs
Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
Drive letters are a hangover from Windows's DOS underpinnings from the 80s

OSX is a Unix based system and has no need for drive letters. Unix does give drives an identifier like disk2s1 but not drive letters.

Drive letters are just an old disk organisation scheme from the dawn of computing that you are probably just have to abandon
 
OP
P
Joined
Jul 29, 2011
Messages
5
Reaction score
0
Points
1
Drive letters are a hangover from Windows's DOS underpinnings from the 80s

OSX is a Unix based system and has no need for drive letters. Unix does give drives an identifier like disk2s1 but not drive letters.

Drive letters are just an old disk organisation scheme from the dawn of computing that you are probably just have to abandon

I understand. Thanks for your response. But, why would it be considered easier to go to a distant drive with "disk2s1" instead of just "G:," or any letter? I'm a fervent command shell user in Windows. Yes, you could call it DOS, but, it isn't. And, it's very easy to change drives by just typing in a letter. So, on a Mac, in the terminal window, how would I change over to another drive if it were called "disk2s1?"
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Let's take a look at this external mounted drive on my machine.


/dev/disk1s1 on /Volumes/SD1 (msdos, local, nodev, nosuid, noowners)



Ok, so in this case, to change directory to it in Terminal I would..

cd /Volumes/SD1


This is referred to as a mount point, and is represented in your file system as a directory under /Volumes. The /dev/disk1s1 is a device. If you try to cd to it, you can't.

mikeMBP:~ mike$ cd /dev/disk1s1
-bash: cd: /dev/disk1s1: Not a directory
 
OP
P
Joined
Jul 29, 2011
Messages
5
Reaction score
0
Points
1
Let's take a look at this external mounted drive on my machine.


/dev/disk1s1 on /Volumes/SD1 (msdos, local, nodev, nosuid, noowners)



Ok, so in this case, to change directory to it in Terminal I would..

cd /Volumes/SD1


This is referred to as a mount point, and is represented in your file system as a directory under /Volumes. The /dev/disk1s1 is a device. If you try to cd to it, you can't.

mikeMBP:~ mike$ cd /dev/disk1s1
-bash: cd: /dev/disk1s1: Not a directory


Hmm. Interesting. So, why do you say "/dev/disk1s1 on /Volumes/SD1?" If /dev/disk1s1 is the device, then, how is that device ON /Volumes/DS1?
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
it's mounted to /Volumes/SD1, in the same way that a windows drive is 'mounted' to D:

The difference?

In /dev it's a block FILE.
mikeMBP:~ mike$ ls -l /dev/disk*
brw-r----- 1 root operator 14, 0 Jul 30 19:21 /dev/disk0
brw-r----- 1 root operator 14, 1 Jul 30 19:21 /dev/disk0s1
brw-r----- 1 root operator 14, 2 Jul 30 19:21 /dev/disk0s2
brw-r----- 1 mike operator 14, 3 Aug 1 07:53 /dev/disk1
brw-r----- 1 mike operator 14, 4 Aug 1 07:53 /dev/disk1s1

In /Volumes, it's a directory.

total 104
lrwxr-xr-x 1 root admin 1 Jul 30 19:21 Macintosh HD -> /
drwxrwxrwx 1 mike staff 16384 Aug 1 07:53 SD1
drwx------ 1 mike staff 16384 May 2 19:11 STORAGE1
drwx------ 4 mike staff 264 Jul 25 04:00 Time Machine
drwxrwxrwx 1 mike staff 16384 Jul 29 12:21 export


Wiki's got a pretty decent description of how device files work...

Device file - Wikipedia, the free encyclopedia

Btw, you'll notice that /Volumes/Macintosh HD is a link to /
 
OP
P
Joined
Jul 29, 2011
Messages
5
Reaction score
0
Points
1
it's mounted to /Volumes/SD1, in the same way that a windows drive is 'mounted' to D:

The difference?

In /dev it's a block FILE.
mikeMBP:~ mike$ ls -l /dev/disk*
brw-r----- 1 root operator 14, 0 Jul 30 19:21 /dev/disk0
brw-r----- 1 root operator 14, 1 Jul 30 19:21 /dev/disk0s1
brw-r----- 1 root operator 14, 2 Jul 30 19:21 /dev/disk0s2
brw-r----- 1 mike operator 14, 3 Aug 1 07:53 /dev/disk1
brw-r----- 1 mike operator 14, 4 Aug 1 07:53 /dev/disk1s1

In /Volumes, it's a directory.

total 104
lrwxr-xr-x 1 root admin 1 Jul 30 19:21 Macintosh HD -> /
drwxrwxrwx 1 mike staff 16384 Aug 1 07:53 SD1
drwx------ 1 mike staff 16384 May 2 19:11 STORAGE1
drwx------ 4 mike staff 264 Jul 25 04:00 Time Machine
drwxrwxrwx 1 mike staff 16384 Jul 29 12:21 export


Wiki's got a pretty decent description of how device files work...

Device file - Wikipedia, the free encyclopedia

Btw, you'll notice that /Volumes/Macintosh HD is a link to /

OK. Thanks a lot.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top