View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 35 posts ] 
Go to page 1, 2, 3  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Feb 18, 2007 11:43 am 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
Hi there,

I have managed to mount a USB flash drive without too much of a problem to /mnt/flash. From a shell i can browse this mount with no problems. The problems start when i try to browse the mount in konqueror, i get told that 'access denied to /mtn/flash'. Why cant i browse this drive in konqueror (im guessing that maybe it has something to do with the permissions - however if i chmod 777 the mount then it seems to make no difference.

Also i have tried copying the entire contents of the drive in a shell using 'cp /mnt/flash /myth/music/' but it just says 'ommiting directory /mnt/flash'. Can anyone give me any pointers as to what i might be doing wrong here as id like to be able to mount my flash drive (or even an exetrnal HD) and copy what i want from it using Konqueror.

Thanks in advance

Rob Flook


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 18, 2007 3:57 pm 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
No worries, after a bit of digging around i found outt hat it can beachieved by simply adding "-o umask=0" to the mount command which sorts it out. Now all i need to do is figure out how this can be done automatically so mytthv picks its up upon booting the system.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 12:08 am 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

I add this to my /etc/fstab
/dev/sda1 /stick vfat defaults,user,noauto,showexec,umask=022 0 0

then
# mkdir /stick
# chown mythtv:mythtv /stick

now I can simply as user mythtv
$ mount /stick
and it just another directory :)
when done
$ umount /stick

To cp a directory, it is
cp -a /path/directory /to/location/
To cp all files in a directory, (including sub directories) it is
cp -a /path/directory/* /to/location/

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 7:43 am 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
mjl,

Does your code auto mount the drive for you or just make it easier for your to mount the drive. Basically i have an external USB harddrive which has all my music on it, so when i boot up my machine i dont want to have to go through the steps of moutning it so i can play my music, id like it to all happen automatically.

Thanks

Rob


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 11:15 am 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

I do manual mount because of using a usb stick to transfer / save stuff however you should be able to simply remove the "no" part of noauto in the fstab and it will mount it at boot time.I don't know what side issues would be if the external drive was turned off at boot time, no harm, just complain to dmesg most likely.

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 5:00 pm 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
Mike,

This kind of works. It picks up my usb harddrive upon boot which is great. However when i try to scan for new music the music doesnt get shown. It would appear that i first have to browse to the folder in a shell or using konqueror and then go back into mythtv upon which scanning will find the files.

Any ideas why this might be happening or how it can be fixed?

Many thanks

Rob


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 9:57 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

It does not show your music on the usb drive because it thinks that it is suppose to look for music in /myth/music ...If the only thing you have on the drive is music, then simply change the mount point in fstab to be /myth/music .Besure to do a rescan for the tunes so the mysql will know what you have available.

Also by mounting there, your box should still run ok even if the drive isn't powerd up as the original /myth/music will reappear. (empty of course)

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 20, 2007 2:14 am 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
Mike my mount point is /myth/music/HDTunes, so surely it should pick up all my tunes automatically? Like i said it will pick up the tunes of my external HD but only if quickly go into the external HD via konqueror or a shell - its almost like it has mounted the HD but knoppmyth hasnt drawn out the list of files until you actually try to view them in the desktop environment. Could i simply add a command line to one of my boot/config files along the lines of 'cd /myth/music/HDTunes ; dir' to force knoppmyth to view the files in the harddrive before booting to the mythtv frontend?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 20, 2007 7:22 am 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

If you are mounting /dev/external-usb-drive as /myth/music then what ever is on that drive should show up after you do a rescan for your music. I'm not sure about it mining in to sub-directories to look for additional tunes but try it. You are on the right path. Speaking of paths, you may have to set it up in the menus to look that extra level of HDTunes.

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 20, 2007 8:03 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
The scanning does descend subdirectory trees. My /myth/music directory is all hierarchically arranged and it handles it fine.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 20, 2007 9:35 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

Thanks tjc, I thought it should but not being sure of his structure figured it would be best to just try it :)

One thing that may be a factor... was the tunes put on the drive with linux or winblows? If it was with the other os then the ext3 will need to be change to vfat in order to read it? If it is ntfs, then probably will be sol.

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 21, 2007 8:01 am 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
Right so i have basically found the problem. Mjl - your suggestion of ammending the fstab file with the line

"/dev/sda1 /myth/music vfat........" works to an extent.

From what i can gather it would seem to semi mount the drive. If i boot up the system and drop out into the desktop and load konqueror i can see the drive under 'devices' - great! Now if i hover over the mounted drive at the bottom of konqueror in the task bar it says 'unmounted'. If i then click on the drive to see its contents it then becomes fully mounted and mythtv will find the files.

Any ideas how i can rectify this problem?

Thanks for all the help so far guys its really appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 21, 2007 11:21 am 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,
Quote:
konqueror
What are you running? That does not come with KM to my knowledge.
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 21, 2007 12:05 pm 
Offline
Joined: Wed Jan 24, 2007 2:29 pm
Posts: 101
Mike,

No Konqueror doesnt come with KM, i used 'apt-get install' to download it, is a file/web browser.

Rob


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 21, 2007 4:52 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

Ok with the apt-get, that works :) In the /etc/fstab, did you remove the no from noauto? Other than that, I am about out of ideas. Also I would change permissions to be anything other than 777, maybe a 644 or 744? And check the mount point ownership to be mythtv:mythtv.

Mike


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 35 posts ] 
Go to page 1, 2, 3  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu