Page 2 of 3

Re: MK-5 SD Card capacity Using Linux

Posted: Mon Oct 06, 2014 2:50 pm
by SHEEPMAN!
So this is the 64?

Good show, thanks for reporting back.

It seems you like navigatrix. :)

Re: MK-5 SD Card capacity Using Linux

Posted: Mon Oct 06, 2014 3:05 pm
by plateaugame
Yep, the 64GB.

As far as Navigatrix, I don't have a lot to compare it to, but yeah it does everything I need it to.

Re: MK-5 SD Card capacity Using Linux

Posted: Mon Oct 06, 2014 7:21 pm
by Azrial
plateaugame wrote:Got it working. All I needed to do is format the SDXC card as ext4 using the Navigatrix/linux GParted utility.
My CF-30 dual boots Win7 and Ubuntu and the 64GB SDXC card is readable by either. I formatted the card with exFAT using the program I referenced earlier.

Re: MK-5 SD Card capacity Using Linux

Posted: Wed Oct 08, 2014 8:49 am
by plateaugame
Just ran across this thread/post, should be helpful too.
http://www.toughbooktalk.com/viewtopic. ... =10#p14752

Re: MK-5 SD Card capacity Using Linux

Posted: Wed Oct 08, 2014 5:45 pm
by plateaugame
Azrial wrote:Well it is not a limitation of the OS, I am running Ubuntu 14.04 x64 on a CF-30 Mk2 and I have a 64GB XCHD card in it. I am using FUSE/ ExFAT with it. See: https://code.google.com/p/exfat/
ok, I'm still messing with this. Do you have any instructional links that don't require a google login?

And here's a newby question.... how do I change permissions so that the SD/media device is open for writing all the time?

Re: MK-5 SD Card capacity Using Linux

Posted: Wed Oct 08, 2014 7:27 pm
by SHEEPMAN!
Yell Kodeniner at the top of your lungs.

Re: MK-5 SD Card capacity Using Linux

Posted: Wed Oct 08, 2014 9:22 pm
by Shawn

Re: MK-5 SD Card capacity Using Linux

Posted: Sun Oct 12, 2014 6:57 am
by kode-niner
I heard some yelling! :D
plateaugame wrote:
And here's a newby question.... how do I change permissions so that the SD/media device is open for writing all the time?
That depends, and it's not such a newby question since I consider this problem a bug or a distribution flaw in configuration. I see you're using Navigatrix which I believe is based on Ubuntu. Is your vfat sdcard or USB drive automatically mounting when you plug it in? If so, type these to see if your distro is using polkit for automounting and show us the output of each command.

Code: Select all

ps -ef | grep polkitd
sudo ls -l /etc/polkit-1/*
grep plugdev /etc/group
I'd have to look up how it's done on your distro but this is more or less how it used to be done on mine, before they fixed it:
https://www.ab9il.net/linux/pcmanfm-usb-mount.html

Re: MK-5 SD Card capacity Using Linux

Posted: Mon Oct 13, 2014 11:45 am
by plateaugame
Yes I believe it is automounting, if I understand the term correctly. But the device/media is never open for write access. I have to open it up at the command line with sudo chmod 777 . And that is _all the time_. If I unplug the SC card and plug it back in the write access is gone.

Before your response came in I found this documentation:
https://wiki.archlinux.org/index.php/Ud ... figuration

I added my user to the "backup" group.
Created this file:
/etc/polkit-1/localauthority.conf.d/50-udisks.rules

..with this content:

trav@traveler:/etc/polkit-1/localauthority.conf.d$ cat 50-udisks.rules
polkit.addRule(function(action, subject) {
var YES = polkit.Result.YES;
var permission = {
// only required for udisks1:
"org.freedesktop.udisks.filesystem-mount": YES,
"org.freedesktop.udisks.filesystem-mount-system-internal": YES,
"org.freedesktop.udisks.luks-unlock": YES,
"org.freedesktop.udisks.drive-eject": YES,
"org.freedesktop.udisks.drive-detach": YES,
// only required for udisks2:
"org.freedesktop.udisks2.filesystem-mount": YES,
"org.freedesktop.udisks2.filesystem-mount-system": YES,
"org.freedesktop.udisks2.encrypted-unlock": YES,
"org.freedesktop.udisks2.eject-media": YES,
"org.freedesktop.udisks2.power-off-drive": YES
};
if (subject.isInGroup("backup")) {
return permission[action.id];
}
});

I then observed no change in behavior at all, and that I really had no idea what I was doing, and decided to give up (keep chmod 777 constantly) until I got more information.

So in that context...

$ ps -ef | grep polkitd
root 1085 1 0 11:40 ? 00:00:00 /usr/lib/policykit-1/polkitd --no-debug
trav 3475 2677 0 12:40 pts/1 00:00:00 grep --color=auto polkitd

$ sudo ls -l /etc/polkit-1/*
/etc/polkit-1/localauthority:
total 20
drwxr-xr-x 2 root root 4096 Nov 5 2012 10-vendor.d
drwxr-xr-x 2 root root 4096 Nov 5 2012 20-org.d
drwxr-xr-x 2 root root 4096 Nov 5 2012 30-site.d
drwxr-xr-x 2 root root 4096 Nov 5 2012 50-local.d
drwxr-xr-x 2 root root 4096 Nov 5 2012 90-mandatory.d

/etc/polkit-1/localauthority.conf.d:
total 12
-rw-r--r-- 1 root root 267 Nov 5 2012 50-localauthority.conf
-rw-rw-r-- 1 trav trav 774 Oct 10 14:27 50-udisks.rules
-rw-r--r-- 1 root root 65 Nov 5 2012 51-ubuntu-admin.conf

/etc/polkit-1/nullbackend.conf.d:
total 4
-rw-r--r-- 1 root root 455 Nov 5 2012 50-nullbackend.conf


$ grep plugdev /etc/group
plugdev:x:46:trav

Re: MK-5 SD Card capacity Using Linux

Posted: Mon Oct 13, 2014 12:09 pm
by Azrial
The Automount is a small problem. Every time I boot in Ubuntu it will start in it's own widow. I just close it and all is good, like I said, a small problem.