Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cdrom(3) [plan9 man page]

CDROM(3)						     Library Functions Manual							  CDROM(3)

NAME
cdrom - CD-ROM disk interface SYNOPSIS
bind -a #Rn /dev /dev/cdn bind -a #m /dev /dev/cd /dev/cdctl DESCRIPTION
The SCSI CD-ROM disk interface (#R) serves a one-level directory for a SCSI target holding a CD-ROM drive. Each drive is represented as a single file named #Rn/cdn, where n is the target number. A separate attach is necessary for each drive. On PCs, Panasonic, Matsushita, and Mitsumi CD-ROM drives connected to a Sound Blaster 16, Pro, MCD, or ACX card are also supported. This interface (#m) device serves a data file, #m/cd, and a control file, #m/cdctl. The control file is read-only and contains a string stating the type of drive and its port number. The driver determines the type of CD-ROM drive by a parameter in plan9.ini; see plan9.ini(8). SOURCE
/sys/src/9/port/devcdrom.c /sys/src/9/pc/devsbcd.c SEE ALSO
9660srv in dossrv(4), pip(8) CDROM(3)

Check Out this Related Man Page

SDL_CDOpen(3)							 SDL API Reference						     SDL_CDOpen(3)

NAME
SDL_CDOpen - Opens a CD-ROM drive for access. SYNOPSIS
#include "SDL.h" SDL_CD *SDL_CDOpen(int drive); DESCRIPTION
Opens a CD-ROM drive for access. It returns a SDL_CD structure on success, or NULL if the drive was invalid or busy. This newly opened CD- ROM becomes the default CD used when other CD functions are passed a NULL CD-ROM handle. Drives are numbered starting with 0. Drive 0 is the system default CD-ROM. EXAMPLES
SDL_CD *cdrom; int cur_track; int min, sec, frame; SDL_Init(SDL_INIT_CDROM); atexit(SDL_Quit); /* Check for CD drives */ if(!SDL_CDNumDrives()){ /* None found */ fprintf(stderr, "No CDROM devices available "); exit(-1); } /* Open the default drive */ cdrom=SDL_CDOpen(0); /* Did if open? Check if cdrom is NULL */ if(!cdrom){ fprintf(stderr, "Couldn't open drive: %s ", SDL_GetError()); exit(-1); } /* Print Volume info */ printf("Name: %s ", SDL_CDName(0)); printf("Tracks: %d ", cdrom->numtracks); for(cur_track=0;cur_track < cdrom->numtracks; cur_track++){ FRAMES_TO_MSF(cdrom->track[cur_track].length, &min, &sec, &frame); printf(" Track %d: Length %d:%d ", cur_track, min, sec); } SDL_CDClose(cdrom); SEE ALSO
SDL_CD, SDL_CDtrack, SDL_CDClose SDL
Tue 11 Sep 2001, 22:58 SDL_CDOpen(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Stupid Question?

I have a SparcStation 10 and it came with an external CD Rom Drive. I am trying to install Solaris 2.6 Server on this machine from the Cd Rom. At the OK> prompt I type "boot cdrom - browser" and I get an error: scsi device not found:error = -1 or something to that effect. Does anyone have any... (9 Replies)
Discussion started by: jskillet
9 Replies

2. UNIX for Dummies Questions & Answers

please help with openbsd 2.9

Please help. I have downloaded the openbsd 2.9 snapshot from ftp.openbsd.org. the following files were downloaded from the snapshot dir. ( the whole dir. was downloaded ) base29,bsd,bsd.rd,cdrom29.fs,cksum,comp29,etc29,all three floppy images,game29,index,install.ata,install.chs... (11 Replies)
Discussion started by: Blunt_Killer
11 Replies

3. UNIX for Dummies Questions & Answers

still cant get the solaris cdrom!!

ok here is what i do and get: # mount /dev/sd6a /cdrom mount /dev/sd6a write-protected ok so what do i do its a external cdrom and its on scsi number 6. its a SparcSTATION 2. we're trying to put red hat sparc 6.2 on it but it wont boot. i am about to take the hard drives out and install it a... (8 Replies)
Discussion started by: wixifer
8 Replies

4. UNIX for Dummies Questions & Answers

cdrom problems..

im running suse 8.1 and im having problems with my cdrom drives. i have one pextor12/10/32 cd burner, and one 8x generic ATAPI cdrom. i have the cdburner in /etc/fstab as /dev/cdrecorder and it mounts to /media/cdrecorder/ i have the cdrom in fstab as /dev/cdrom and it mounts to: (you guessed it)... (10 Replies)
Discussion started by: norsk hedensk
10 Replies

5. Solaris

Installation//I can't see my CDROM!!!

Hi All, Here's one that's got me confounded. It's on a Sun Fire 280R running Solaris 9. Problem: After some sysadmins (remotely) decided to disable the automount feature on one of my servers, I can't mount cdrom drive, nor the data on the disk I need to install. Steps so far: (Comments... (9 Replies)
Discussion started by: geralex
9 Replies

6. Solaris

Can't boot from cdrom at ok prompt

I want to install Solaris 9 on SUN ULTRA 10. The cdrom is attached to an ide controller. The server is currently running Solaris 2.6 I insert Solaris cd 1 of 2 and at the ok prompt I type boot cdrom i get the error below Boot device: /pci@1f,0/pci@1,1/ide@3/cdrom@2,0:f file and args:... (11 Replies)
Discussion started by: Msororaji
11 Replies

7. Solaris

not able to boot from cdrom

Hi all am trying to boot the system from cdrom in single user mode , however when i am giving command boot cdrom -s i am getting below error Boot Device: /pci@1f,0/pci@1,1/ide@3/cdrom@2,0: f file and args: Can't read disk label Can't open disk label package can,t open boot device ... (17 Replies)
Discussion started by: kumarmani
17 Replies

8. Filesystems, Disks and Memory

"modprobe -r cdrom" error.

hello all, i used modprobe -r usb-storage its working properly but when i use the same command with cdrom module as modprobe -r cdrom it is giving error as Fatal error:module cdrom in use, but i dont have any thing in rom and not using it. thanx. (9 Replies)
Discussion started by: zius_oram
9 Replies

9. Solaris

CDROM will not eject - says device busy

Hi, I've seen similar posts on this board about ejecting CDROMs but I've tried the solutions people suggested but still cannot eject the CD. It's stuck in a production box so I can't reboot it... bash-3.00# eject -f cdrom /vol/dev/dsk/c0t0d0/sol_10_106_sparc/s0: Device busy bash-3.00#... (14 Replies)
Discussion started by: jimmy54321
14 Replies

10. Solaris

Cannot boot from CDROM nor get to OK prompt SunV210

Server need to have the OS reinstalled (5.10 SPARC) and I cannot get it to the OK prompt. I also do not have the ALOM password and I've tried several different methods to zero out the NVRAM but to no avail. There is no ALOM battery that I can pull. I'm connecting via Cutecom (like minicom) and... (18 Replies)
Discussion started by: LittleLebowski
18 Replies

11. Solaris

Solaris 10 on CDROM?

Hello, First i'm Dutch, and my English is not very well. Sorry. :D I have got a Sun Microsystems Ultra 3D (with SPARC processor). The file must be burned to a DVD. And my computer can onley read a cd. How to get Solaris 10 on a few cds? Please help me. Thanks a lot.. Greets. (21 Replies)
Discussion started by: TomW
21 Replies

12. SCO

Install Hang OpenServer 6 - SATA CDROM

Hi all Can anybody offer any help with installing Openserver 6 on a Supermicro server? I am familiar with installing OS5, but this is my first time with v6. The PC is fitted with Supermicro X8DTL-I Dual Xeon motherboard and 2 Xeon E5620 processors, and 16Gb Ram, LSI MegaRaid SAS8708 8 port... (11 Replies)
Discussion started by: millosman
11 Replies

13. SCO

Getting error sco unix 507 from cdrom:no controller for device you chosen

Installing SCO UNIX 507 on Dell Poweredge T610. It has no floppy so I downloaded the BTLD onto CD from SCO site to load without floppy drive. BTLD loads ok. when i get to the Media to be used, no matter what option i chose i get the error: No controller for device you have chosen. During bootup you... (9 Replies)
Discussion started by: romanglad112
9 Replies

14. Solaris

Cannot recover root passwd through serial console mode by using CDROM

hi i cant recovery root passwd through serial console mode by using CDROM.. i tried following step but no luck in ok prompt : ok boot cdrom -s it comes single user mode i check format cmd it showing disk c1t0d0 c1t2d0 then #mount /dev/dsk/c1t0d0s0 /a #cd /a # vi /etc/shadow ( it... (13 Replies)
Discussion started by: coolboys
13 Replies

15. UNIX for Beginners Questions & Answers

Cannot boot cdrom -s

Good Afternoon, I'm trying to boot from cdrom so I: bash-2.05# init 0 {1} ok boot cdrom -s and I get: Rebooting with command: boot cdrom -s Boot Device: /pci@1e,600000/ide@d/cdrom@2,0:f File and args: -s Can't read disk label. Can't open disk label package Evaluating: Can't open boot... (13 Replies)
Discussion started by: Stellaman1977
13 Replies