ODROID C2 with LibreElec 9.x / Additional Space with Micro SD?

Post Reply
Numspi
Posts: 4
Joined: Tue Oct 29, 2019 5:35 am
languages_spoken: german english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

ODROID C2 with LibreElec 9.x / Additional Space with Micro SD?

Unread post by Numspi » Tue Oct 29, 2019 5:54 am

Hi there,
i am using KODI (Leia) on a ODROID C2 with LibeElec 9.x.
I have a eMMC-Modul with just 8GB. Since today i didnt had any problems. But now i wand to install and test more Addons but my Space is not enough.
I realized, that i can use i Micro-SD-Card (32GB) and installed it. The additional memory is showing up but if i want to install different addons it says, that my space is not enough. On the eMMC-Modul isnt enough space, thats right but on the sd-card is enough space.
How can i tell the OS to use the sd-card as additional workspace? Or is it impossible to use a eMMC and a sd-card for the OS?

I hope somebody here can help me :)

Bye bye
Numspi

User avatar
rooted
Posts: 6761
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 205 times
Been thanked: 41 times
Contact:

Re: ODROID C2 with LibreElec 9.x / Additional Space with Micro SD?

Unread post by rooted » Tue Oct 29, 2019 7:04 am

You will need to format the SD card as something like ext2 and create a symbolic link from /home/username/.kodi to point to a directory on the SD card.

In other words move the .kodi directory to SD card and /home/username/.kodi will just be a 'shortcut' to the moved directory.

Numspi
Posts: 4
Joined: Tue Oct 29, 2019 5:35 am
languages_spoken: german english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID C2 with LibreElec 9.x / Additional Space with Micro SD?

Unread post by Numspi » Tue Oct 29, 2019 1:29 pm

Thanks for your reply.

Can you tell me, how can i create a symbolic link on ODROID with Kodi?
Or it is necessary to do it with windows on my pc?

User avatar
rooted
Posts: 6761
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 205 times
Been thanked: 41 times
Contact:

Re: ODROID C2 with LibreElec 9.x / Additional Space with Micro SD?

Unread post by rooted » Tue Oct 29, 2019 2:00 pm

You will have to ssh into the device and create it, just look up symlink how-to.

https://www.makeuseof.com/tag/what-is-a ... -explains/

Say your SD card is /dev/sdb and your home directory is /root you do this.

Code: Select all

mv ~/.kodi /dev/sdb
ln -s /dev/sdb/.kodi ~/.kodi
The "~" represents your home directory, "mv" means move, and "ln" is link, so that first line would move the directory to SD and the second would create a link to it.


User avatar
mad_ady
Posts: 6780
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 215 times
Been thanked: 163 times
Contact:

Re: ODROID C2 with LibreElec 9.x / Additional Space with Micro SD?

Unread post by mad_ady » Tue Oct 29, 2019 2:44 pm

Well, you can't move it to sdb. You need to mount it first. It's probably already mounted, so run mount to see where it's mounted at. If you don't know share the output of mount with us.

User avatar
rooted
Posts: 6761
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 205 times
Been thanked: 41 times
Contact:

Re: ODROID C2 with LibreElec 9.x / Additional Space with Micro SD?

Unread post by rooted » Tue Oct 29, 2019 8:10 pm

Yeah I just used that as an example since I don't know where it's mounted.

Numspi
Posts: 4
Joined: Tue Oct 29, 2019 5:35 am
languages_spoken: german english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID C2 with LibreElec 9.x / Additional Space with Micro SD?

Unread post by Numspi » Wed Oct 30, 2019 4:09 am

Thanks again and sorry but its my first time with SSH.... i am just a user ;)

I managed it to connect to my odroid.
With "mount" i get this:

rootfs on / type rootfs (rw,size=825576k,nr_inodes=206394)
devtmpfs on /dev type devtmpfs (rw,relatime,size=825576k,nr_inodes=206394,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/mmcblk0p1 on /flash type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/mmcblk0p2 on /storage type ext4 (rw,noatime,data=ordered)
/dev/loop0 on / type squashfs (ro,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /var type tmpfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mmcblk1p1 on /var/media/mmcblk1p1-mmc-SC32G_0x568a2002 type vfat (rw,nosuid,nodev,noexec,noatime,fmask=0133,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)

I realized that my profile-folder use over 4GB. It is possible to move the entire folder to my sd-card?

regards
Numspi

Update:
I managed it, to move my thumbnails-folder to my sd-card via advancedsettings.xml.
So i got some additional space. :)
But i would know, if it possible to move the entire profil-folder...

User avatar
rooted
Posts: 6761
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 205 times
Been thanked: 41 times
Contact:

Re: ODROID C2 with LibreElec 9.x / Additional Space with Micro SD?

Unread post by rooted » Wed Oct 30, 2019 7:56 am

You could move it but you need to format the SD card to a Linux format.

After formatting it to something like ext4 format you would do this.

Code: Select all

mv ~/.kodi /var/media/mmcblk1p1-mmc-SC32G_0x568a2002
ln -s /var/media/mmcblk1p1-mmc-SC32G_0x568a2002/.kodi ~/.kodi

Numspi
Posts: 4
Joined: Tue Oct 29, 2019 5:35 am
languages_spoken: german english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID C2 with LibreElec 9.x / Additional Space with Micro SD?

Unread post by Numspi » Sat Nov 02, 2019 11:47 pm

That helped a lot.

Thank you very much :)

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest