Mounting a USB drive without hotplugging or logging in

Hello all, I've got a mythtv set up on a pc. It got a 40G drive which I'm finding a bit limiting. I figured I'd just plug in an external USB drive, have it mount on boot up, and configure mythtv to use a directory on it as part of its storage area. Well, its becoming a frustrating exercise. As a user logged in, I can hotplug it and read and write to but anything else either doesn't work or will only ever mount the drive read only. I've tried 1) editing fstab (result read only despite specifying rw) 2) pydsm (result read only despite specifying rw) 3) Some scripts using udev rules. (can't find the drive) The system used lightdm as the window manager and Thunar is available as a GUI file manager. Underlying system is Mythbuntu updated to Precise Penguin Any clues? Or scripts known to work? Cheers, Chris

The drive going read only suggests to me that it may not be read properly by the system, or any even be broken. Check dmesg for any related messages? On Aug 13, 2012 10:10 AM, "mailinglist" <mailinglist(a)blahdeblah.co.nz> wrote:
Hello all,
I've got a mythtv set up on a pc. It got a 40G drive which I'm finding a bit limiting.
I figured I'd just plug in an external USB drive, have it mount on boot up, and configure mythtv to use a directory on it as part of its storage area.
Well, its becoming a frustrating exercise. As a user logged in, I can hotplug it and read and write to but anything else either doesn't work or will only ever mount the drive read only.
I've tried 1) editing fstab (result read only despite specifying rw) 2) pydsm (result read only despite specifying rw) 3) Some scripts using udev rules. (can't find the drive)
The system used lightdm as the window manager and Thunar is available as a GUI file manager. Underlying system is Mythbuntu updated to Precise Penguin
Any clues? Or scripts known to work?
Cheers,
Chris
______________________________**_________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/**mailman/listinfo/wlug<http://list.waikato.ac.nz/mailman/listinfo/wlug>

Hi Glenn, Thanks for the suggestion. I was looking at dmesg logs but wasn't anticipating seeing drive errors. But will check again tonight. I forgot to add that the drive is formatted NTFS too. Cheers, Chris On Mon, 13 Aug 2012 10:15:17 +1200, Glenn Enright wrote:
The drive going read only suggests to me that it may not be read properly by the system, or any even be broken. Check dmesg for any related messages? On Aug 13, 2012 10:10 AM, "mailinglist" wrote:
Hello all,
I've got a mythtv set up on a pc. It got a 40G drive which I'm finding a bit limiting.
I figured I'd just plug in an external USB drive, have it mount on boot up, and configure mythtv to use a directory on it as part of its storage area.
Well, its becoming a frustrating exercise. As a user logged in, I can hotplug it and read and write to but anything else either doesn't work or will only ever mount the drive read only.
I've tried 1) editing fstab (result read only despite specifying rw) 2) pydsm (result read only despite specifying rw) 3) Some scripts using udev rules. (can't find the drive)
The system used lightdm as the window manager and Thunar is available as a GUI file manager. Underlying system is Mythbuntu updated to Precise Penguin
Any clues? Or scripts known to work?
Cheers,
Chris
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz [1] Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug [2]
Links: ------ [1] mailto:wlug(a)list.waikato.ac.nz [2] http://list.waikato.ac.nz/mailman/listinfo/wlug [3] mailto:mailinglist(a)blahdeblah.co.nz

Hi Chris, NTFS is probably your real issue. http://www.linuxforums.org/forum/installation/142649-solved-editing-fstab-al... might contain the answer to your problem if you keep using NTFS. This also looks relevant for you: http://askubuntu.com/questions/113733/how-do-i-correctly-mount-a-ntfs-partit... Please keep in mind that this is a distribution agnostic issue you're dealing with. Regards, Andreas On 13/08/2012, at 10:31 AM, mailinglist wrote:
Hi Glenn,
Thanks for the suggestion. I was looking at dmesg logs but wasn't anticipating seeing drive errors.
But will check again tonight.
I forgot to add that the drive is formatted NTFS too.
Cheers,
Chris
On Mon, 13 Aug 2012 10:15:17 +1200, Glenn Enright wrote:
The drive going read only suggests to me that it may not be read properly by the system, or any even be broken. Check dmesg for any related messages? On Aug 13, 2012 10:10 AM, "mailinglist" wrote:
Hello all,
I've got a mythtv set up on a pc. It got a 40G drive which I'm finding a bit limiting.
I figured I'd just plug in an external USB drive, have it mount on boot up, and configure mythtv to use a directory on it as part of its storage area.
Well, its becoming a frustrating exercise. As a user logged in, I can hotplug it and read and write to but anything else either doesn't work or will only ever mount the drive read only.
I've tried 1) editing fstab (result read only despite specifying rw) 2) pydsm (result read only despite specifying rw) 3) Some scripts using udev rules. (can't find the drive)
The system used lightdm as the window manager and Thunar is available as a GUI file manager. Underlying system is Mythbuntu updated to Precise Penguin
Any clues? Or scripts known to work?
Cheers,
Chris
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz [1] Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug [2]
Links: ------ [1] mailto:wlug(a)list.waikato.ac.nz [2] http://list.waikato.ac.nz/mailman/listinfo/wlug [3] mailto:mailinglist(a)blahdeblah.co.nz
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

On Mon, 13 Aug 2012 10:39:24 +1200, Andreas Löf wrote:
Hi Chris,
NTFS is probably your real issue.
http://www.linuxforums.org/forum/installation/142649-solved-editing-fstab-al... might contain the answer to your problem if you keep using NTFS.
This also looks relevant for you:
http://askubuntu.com/questions/113733/how-do-i-correctly-mount-a-ntfs-partit...
Please keep in mind that this is a distribution agnostic issue you're dealing with.
Regards,
Andreas
Hi Andreas, Thanks for the comments. I think it is the dmask, umask settings highlighted in one of your links that I'll need to work with. Re 'distribution agnostic'. I like to add as much detail as possible and given different distro sometimes provide specific tools I thought it worth mentioning. Thanks again, Cheers, Chris

On 13/08/2012, at 10:53 AM, mailinglist wrote:
On Mon, 13 Aug 2012 10:39:24 +1200, Andreas Löf wrote:
Hi Chris,
NTFS is probably your real issue.
http://www.linuxforums.org/forum/installation/142649-solved-editing-fstab-al... might contain the answer to your problem if you keep using NTFS.
This also looks relevant for you: http://askubuntu.com/questions/113733/how-do-i-correctly-mount-a-ntfs-partit...
Please keep in mind that this is a distribution agnostic issue you're dealing with.
Regards,
Andreas
Hi Andreas,
Thanks for the comments. I think it is the dmask, umask settings highlighted in one of your links that I'll need to work with.
Re 'distribution agnostic'. I like to add as much detail as possible and given different distro sometimes provide specific tools I thought it worth mentioning.
Thanks again,
Cheers,
Chris
Hi Chris, I applaud your desire to add as much information as possible, it's makes it much easier to help. I wasn't sure about your skill or knowledge level, so I felt that pointing out that solutions that aren't MythTV specific are most likely still going to be applicable. Regards, Andreas

Are you using the ntfs-3g (fuse) or in kernel ntfs support, is probably the other biggie. Ronnie

Hi Chris,
I applaud your desire to add as much information as possible, it's makes it much easier to help. I wasn't sure about your skill or knowledge level, so I felt that pointing out that solutions that aren't MythTV specific are most likely still going to be applicable.
Regards,
Andreas
Hi Andreas, So, what I've done for now is to use Arios Mount found here [1]. It just installs a few tiny scripts from a .deb package. And I needed to install ntfs-3g from the repositories. Ronnie, I saw your post afterwards... I'm still not convinced this is best solution since the arios-mount tool does not provide any control over the group permissions. So I may go back to editing fstab or seeing if I can tweak the arios-mount tool. Since I've rarely worked with ntfs file systems on anything but hot plugged external drives, it has suprised me the extra work involved making it part of the permanet file system. Obviously trivial once you know how but not quite like an ext3 on an IDE drive. Thanks again for the replies. [1] http://www.webupd8.org/2011/11/how-to-mount-partitions-automatically.html

You shouldnt need to do anything special. This is the line I have in fstab for an ntfs drive UUID=53DE4129DE410727 /media/HP ntfs-3g defaults,noatime,nofail,users,flush 0 0

On Tue, 14 Aug 2012 01:34:35 +0000, Ronnie Collinson wrote:
You shouldnt need to do anything special. This is the line I have in fstab for an ntfs drive UUID=53DE4129DE410727 /media/HP ntfs-3g defaults,noatime,nofail,users,flush 0 0
This solution worked well in the end. MythTV now says is has over 200G to play with (500G external drive with lots of other stuff on it) Thanks to all that commented. Cheers, Chris
participants (4)
-
Andreas Löf
-
Glenn Enright
-
mailinglist
-
Ronnie Collinson