Using an SD card for patches


#28

are you able to navigate to /sdcard using the Organelle (with mouse and monitor, not web file manager) and move a file there or make a folder? also check the output of this command to see if the partition is actually mounted:

cat /proc/mounts

#29

@thetechnobear upload button brings me to browse my files but upon choosing one it doesn’t show up.
@oweno No mouse/monitor so have been using Terminal to SSH into organelle.
Here’s what I got back after entering that command (sorry this makes it so long a post - please do remind me if there’s a better method for situations like this):

[root@organelle ~]# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext4 ro,relatime,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=119508k,nr_inodes=29877,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 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 /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
cgroup /sys/fs/cgroup/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/bfqio cgroup rw,nosuid,nodev,noexec,relatime,bfqio 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct 0 0
tmpfs /tmp tmpfs rw 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
tmpfs /var/log tmpfs rw,nosuid,nodev,relatime 0 0
tmpfs /var/tmp tmpfs rw,nosuid,nodev,relatime 0 0
tmpfs /run/user/0 tmpfs rw,nosuid,nodev,relatime,size=50732k,mode=700 0 0
/dev/sda1 /usbdrive vfat rw,noatime,uid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 0
[root@organelle ~]#


#30

you don’t appear to have the sdcard mount,

can you do

cat /etc/fstab

essentially, id say you missed a step from the instructions, perhaps you can review them again.


#31

It’s possible I missed something. If no one has any other suggestions I will redo it.
Must I initialize the SD card and remount disk image or just repeat steps in the terminal for partitioning?

Here’s what I get back from that command:

[root@organelle ~]# cat /etc/fstab

/etc/fstab: static file system information

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


#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?