PDA

View Full Version : Using Unix to switch between internal hard drives




smurray444
Mar 5, 2009, 04:56 AM
Dear all,

I'm using a MacPro with 4 internal hard drives. How is it possible when using Unix to change between the hard drives? If I use 'cd ..' I can get to the very top of the directory of my default hard drive (number 1) but there doesn't appear to be an option to switch between hard drives.

Any help would be much appreciated.

Thanks,

Steve



robbieduncan
Mar 5, 2009, 05:02 AM
In Unix there is only ever a single root (/). All other drives are mounted within this. In OSX they are mounted in /Volumes/. So do


cd /Volumes/
ls


and you should see a list of all mounted volumes (other hard drive, network mounts etc)

LtRammstein
Mar 5, 2009, 01:33 PM
I prefer:

ls /Volumes/

ChrisA
Mar 5, 2009, 04:36 PM
I prefer:

ls /Volumes/

Even simpler...

Type "cd" and then drag and drop the disk drive icon into the terminal. The drop operation will type in the correct text for you. You can also drop any finder folder and the full path to the folder is dropped onto the current prompt line.

Cromulent
Mar 5, 2009, 05:04 PM
Dear all,

I'm using a MacPro with 4 internal hard drives. How is it possible when using Unix to change between the hard drives? If I use 'cd ..' I can get to the very top of the directory of my default hard drive (number 1) but there doesn't appear to be an option to switch between hard drives.

Any help would be much appreciated.

Thanks,

Steve

All drives in Unix are mounted below / so if you at the root directory ( / ) then you can see all the drives in the computer including CD / DVD-ROMs / USB drives etc etc. In Mac OS X drives are mounted under /Volumes but in Linux they are often mounted under /mount don't get confused when switching between systems :).