Meneer Jansen wrote:
> 
> 
> 2009/6/1 Duncan Webb <dun...@freevo.org <mailto:dun...@freevo.org>>
> 
>     Meneer Jansen wrote:
>     >
>     >
>     > 2009/6/1 Duncan Webb <dun...@freevo.org <mailto:dun...@freevo.org>
>     <mailto:dun...@freevo.org <mailto:dun...@freevo.org>>>
>     >
> 
>     >     /dev/hdc  /mnt/dvd       auto  noauto,ro,nosuid  0 0
>     >
>     >     The ro is important for a DVD, noauto stops the drive being
>     mounted
>     >     at boot.
>     >
>     >     In local_conf.py keep
>     >     ROM_DRIVES_AUTOFS = False
>     >     ROM_DRIVES = [ ('/mnt/dvd', '/dev/hdc', 'DVD') ]
>     >
>     >     With freevo not running and a DVD in the drive try:
>     >     ls /mnt/dvd
>     >     should show nothing
>     >     mount /mnt/dvd
>     >     should show AUDIO_TS and VIDEO_TS
>     >     umount /mnt/dvd
>     >     eject /mnt/dvd
>     >
>     >     Then start freevo and see what happens.
>     >
>     >     Duncan
>     >
>     >     PS you should keep this on the list in case someone else is
>     having the
>     >     same problem or has solved the same problem.
>     >
>     >
>     > Uninstalled automount, did what you suggested (exept I added "user" to
>     > the cdrom entry in fstab, else no mounting as non-root). But the same
>     > prob. Cannot eject from within Freevo etc. Keep seeing video_ts
>     folder.
>     > May my Python installation may be corrupt? Relavant commandline
>     output:
>     >
>     > [CODE]
>     > Please run 'freevo cache'
>     >
>     > version: 1.9.0
>     > plugin mixer deactivated, reason: Couldn't open mixer PCM
>     > Freevo 1.9.0 ready
>     > WARNING: mounting '/mnt/dvd': mount: /dev/hdc already mounted or
>     > /mnt/dvd busy
> 
>     This will prevent you from ejecting the disk as it is already mounted.
> 
>     > mount: according to mtab, /dev/hdc is already mounted on /mnt/dvd
>     >
>     > Exception in thread Thread-2:
>     > Traceback (most recent call last):
>     >   File "/usr/lib/python2.5/threading.py", line 486, in
>     __bootstrap_inner
>     >     self.run()
>     >   File
>     "/usr/lib/python2.5/site-packages/freevo/plugins/rom_drives.py",
>     > line 917, in run
>     >     self.check_all()
>     >   File
>     "/usr/lib/python2.5/site-packages/freevo/plugins/rom_drives.py",
>     > line 882, in check_all
>     >     self.identify(media)
>     >   File
>     "/usr/lib/python2.5/site-packages/freevo/plugins/rom_drives.py",
>     > line 718, in identify
>     >     util.mount(media.mountdir, force=True)
>     >   File "/usr/lib/python2.5/site-packages/freevo/util/fileops.py", line
>     > 385, in mount
>     >     from util.misc import print_upper_execution_stack
>     > ImportError: cannot import name print_upper_execution_stack
>     >
>     > WARNING: Drive was mounted out of rom_drives.py: /mnt/dvd
>     > WARNING: Inconsistency regarding the mount status of: /mnt/dvd
>     > WARNING: opening '/dev/hdc' failed: [Errno 5] Input/output error"
>     > WARNING: Inconsistency regarding the mount status of: /mnt/dvd
>     > WARNING: opening '/dev/hdc' failed: [Errno 5] Input/output error"
>     > Freevo 1.9.0 exited
>     > [/CODE]
>     >
>     > Is the "Errno 5" from Python, Freevo or Linux? I am considering to
>     > downgrade to Freevo 1.8.3 or earlier (mounting DVD's worked in 1.8.3,
>     > exept for the IMDB part).
> 
>     Error 5 is a Linux error, google for "debian [Errno 5] Input/output
>     error". Take a look at the output from dmesg.
> 
>     I would guess that this is a disk/driver problem. But could be a RAM
>     problem, see:
> 
>     
> http://www.linuxquestions.org/questions/linux-newbie-8/errno-5-inputoutput-error-639355/
> 
>     You can fix the error "ImportError: cannot import name
>     print_upper_execution_stack", which you should never really hit.
> 
> 
>     by applying this patch:
>     Index: src/util/fileops.py
>     ===================================================================
>     --- src/util/fileops.py (revision 11576)
>     +++ src/util/fileops.py (working copy)
>     @@ -382,8 +382,7 @@
>             so, se = p.communicate()
>             if rc in (1,32,):
>                 _debug_('mounting %r: %s' % (dir, se), DWARNING)
>     -            from util.misc import print_upper_execution_stack
>     -            print_upper_execution_stack()
>     +            traceback.print_stack()
>             if os.path.ismount(dir) and not dir in mounted_dirs:
>                 mounted_dirs.append(dir)
>         if force and not dir in mounted_dirs:
> 
>     It is a hangover that should have been removed, :-(
> 
> 
> Thank you for the patch: I applied it. About the eror 5: strange. I do
> not have any (software/OS related) problems outside of Freevo. I can
> read and write (that is: burn) DVD's just fine. However: both of my dvd
> drives have their own little weird habits which I ascribe to old age.
> ;-) My old one (/dev/hdd) has trouble reading anything (but is very
> quiet), 

You can possibly try upgrading the firmware for this drive as it is the
new media that old drive will not read.

> my new one (/dev/hdc) will not eject properly at once when her
> tray is empty. I allways have to keep an erased cd-rw in its drive
> (because an empty cd-rom is not "root-mounted" during boot). 

This is a mistake, you really don't want to mount CD/DVD during boot.

> But both
> are fine aside from these little probs and I am able to wach DVD's on
> them outside of Freevo. And I have always been able to watch DVD's w/
> Freevo, until a few days ago. Also, when I try to watch a DVD via the
> "browse local folders" menu it does work. So, as for now, I'll discard
> the Debian Error No. 5. I'm not saying that is is not my computer or
> Debian 5.0, but I have to start somewhere.
> 
> I am also seriously considering to reinstall Debian or to switch
> distro's. Can anybody confirm if he or she has Freevo working w/ Debian?


Maybe Andrea can help more on this one. Looks after Debian and provided
some patches for the mounting of disks.

Duncan

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to