Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Unix&Linux>>How to figure out devicename for my CDROM

How to figure out devicename for my CDROM

AYee
05-19-2005, 11:12 AM
Hi,

I am a Darwin/Unix newbie - but do understand DOS, hardware, and programming.

I have an Xserve computer with 10.3.9 (server OS) installed, and need to install development software from a CD.

My previous software distribution was on floppies, so someone figured out that devicename for a usb floppy was rdisk1. I was able to tar the software to the right place (root user and all that fun stuff.)

Now the current distribution is on a CD, and the instructions are for a simple copy - but how can I figure out the devicename? Will a ls command for a devicename work? I kinda of figured out that is should be rdisk0, rdisk1, or rdisk2, but I like to learn the correct way to figure out devicenames.

Thanks,

hayne
05-19-2005, 11:25 AM
You usually don't need to know about this sort of stuff. But one possibility to figure out the device name is to list the contents of /dev before and after you mount the CD and look at the difference. Or maybe 'df' will show you.

Note also that mounted drives show up under /Volumes, so try doing:
ls -l /Volumes
and then you could probably just use standard file paths for installation.

But let's step back a bit. I'm guessing that the real problem is that you are trying to administer an XServe from a remote login - i.e. you don't have the usual graphical environment.
You could make things much easier on yourself by installing VNC on the XServer and then using a VNC client on your local machine to show the screen of the XServe.
Note that you probably already have Apple Remote Desktop (ARD) installed on the XServe and this allows use of an ARD client from any Mac to do the same thing as above. And I have read that ARD uses VNC so it isn't even necessary to use a Mac as client - VNC clients are freely available for all platforms.

See also this old thread:
http://forums.macosxhints.com/showthread.php?t=35224

AYee
05-19-2005, 11:50 AM
Thanks for the quick reply - my problem is really simple.

I do have access to the xserve - the instructions to copy the files is:
cp -r /devicename/* .

where devicename should be my CDROM drive.

I was trying to figure out how to figure out all my devices so I do not have to hunt for them in the future.

Select and copy via GUI (in the root account) may be all I need to do - I was worried that the unix copy may be more complete then the GUI copy....

I will try the commands you noted.

hayne
05-19-2005, 12:18 PM
I was worried that the unix copy may be more complete then the GUI copy
No - in fact before Tiger, the Unix 'cp' command did not handle the "resource forks" that are present in some (usually older) Mac software, so use of Unix 'cp' would not copy everything.
Since you are on 10.3.9, that would apply to you. You should only use 'cp' for files that you know don't have resource forks. That would of course be true for any standard Unix software/files.

AYee
05-19-2005, 04:14 PM
Found the devicename - the ls /dev did the trick.

For those interested, the devicename is "dynamic". The first device mounted (CDROM) gets rdisk1, second mounted (floppy) gets rdisk2. If you restart the machine, and mount floppy first, it gets rdisk1, etc.

Hal Itosis
05-19-2005, 09:39 PM
Found the devicename - the ls /dev did the trick.
Ewwww... the output from that one is rather gawdy.

Maybe diskutil list or disktool -l would be a bit nicer.

-HI-

AYee
05-19-2005, 10:25 PM
Nicer, but not the info I needed.

df, disktool, and diskutil are giving me identifiers and information associated to them, not the devicename. But these commands interesting information that I may need in the future.

smoothtape
05-26-2005, 07:06 PM
Nicer, but not the info I needed.

df, disktool, and diskutil are giving me identifiers and information associated to them, not the devicename. But these commands interesting information that I may need in the future.
the command is:

df -h


 

TOP

Windows Server Outsell
Unix Signals And C++ E

For more info

Unix Signals And C++ E
Windows Server Outsell
ssh setup for password
Bash script does not w
esc code 
ARD send unix command 
question about binarie
Scanning mail 
Issuing multiple comma
How do I install Linux

News Archive

/etc/hosts? 
Manually Start a Start
mounting missed hard d
Using Netinfo in Singl
darwin/bsd login probl
system_profiler and fi
Send mail from script 
mounting a drive 
OS X disk first aid ha
system.log shows steal

Related stories:

simple use of grep & cp commands question
ditto or just drag and drop
Problem opening text files from command line using nedit
Output system.log in terminal
cron running tasks twice simultaneously!
How do you mount an SMB share in terminal?
Changing my shell to Bash

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics