SliTaz SliTaz Forum

You are not logged in.

#1 2012-02-12 15:55:09

totoetsasoeur
Moderator
Registered: 2011-03-29
Posts: 247

Can not read any CD/DVD

Hi,

I got 2 optical drives installed:

- a DVD drive,

- CD drive.

I am unable to play neither CDs nor DVDs. For example here is the output of mplayer:

[c]tux@slitaz:~$ mplayer dvd://1
MPlayer UNKNOWN-4.5.2 (C) 2000-2010 MPlayer Team
MMX supported but disabled
MMX2 supported but disabled
3DNow supported but disabled
3DNowExt supported but disabled

Playing dvd://1.
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Could not open /dev/dvd with libdvdcss.
libdvdread: Can't open /dev/dvd for reading
Couldn't open DVD device: /dev/dvd (No medium found)
No stream found to handle url dvd://1

Exiting... (End of file)
tux@slitaz:~$[/c]
=> it indicates that something is wrong with /dev/... After investigating, I found that:

[c]tux@slitaz:~$ eject /dev/dvd[/c]

Results in ejecting  the wrong drive. Actually it opens the CD drive tray instead of the DVD tray.

Here is where the /dev/dvd points to:

[c]tux@slitaz:~$ ls -l /dev/dvd
lrwxrwxrwx    1 root     root             8 Dec 10 18:53 /dev/dvd -> /dev/hdd
tux@slitaz:~$[/c]
=> this link to /dev/hdd looks strange to me.

If you have any idea, let me know.

Tkx

Offline

#2 2012-03-02 22:03:07

totoetsasoeur
Moderator
Registered: 2011-03-29
Posts: 247

Re: Can not read any CD/DVD

Some news :-).

The two drives are attached as:

[c]tux@slitaz:~$ wodim --devices
wodim: Overview of accessible drives (2 found) :
-------------------------------------------------------------------------
0  dev='/dev/hdc'      rwrw-- : 'ASUS' 'DRW-1608P'
1  dev='/dev/hdd'      rwrw-- : 'MATSHITA' 'DVD-ROM SR-8586'
-------------------------------------------------------------------------
tux@slitaz:~$[/c]
But the /dev/dvd is linked to the wrong drive. I need to use /dev/hdc (ASUS one):

[c]tux@slitaz:~$ ls -l /dev/dvd
lrwxrwxrwx    1 root     root             8 Dec 10 18:53 /dev/dvd -> /dev/hdd
tux@slitaz:~$[/c]
Does anyone knows how or in wich config file I can set to the correct drive mapping (dev/dvd -> dev/hdc).

Thank for helping.

Offline

#3 2012-03-03 00:19:50

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Can not read any CD/DVD

#ln -sf /dev/hdc /dev/dvd

FYI this is how SliTaz symlinks to drive.

/etc/int.d/rcS :

133 # Create /dev/cdrom if needed (symlink does not exist on LiveCD).

134 # Also add /dev/cdrom to fstab if entry does not exist.

135 if [ -n "$CDROM" ]; then

136 DRIVE_NAME=${CDROM#/dev/}

137 else

138 DRIVE_NAME=$(fgrep -s "drive name" /proc/sys/dev/cdrom/info | cut -f 3)

139 fi

140 if [ -n "$DRIVE_NAME" -a ! "[c]readlink /dev/cdrom[/c]" ]; then

141 echo -n "Creating symlink : /dev/cdrom..."

142 ln -s /dev/$DRIVE_NAME /dev/cdrom

143 ln -s /dev/$DRIVE_NAME /dev/dvd

144 status

145 fi

Offline

#4 2012-03-03 19:34:17

totoetsasoeur
Moderator
Registered: 2011-03-29
Posts: 247

Re: Can not read any CD/DVD

thx mojo for the info.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]