Using an SD card for patches


#32

Yeah, don’t take this in a bad way, I already suggested that, and by now you could be having fun :wink:


#33

so you didn’t do the bit that says

:slight_smile:


SD card disk image with patch storage
#34

your fstab should be

/dev/mmcblk0p1 / ext4 ro 0 0
tmpfs /var/log tmpfs nodev,nosuid 0 0
tmpfs /var/tmp tmpfs nodev,nosuid 0 0
/dev/mmcblk0p2 /sdcard ext4 defaults,noatime 0 0

can you tell me the output from the command

fdisk -l 

id expect something like

/dev/mmcblk0p1         2048  7626751  7624704  3.7G 83 Linux
/dev/mmcblk0p2      7626752 60874751 53248000 25.4G 83 Linux

#35

I remember pasting that command in and after what came back pressing ESC : w q (then hitting return)
I felt like maybe there was something else I had to do after that but wasn’t sure and just closed Terminal.

I will try process again later but if you may please lmk - must I mount disk image again or just repeat the whole partition process in the Terminal?

Thx again everyone - I so appreciate the help!


#36

I need to know the output from the following commands

fdisk -l
ls /sdcard

this should tell me what stage your at… we should just then be able to fix whats wrong.
as long as the organelle is still booting your probably ok :slight_smile:


#37

@thetechnobear That’s in there - except slightly dif as I’m using a 16GB card not 32GB

[root@organelle ~]# fdisk -l
Disk /dev/mmcblk0: 14.9 GiB, 15931539456 bytes, 31116288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xbe4d55a9

Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 7626751 7624704 3.7G 83 Linux
/dev/mmcblk0p2 7626752 31116287 23489536 11.2G 83 Linux

Disk /dev/sda: 3.8 GiB, 4009754624 bytes, 7831552 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device Boot Start End Sectors Size Id Type
/dev/sda1 2 7831551 7831550 3.8G b W95 FAT32
[root@organelle ~]#


#38

Nothing comes back when I put in: ls /sdcard - this is all I get
[root@organelle ~]# ls /sdcard
[root@organelle ~]# ls /sdcard
[root@organelle ~]#


#39

ok, so you have created partition, and the /sdcard directory, and its empty… thats good.

can you try

mount /dev/mmcblk0p2 /sdcard

if that works then all you need to do is edit the file /etc/fstab

you can use nano if you wish, as it has instructions on the bottom on how to save/exit , bit easier than vi :slight_smile:

nano /etc/fstab

make sure it reads

/dev/mmcblk0p1 / ext4 ro 0 0
tmpfs /var/log tmpfs nodev,nosuid 0 0
tmpfs /var/tmp tmpfs nodev,nosuid 0 0
/dev/mmcblk0p2 /sdcard ext4 defaults,noatime 0 0

save and then shutdown the organelle with

~/scripts/shutdown.sh

the restart it…

once its restarted, if you type

mount

you should see the line

/dev/mmcblk0p2 on /sdcard type ext4 (rw,noatime,data=ordered)

which means your good to go, create the Patches directory and start adding patches


#40

idk if by “works” you mean I should get something back but, this is all that happens :confused:
[root@organelle ~]# mount /dev/mmcblk0p2 /sdcard
[root@organelle ~]#


#41

yep, thats working, so you can just edit fstab, then you should be done.


#42

I’m missing the bottom line after that next command I only see:

/dev/mmcblk0p2 / ext4 ro 0 0
tmpfs /var/log tmpfs nodev,nosuid 0 0
tmpfs /var/tmp tmpfs nodev,nosuid 0 0


#43

yeah the top line is wrong too

as i said, you need to edit fstab,(using nano)
change the top line , and add the last line

then reboot


#44

oh wow ok awesome I think I’m almost there - feel rly dumb w this one but, I’m not sure how to save after changing the lines :thinking: (to my credit I did try to find it for quite a few min there)
edit: I tried the “write file to disk” command and it says: [ Error writing /etc/fstab: Read-only file system ]


#45

you need to remount the root filesystem as read-write before editing the file

you can do this with

~/scripts/remount-rw.sh


#46

Thank you SO MUCH :relieved:


#47

Mine is working perfectly, thanks!
Now I tried to install OTC in this same SD, but it’s not working. I think it’s trying to ger the Modes folder frim the USB stick but it’s not finding the correct path. Is it possible to do?


#48

Not true, I use OTC off the sdcard exclusively , no usb stick :slight_smile:


#49

!!!
So you’ve added a Modes folder on the SD card?
I’ve tried that, will try again.
Happy to know it works! Thanks


#50

Uhm, I’ve installed OTC_Mother on the SD Card, copied Modes folder to the SD too.
When I run OTC Mother my HDMI monitor shows the ETC logo (as expected) and the Organelle display says:
running OTC
modes : /sdcard

But it stops there.

The otc_mother.log last line is ImportError: No module named pygame

Any ideas?
Should I try to install it all over again from the beginning?


#51

We now have formatted SD card disk image available for download: