Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dvd problem
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
enchong
Tux's lil' helper
Tux's lil' helper


Joined: 31 Oct 2004
Posts: 97

PostPosted: Mon Mar 14, 2005 11:32 am    Post subject: dvd problem Reply with quote

hi guys!

i have bought a dvd-writer to replace my old cdrom. i installed it and it was running fine. the problem is, it is detected as /dev/cdroms/cdrom0. my friend told me that it should be something like /dev/dvd. how do i tell gentoo to recognize my new dvd drive as dvd and not as my old cd drive?

thanks!
_________________
it's all in the mind...
Back to top
View user's profile Send private message
SubTexel
n00b
n00b


Joined: 28 Jan 2003
Posts: 72
Location: Hampton, VA

PostPosted: Mon Mar 14, 2005 11:42 am    Post subject: Re: dvd problem Reply with quote

enchong wrote:
hi guys!

i have bought a dvd-writer to replace my old cdrom. i installed it and it was running fine. the problem is, it is detected as /dev/cdroms/cdrom0. my friend told me that it should be something like /dev/dvd. how do i tell gentoo to recognize my new dvd drive as dvd and not as my old cd drive?

thanks!


Create a new entry in fstab, pointing it to /dev/dvd. Have you tried burning any DVDs with it? And if so did it work? If you arent really having any problems with it why worry.. But if it is just a purely cosmetic thing just create the entry in fstab. (Mine was detected the same way under 2.4 linux, but worked just fine.. Under 2.6 it is detected as sr0, and I point it to /dev/dvd and all is fine..)
_________________
Linux Registered user: 221337
Back to top
View user's profile Send private message
pdr
l33t
l33t


Joined: 20 Mar 2004
Posts: 618

PostPosted: Mon Mar 14, 2005 3:40 pm    Post subject: Reply with quote

Just make symbolic link for /dev/dvd that links to the device (for me: /dev/cdroms/cdrom0, which is itself a symbolic link). EG:

Code:
ln -s /dev/cdroms/cdrom0 /dev/dvd


Note that fstab (file system table) is for describing mount points - "shortcuts" to how to mount something into the root file system. Lots of software (mplayer, xine, etc) do not need the device mounted, just that it be defined in the device filesystem so they can directly access the device (ie don't need a mounted directory such as /mnt/dvd).

For other software (eg: dvd:rip) you will want a mount point defined in fstab for it. You could probably (?) use the one for your cd, but I just define a new entry that will mount /dev/dvd to the mount point /mnt/dvd (had to use mkdir to define that mount point). Now if software needs it, it can do "mount /mnt/dvd" and it will work.
Back to top
View user's profile Send private message
enchong
Tux's lil' helper
Tux's lil' helper


Joined: 31 Oct 2004
Posts: 97

PostPosted: Tue Mar 15, 2005 3:27 pm    Post subject: Reply with quote

thanks for your reply guys!

so what you mean is i should only make a link? shouldnt gentoo detect my dvd drive as a dvd drive and place a /dev/dvd file? or should i be the one to make that?

thanks!
_________________
it's all in the mind...
Back to top
View user's profile Send private message
pdr
l33t
l33t


Joined: 20 Mar 2004
Posts: 618

PostPosted: Tue Mar 22, 2005 3:31 am    Post subject: Reply with quote

I had to make my /dev/dvd symlink myself.
Back to top
View user's profile Send private message
enchong
Tux's lil' helper
Tux's lil' helper


Joined: 31 Oct 2004
Posts: 97

PostPosted: Tue Mar 22, 2005 1:57 pm    Post subject: Reply with quote

ok. thanks! will do what you did!

regards,
enchong
_________________
it's all in the mind...
Back to top
View user's profile Send private message
r3pek
Retired Dev
Retired Dev


Joined: 17 Sep 2003
Posts: 568
Location: Lisbon - Portugal

PostPosted: Tue Mar 22, 2005 3:18 pm    Post subject: Reply with quote

The name is not important.... just use the correct device in the recorder application.

[joking]
in my computer i did:
ln -sf /dev/cdroms/cdrom0 /dev/devtosavepr0n
and all works well :P
[/joking]
Back to top
View user's profile Send private message
enchong
Tux's lil' helper
Tux's lil' helper


Joined: 31 Oct 2004
Posts: 97

PostPosted: Wed Mar 23, 2005 3:22 am    Post subject: Reply with quote

right on man! hahaha!

ill try naming it /dev/porn for a change! hahaha

thanks for the idea!
_________________
it's all in the mind...
Back to top
View user's profile Send private message
allywilson
n00b
n00b


Joined: 28 Feb 2005
Posts: 25

PostPosted: Wed Mar 23, 2005 8:49 pm    Post subject: Reply with quote

Having a similar problem...

Have a DVD-ROM / CDRW combo drive.

Can mount CDs OK, but cannot mount DVDs!
Keep on getting the error
Quote:
mount: wrong fs type, bad option, bad superblock on /dev/cdroms/cdrom0,
or too many mounted file systems

What's that about?!

I didn't have a "/dev/dvd" so I created a symlink (in desperation) for it...same error.
I have the following in my fstab:
Quote:
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0


Do I need to do a seperate one for the DVD, even though it's the same drive? Just doesn't seem right...anyway, I have the symlink so...

Anyone got any ideas?

Cheers for any help,

~A~
Back to top
View user's profile Send private message
allywilson
n00b
n00b


Joined: 28 Feb 2005
Posts: 25

PostPosted: Wed Mar 23, 2005 9:15 pm    Post subject: Reply with quote

oh...it works if I mount /dev/dvd rather than /dev/cdroms/cdrom0 - craziness...

Anyone care to guess how mount seemed to know the difference with the FS just by the name?



~A~
Back to top
View user's profile Send private message
pdr
l33t
l33t


Joined: 20 Mar 2004
Posts: 618

PostPosted: Sat Mar 26, 2005 3:38 pm    Post subject: Reply with quote

I would suspect it is the filesystem type listed in /etc/fstab for your mount point...
Back to top
View user's profile Send private message
firephoto
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1612
Location: +48° 5' 23.40", -119° 48' 30.00"

PostPosted: Sat Mar 26, 2005 8:24 pm    Post subject: Reply with quote

If you are using udev it's better to create the symlinks with a rule.
Here's my rules for my internal and external burners.
Code:

# cat /etc/udev/rules.d/10-local.rules
KERNEL="hdc", GROUP="cdrw", SYMLINK="dvd%n dvdrw%n cdroms/cdrom%n"
BUS="scsi", KERNEL="sr*", SYSFS{model}="DVD_RW ND-3520AW", NAME="%k", GROUP="cdrw",
 SYMLINK="dvd%n dvdrw%n cdroms/cdrom%n"

#**long line split**

So the first one just sets the group and adds symlinks to /dev/dvd /dev/dvdrw /dev/cdroms/cdrom but it allows the default rules to be ran too since it doesn't specify a "NAME" (thanks udev rule guide!). The second one sets everything so I don't get something different if I power cycle the external drive or unlplug it and plug it back in (it showed up as sr1 once when I was setting it up).
Back to top
View user's profile Send private message
allywilson
n00b
n00b


Joined: 28 Feb 2005
Posts: 25

PostPosted: Tue Mar 29, 2005 5:04 pm    Post subject: Reply with quote

Contrary to my earlier post...it no longer works for me...

Get the same error...
Quote:
mount: block device /dev/cdroms/cdrom0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/cdroms/cdrom0,
or too many mounted file systems



What craziness is this!?

~A~

Edit: My filesystem listed for cdroms/cdrom0 is set to "auto"...
Back to top
View user's profile Send private message
allywilson
n00b
n00b


Joined: 28 Feb 2005
Posts: 25

PostPosted: Tue Mar 29, 2005 5:11 pm    Post subject: Reply with quote

OK...something crazy is going on...

Got a bit frustrated...so I repeated the mount command 3 times in a row (as quick as possible mind you), as my drive would light up for a second...then...it mounted on the third try!

How could it mount on the third try?!

Someone...somewhere...answer these crazy questions!

~A~
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