Export - Finding Local Drives - limited result

Using pex version 0.7 running on Linux
When exporting the only drive found is ‘/’
However on the system in question, mounted, are: 2 hard disks (4 writable partitions) and a USB drive.

Further, there was no option to select a sub-directory of ‘/’

Thanks for Kolibri.

Hi, thanks for the question.

Would you mind running mount and cat /proc/mounts from your terminal and sharing the results?

When exporting the only drive found is ‘/’
However on the system in question, mounted, are: 2 hard disks (4 writable partitions) and a USB drive.

In order to enumerate drives, we check those values and then additionally check for write access.

Further, there was no option to select a sub-directory of ‘/’

Currently, we always export to a folder called “KOLIBRI_DATA” which is placed at the root of a drive so that Kolibri knows where to look on import.

$ cat /proc/mounts
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
dev /dev devtmpfs rw,nosuid,relatime,size=4045664k,nr_inodes=1011416,mode=755 0 0
run /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
/dev/sda3 / ext4 rw,noatime,discard,data=ordered 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/rdma cgroup rw,nosuid,nodev,noexec,relatime,rdma 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12240 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,noatime 0 0
/dev/sda1 /boot ext2 rw,noatime,block_validity,barrier,user_xattr,acl 0 0
/dev/sda4 /home ext4 rw,noatime,discard,data=ordered 0 0
/etc/autofs/auto.misc /misc autofs rw,relatime,fd=6,pgrp=462,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=13198 0 0
-hosts /net autofs rw,relatime,fd=12,pgrp=462,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=16049 0 0
/etc/autofs/auto.esata /media/esata autofs rw,relatime,fd=18,pgrp=462,timeout=5,minproto=5,maxproto=5,indirect,pipe_ino=13204 0 0
/etc/autofs/auto.usb /media/usb autofs rw,relatime,fd=24,pgrp=462,timeout=5,minproto=5,maxproto=5,indirect,pipe_ino=13207 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=810384k,mode=700,uid=1000,gid=1000 0 0
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
/dev/sdb2 /run/media/me/MEDIA ext4 rw,nosuid,nodev,relatime,data=ordered 0 0
/dev/sdb1 /run/media/me/SYSTEM ext4 rw,nosuid,nodev,relatime,data=ordered 0 0
[me@linux ~]$ lc education

Loading education-fu …
[me@linux ~]$ KOLIBRI_pex_start
INFO Running Kolibri with the following settings: kolibri.deployment.default.settings.base
INFO Running update routines for new version…

0 static files copied to ‘/home/me/.kolibri/static’, 406 unmodified.
Operations to perform:
Apply all migrations: admin, auth, exams, logger, contenttypes, morango, sessions, kolibriauth, device, content
Running migrations:
No migrations to apply.
Your models have changes that are not yet reflected in a migration, and so won’t be applied.
Run ‘manage.py makemigrations’ to make new migrations, and then re-run ‘manage.py migrate’ to apply them.
INFO Running ‘kolibri start’ as daemon (system service)
INFO Kolibri running on:

INFO Going to daemon mode, logging to /home/me/.kolibri/server.log
[me@linux ~]$ [16873:16913:0110/145107.451751:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
Created new window in existing browser session.

I would expect these two partitions /dev/sdb2 /, /dev/sdb1 to be shown in Kolibri (launched by user ‘me’)

$ ls /run/media/me/ -l
total 8
drwxr-xr-x 23 me me 4096 Jan 1 18:17 MEDIA
drwxr-xr-x 21 me me 4096 Dec 22 13:26 SYSTEM
[me@linux ~]$ id
uid=1000(me) gid=1000(me) groups=1000(me),7(lp),10(wheel),90(network),91(video),93(optical),95(storage),96(scanner),98(power),108(vboxusers),989(docker)

Thanks for the info - I’ve created a new issue here.

There’s a chance that the drives are being filtered out because they’re mounted under dev or run - we currently have a blacklist:

PATH_PREFIX_BLACKLIST = ["/proc", "/sys", "/tmp", "/var", "/run", "/boot", "/dev"]

As a work-around, perhaps you could try mounting to a location not in the blacklist?