freevo-users  

Re: [Freevo-users] DVD-rom with (avi)movie files is not mounted right

Duncan Webb
Sat, 19 Jul 2008 14:22:11 -0700

Meneer Jansen wrote:
> 2008/7/14 Duncan Webb <[EMAIL PROTECTED]>:
>> Meneer Jansen wrote:
>>> 2008/7/6 Duncan Webb <[EMAIL PROTECTED]>:
>>>> Laurento Frittella wrote:
>>>>> Il giorno mer, 25/06/2008 alle 22.47 +0200, Duncan Webb ha scritto:
>>>>>> This is on my todo list, need to prepare a cd first. Are the files on
>>>>>> the removable media in subdirectories or in the root directory?
>>>>> I have the same problem, my avi files are in subdirs too but I noticed
>>>>> another strage thing... Freevo shows the files in the DVD when I browse
>>>>> the disk but when I try to open one of the video file I receive "Not
>>>>> Found"
>>>> AFAICT this works, I've been playing around quite a bit with this
>>>> feature in the current svn version of Freevo.
>>>>
>>>> Normally you will set you ROM_DRIVES in local_conf.py to something like:
>>>>
>>>> ROM_DRIVES = [
>>>>     ('/mnt/dvd', '/dev/hdc', 'DVD'),
>>>>     ('/mnt/dvdram', '/dev/hdd', 'DVD-RAM'),
>>>> ]
>>>>
>>>> An in /etc/fstab something like:
>>>> /dev/hdc       /mnt/dvd      auto     noauto,ro,nosuid       0       0
>>>> /dev/hdd       /mnt/dvdram   auto     noauto,ro,nosuid       0       0
>>>>
>>>> Then Freevo automatically mounts the discs and shows you them in the
>>>> video/audio/image menus.
>>>>
>>>> Now I've added to freevo_config.py, ROM_DRIVES_AUTOFS = False, which
>>>> will stop Freevo mounting and un-mounting the dics.
>>>>
>>>> However, using the automounter daemon seems slower than using the normal
>>>> mount/umount commands.
>>>>
>>>> So new in rel-1 branch is this:
>>>> ROM_DRIVES = [
>>>>     ('/misc/dvd', '/dev/hdc', 'DVD'),
>>>>     ('/misc/dvdram', '/dev/hdd', 'DVD-RAM'),
>>>> ]
>>>> ROM_DRIVES_AUTOFS = True
>>>>
>>>> In fact, this above works any way. The only problem that I detected is
>>>> that the mount/umount commands are silent and do not report any errors
>>>> if the mount point does not exist. Other than that it works correctly
>>>> and allows sub-directories with different media content.
>>>>
>>>> HTH
>>>> Duncan
>>> No matter what I try, I keep getting the error "Directory does not
>>> exist". Sort of driving me crazy now...
>>>
>>> My fstab:
>>> /dev/hdc        /media/cdrom0   udf,iso9660   user,noauto                   
>>>   0       0
>>> /dev/hdd        /media/cdrom1   udf,iso9660   user,noauto                   
>>>   0       0
>>>
>>> (tried changing it to your example above: doesn't help)
>>>
>>> My local_conf.py:
>>> ROM_DRIVES = [
>>>     ('/misc/dvd', '/dev/hdc', 'DVD01'),
>>> ]
>>> ROM_DRIVES_AUTOFS = False
>>>
>>> Changing it to "TRUE" does not help either. I keep and keep on getting
>>> "Directory does not exist".
>>>
>>> Manually mounting the DVD before running Freevo does not help either.
>>> What can I do to get Freevo to recognize the files and folders my
>>> DVD-ROM drives?
>> Why do you have:
>> ROM_DRIVES = [
>>     ('/misc/dvd', '/dev/hdc', 'DVD01'),
>> ]
>> ROM_DRIVES_AUTOFS = False
>>
>> When your fstab says this:
>> /dev/hdc  /media/cdrom0  udf,iso9660  user,noauto  0  0
>>
>> I think you want to have:
>>
>> ROM_DRIVES = [
>>     ('/media/cdrom0', '/dev/hdc', 'DVD01'),
>> ]
>>
>>
>> Basically freevo does a mount and in your original case:
>> mount /misc/dvd
>>
>> What Freevo doesn't say is that /misc/dvd is an invalid mount point.
>>
>> HTH
>> Duncan
> 
> Thank you for the help. :) I changed it to:
> 
> ROM_DRIVES = [
>    ('/media/cdrom0', '/dev/hdc', 'DVD01'),
> ]
> 
> But that does not help either... I get the following error on the
> command line when I try to access the DVD-ROM:
> 
> sh: -c: line 0: syntax error near unexpected token `('
> sh: -c: line 0: `mount /media/cdrom0/Movies (avi files) 2>/dev/null'

Ahh, now all is clear, it is not the space that is a problem but the () 
  which cause the shell to spawn a sub-shell hence the error.

So there are two options, first don't use special shell characters in 
the directory names, it linux and unix it bad to do so. Bash will escape 
  then correctly but the code in the mounter does not.

I need to fix the mounter trying to mount something that is mounted 
already and may be change this so that it runs the mount command to run 
it directly.

In the meantime, re-burn the CD with sensible (in terms of the shell) 
directory names.

> It almost seems that one may not have spaces in the path to the
> movies. If I try to access movies in another directory on the DVD-ROM,
> then I get no error on the command line. However, Freevo itself keeps
> saying: "my movie.avi; Not Found". The path to that movie also has
> spaces in it.
> 
> In a file browser, however, I can access the iles on the dvd. By the
> way, I use Debian 4.0 Etch (stable).


HTH
Duncan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users