LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-31-2003, 08:31 PM   #1
babysealclubber
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 10.2
Posts: 24

Rep: Reputation: 15
/dev/dvd is /dev/cdrom?


mount /dev/cdrom /mnt/cdrom

That's just great.

But mounting /dev/dvd to a mount point mounts the cdrom device, not the dvd device.. what gives? How do you mount a DVD?
 
Old 10-31-2003, 10:56 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,329

Rep: Reputation: 141Reputation: 141
/dev/dvd is just a link to a true hardware device. Do:

$ ls -l /dev/dvd

to see what it links to. The reason for the link is that many programs that play dvds look for a /dev/dvd by convention. /dev/dvd should link to the /dev/hdx that is your dvd drive.
 
Old 10-31-2003, 11:16 PM   #3
glennardo
Member
 
Registered: Oct 2003
Location: Jakarta, Indonesia
Distribution: Slackware 13.37
Posts: 50

Rep: Reputation: 15
Re: /dev/dvd is /dev/cdrom?

Quote:
Originally posted by babysealclubber
mount /dev/cdrom /mnt/cdrom

That's just great.

But mounting /dev/dvd to a mount point mounts the cdrom device, not the dvd device.. what gives? How do you mount a DVD?
or d'ya mount somethin' like
as root :
#ln -s /dev/cdrom /dev/dvd

???
 
Old 10-31-2003, 11:23 PM   #4
babysealclubber
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 10.2
Posts: 24

Original Poster
Rep: Reputation: 15
Code:
mount /dev/cdrom /mnt/cdrom
and

Code:
mount /dev/dvd /mnt/dvd
Both do the same thing.

Code:
bash-2.05b$ ls -l /dev | grep dvd
lrwxrwxrwx    1 root     root            8 Oct 29 23:05 dvd -> /dev/sr0
bash-2.05b$ ls -l /dev | grep cdrom
lrwxrwxrwx    1 root     root            8 Oct 29 23:05 cdrom -> /dev/sr0
And that's why. Does anyone have any idea what the device actually is?

Last edited by babysealclubber; 10-31-2003 at 11:25 PM.
 
Old 10-31-2003, 11:30 PM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
hte link target says it. It's /dev/sr0 on your machine. It's one and the same drive, right? So it's no puzzle.
 
Old 10-31-2003, 11:39 PM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,329

Rep: Reputation: 141Reputation: 141
/dev/sr0 is usually another link to /dev/scd0 so you have a double link going which is not all that unusual with cdrom devices:

/dev/dvd --> /dev/sr0 --> /dev/scd0

Check it with:

$ ls -l /dev/sr0

Ultimately you'll get back to a hardware device you recognize, here, /dev/scd0 a scsi emulated cd drive.
 
Old 11-01-2003, 12:35 AM   #7
babysealclubber
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 10.2
Posts: 24

Original Poster
Rep: Reputation: 15
But only hdc is scsi emulated. hdd is my DVD drive. They should be seperate devices. Both cdrom and dvd point to sr0.

bash-2.05b$ ls -l /dev/sr0
brw-r----- 1 root disk 11, 0 Apr 12 1999 /dev/sr0

sr0 doesn't point to anything else.

bash-2.05b# mount -t auto /dev/scd0 /mnt/cdrom
mount: block device /dev/scd0 is write-protected, mounting read-only

This mounts my cdrom. scd1 doesn't exist because I don't have the DVD drive scsi emulated.

The DVD drive device has to exist somewhere. I don't see why both dvd and cdrom are symlinked to the same device when they're two seperate devices.
 
Old 11-01-2003, 12:40 AM   #8
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
do you have two physical drives or is it a combo drive?

If you have separate drives, you can link /dev/dvd to /dev/hdd. Actually, you can even do it if it is a combo drive - I do it. First remove /dev/dvd and then:
ln -s /dev/hdd /dev/dvd

This will link /dev/dvd to /dev/hdd and you can enable dma for your dvd drive by enabling it for /dev/hdd (is this what you want to do?).
 
Old 11-01-2003, 12:47 AM   #9
babysealclubber
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 10.2
Posts: 24

Original Poster
Rep: Reputation: 15
You guys are fast to reply... anyway, I figured it out in a roundabout way. I ran k3b as root and looked at what devices it probed for writer and reader devices (they're completely seperate physical drives, yes) and it found my CDRW, which was /dev/scd0, like I thought, and the DVD was /dev/hdd. Only thing now is how to give k3b full access to the devices so I can run it as a user... I bet that's a good search topic.

I was going to try just mounting /dev/hdd the first time, but that would have been too obvious so I never tried it...

That's almost as bad as when someone asked me how to check mail in local mailboxes:

"mail, duh"

Don't I feel retarded.

Thanks guys. Just goes to show that even if you can't help someone, you make them frustrated enough to look harder and find what they're looking for.

peace

Last edited by babysealclubber; 11-01-2003 at 12:48 AM.
 
Old 12-19-2008, 12:55 AM   #10
mshumer
LQ Newbie
 
Registered: Oct 2004
Distribution: Suse 9.0
Posts: 1

Rep: Reputation: 0
I am running Ubuntu 8.04.1 on acer aspire one and am having the same problems. Couldn't get acidrip or mplayer to run DVD. /dev/dvd didn't exist. I looked at properties of the DVD that popped up on desktop when I plugged in usb. Found it at /media/cdrom0 plugged that into acidrip and everything worked peachy!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mount /dev/hdc /dev/cdrom doesn't work ShrikesHarvest Linux - Newbie 10 02-21-2009 08:05 AM
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 08:11 PM
No cdrom/dvd in /dev satinet Linux - Hardware 12 01-12-2005 06:54 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 09:36 PM
my dvd rom is dev/cdrom ! biggyfries Linux - Hardware 5 08-01-2003 07:59 PM


All times are GMT -5. The time now is 08:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration