LinHES Forums
http://forum.linhes.org/

Confused about where/if USB-DVD needs to be mounted/symlinkd
http://forum.linhes.org/viewtopic.php?f=6&t=8675
Page 1 of 1

Author:  HappyTalk [ Thu Feb 23, 2006 11:03 am ]
Post subject:  Confused about where/if USB-DVD needs to be mounted/symlinkd

I have a usb-dvd it is detected OK at sr0 according to dmesg

Code:
EXT3 FS on hda4, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
  Vendor: LITE-ON   Model: DVDRW SOHW-832S   Rev: CG3E
  Type:   CD-ROM                             ANSI SCSI revision: 00
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0


mplayer dvd:// -dvd-device %d ... plays a DVD fine from optical menu so it is working. I cannot get xine to work though nor MPEG4 CD. I think this is cos the DVD needs to be setup properly. There is NO mount entry in the fstab at the moment so do I add one and WHERE is it best to mount it and do I then symlink /dev/cdrom & /dev/dvd to this etc etc

I note at the moment I have the following relevant files
Code:
lrwxrwxrwx  1 root root 4 Feb 23 15:20 sr0 -> scd0
lrwxrwxrwx  1 root cdrom 8 Jan  7 23:26 /dev/cdrom -> /dev/hdb
lrwxrwxrwx  1 root cdrom 8 Jan  7 23:26 /dev/dvd -> /dev/hdb
brw-rw----  1 root cdrom 3, 64 Jan  7 23:24 hdb
drwxr-xr-x  2 root root 4096 Feb  3 16:37 /cdrom


I'm thinking is this what I want to do?

Code:
# mount -t iso9660 /dev/sr0 /cdrom
# ln -sf /dev/sr0 /dev/cdrom
# ln -sf /dev/sr0 /dev/dvd

Author:  HappyTalk [ Thu Feb 23, 2006 5:01 pm ]
Post subject: 

OK I have worked it out now. I needed to add this line to /etc/fstab for my usb dvd rom.
Code:
/dev/sr0 /cdrom auto user,noauto 0 0

Then changed the /usr/local/bin/divx.sh script to
    #!/bin/bash
    mount /cdrom
    /usr/bin/mplayer -monitoraspect 16:9 -ao alsa:device=digital -ac hwac3, -fs -zoom -vo xv -cache 8192 /cdrom/*
    umount /cdrom
Now the KnoppMyth | MPEG4 CD plays my Divx DVD's in widescreen with digital audio.

I also then updated my .lircrc file so the remote will skip thru the playlist and do other handy mplayer commands

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/