Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How to access my cd/dvd drive?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
chief_officer
n00b
n00b


Joined: 07 Jun 2006
Posts: 10
Location: 127.0.0.1

PostPosted: Sat Jun 10, 2006 6:43 pm    Post subject: [SOLVED] How to access my cd/dvd drive? Reply with quote

Friends,

I'm continuing my n00b questions.

I am unable to cd to my dvd drive. Here is my
Code:
dmesg | grep CD
output:

Code:
hdc: TOSHIBA DVD-ROM SD-C2502, ATAPI CD/DVD-ROM drive
Uniform CD-ROM driver Revision: 3.20


from here I see that my dvd drive is /dev/hdc. Then I try to
Code:
cd /dev/hdc
the output is bash: cd: /dev/hdc is not a directory. Then I try
Code:
ls -l /dev/hdc
and then the output is brw-rw---- 1 root cdrom 22, 0 Jun 10 20:58 /dev/hdc. All my final naive attemptsto reach my dvd fail.

There is a simple point I am missing but I can't figure out. Can somebody point me to the right direction?

Regards,


Last edited by chief_officer on Thu Jun 15, 2006 6:13 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sat Jun 10, 2006 6:59 pm    Post subject: Reply with quote

chief_officer,

A few things, your CD/DVD is a block device like any other, its accessed the same way.
You need an entry in /etc/fstab like
Code:
/dev/cdrom      /mnt/dvd        iso9660,udf     noauto,ro,users         0 0

You should find that /dev/cdrom is a symbolic link to /dev/hdc like this
Code:
ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 Jun 10 09:48 /dev/cdrom -> h
You will need to
Code:
mkdir /mnt/dvd
if it does not exist.

With that right, you can put a data CD/DVD in the drive and as any user, do
Code:
mount /mnt/dvd
to make the content of the media available at /mnt/dvd. The other information the mount requires is read from /etc/fstab.
Code:
mount /dev/cdrom
will also work.

You need kernel support (module or built in) for iso9660 and udf filesystesms.

There is one exception to the above - Audio CDs. They do not have a filesystem and cannot be mounted. CD players use raw device access to control the drive to play the CD. You need to be in the cdrom group. Video DVDs are played this way too. They do have filesystems that match the data on the disk but dvd players do raw device access to play the film, so such DVDs need not be mounted either.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum