Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] How to access my cd/dvd drive?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
chief_officer
n00b
n00b
User avatar
Posts: 10
Joined: Wed Jun 07, 2006 6:05 am
Location: 127.0.0.1

[SOLVED] How to access my cd/dvd drive?

  • Quote

Post by chief_officer » Sat Jun 10, 2006 6:43 pm

Friends,

I'm continuing my n00b questions.

I am unable to cd to my dvd drive. Here is my

Code: Select all

dmesg | grep CD
output:

Code: Select all

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: Select all

cd /dev/hdc
the output is bash: cd: /dev/hdc is not a directory. Then I try

Code: Select all

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.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Jun 10, 2006 6:59 pm

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: Select all

/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: Select all

ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 Jun 10 09:48 /dev/cdrom -> h
You will need to

Code: Select all

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: Select all

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: Select all

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.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic