# Using an SD card for patches

**URL:** <https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427>\
**Category:** Hacking\
**Created:** [July 12, 2017, 4:55pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427 "2017-07-12T16:55:21Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![TheDeadFarmer](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TheDeadFarmer](https://forum.critterandguitari.com/u/TheDeadFarmer)\
**Post date:** [May 17, 2018, 12:27am UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/25 "2018-05-17T00:27:50Z")

</div>

Any reason the copy/paste method wouldn’t work in the file manager - besides the possibility that I messed something up when partitioning?

At this point when I click the SD card button (in the file manager) it brings me to the SD card page but nothing shows up when I try to add a folder or paste in a file I’ve copied from USB.

Thx again for all the help here - and for orac (amazing)!!!

---

<div class="post-metadata">

**Author:** ![keymanpal](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/keymanpal/32/873_2.png) [@keymanpal](https://forum.critterandguitari.com/u/keymanpal)\
**Post date:** [May 17, 2018, 12:58am UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/26 "2018-05-17T00:58:32Z")

</div>

> [@TheDeadFarmer](#):
>
> possibility that I messed something up when partitioning?

I’m afraid of not much help, but it looks like it; seems you can’t write to that partition…  
Did you follow above post? [Using an SD card for patches - #4 by thetechnobear](http://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/4)

Carefully… no harm in redo it all over again 😉

---

<div class="post-metadata">

**Author:** ![thetechnobear](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/thetechnobear/32/42_2.png) [@thetechnobear](https://forum.critterandguitari.com/u/thetechnobear)\
**Post date:** [May 17, 2018, 5:56am UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/27 "2018-05-17T05:56:05Z")

</div>

Can’t say I tried copy paste , I usually just us upload , does that work?

---

<div class="post-metadata">

**Author:** ![oweno](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/oweno/32/10_2.png) [@oweno](https://forum.critterandguitari.com/u/oweno)\
**Post date:** [May 17, 2018, 11:17am UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/28 "2018-05-17T11:17:53Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![TheDeadFarmer](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TheDeadFarmer](https://forum.critterandguitari.com/u/TheDeadFarmer)\
**Post date:** [May 17, 2018, 6:16pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/29 "2018-05-17T18:16:07Z")

</div>

@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 ~]#

---

<div class="post-metadata">

**Author:** ![thetechnobear](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/thetechnobear/32/42_2.png) [@thetechnobear](https://forum.critterandguitari.com/u/thetechnobear)\
**Post date:** [May 17, 2018, 9:30pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/30 "2018-05-17T21:30:19Z")

</div>

you don’t appear to have the sdcard mount,

can you do

```auto
cat /etc/fstab
```

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

> [@Using an SD card for patches](http://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/4):
>
> ok, so I have this working slight_smile you will need a new version of mother to be able to use the sdcard for patches, which I now have, and will release a beta ‘shortly’… also the instructions below are for those happy with linux, Id hope later we will be able to script these for everyone, to just fire off from the organelle lcd (like the upgrading of OS) steps required: a) get a bigger SD card, make sure its fast - Ive used a 32GB I had lying around (actually smaller are usually faster,…

---

<div class="post-metadata">

**Author:** ![TheDeadFarmer](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TheDeadFarmer](https://forum.critterandguitari.com/u/TheDeadFarmer)\
**Post date:** [May 17, 2018, 9:43pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/31 "2018-05-17T21:43:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![keymanpal](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/keymanpal/32/873_2.png) [@keymanpal](https://forum.critterandguitari.com/u/keymanpal)\
**Post date:** [May 17, 2018, 9:48pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/32 "2018-05-17T21:48:09Z")

</div>

> [@TheDeadFarmer](#):
>
> If no one has any other suggestions I will redo it

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

---

<div class="post-metadata">

**Author:** ![thetechnobear](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/thetechnobear/32/42_2.png) [@thetechnobear](https://forum.critterandguitari.com/u/thetechnobear)\
**Post date:** [May 17, 2018, 9:48pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/33 "2018-05-17T21:48:28Z")

</div>

so you didn’t do the bit that says

> [@](#):
>
> vi /etc/fstab  
> /dev/mmcblk0p2 /sdcard ext4 defaults,noatime 0 0

🙂

---

<div class="post-metadata">

**Author:** ![thetechnobear](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/thetechnobear/32/42_2.png) [@thetechnobear](https://forum.critterandguitari.com/u/thetechnobear)\
**Post date:** [May 17, 2018, 9:55pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/34 "2018-05-17T21:55:05Z")

</div>

your fstab should be

```auto
/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

```auto
fdisk -l 
```

id expect something like

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

---

<div class="post-metadata">

**Author:** ![TheDeadFarmer](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TheDeadFarmer](https://forum.critterandguitari.com/u/TheDeadFarmer)\
**Post date:** [May 17, 2018, 9:58pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/35 "2018-05-17T21:58:41Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![thetechnobear](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/thetechnobear/32/42_2.png) [@thetechnobear](https://forum.critterandguitari.com/u/thetechnobear)\
**Post date:** [May 17, 2018, 10:00pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/36 "2018-05-17T22:00:31Z")

</div>

I need to know the output from the following commands

```auto
fdisk -l
```

```auto
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 🙂

---

<div class="post-metadata">

**Author:** ![TheDeadFarmer](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TheDeadFarmer](https://forum.critterandguitari.com/u/TheDeadFarmer)\
**Post date:** [May 17, 2018, 10:02pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/37 "2018-05-17T22:02:55Z")

</div>

@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 ~]#

---

<div class="post-metadata">

**Author:** ![TheDeadFarmer](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TheDeadFarmer](https://forum.critterandguitari.com/u/TheDeadFarmer)\
**Post date:** [May 17, 2018, 10:04pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/38 "2018-05-17T22:04:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![thetechnobear](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/thetechnobear/32/42_2.png) [@thetechnobear](https://forum.critterandguitari.com/u/thetechnobear)\
**Post date:** [May 17, 2018, 10:13pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/39 "2018-05-17T22:13:48Z")

</div>

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

can you try

```auto
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 🙂

```auto
nano /etc/fstab
```

make sure it reads

```auto
/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

```auto
~/scripts/shutdown.sh
```

the restart it…

once its restarted, if you type

```auto
mount
```

you should see the line

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

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

---

<div class="post-metadata">

**Author:** ![TheDeadFarmer](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TheDeadFarmer](https://forum.critterandguitari.com/u/TheDeadFarmer)\
**Post date:** [May 17, 2018, 10:16pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/40 "2018-05-17T22:16:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![thetechnobear](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/thetechnobear/32/42_2.png) [@thetechnobear](https://forum.critterandguitari.com/u/thetechnobear)\
**Post date:** [May 17, 2018, 10:17pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/41 "2018-05-17T22:17:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TheDeadFarmer](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TheDeadFarmer](https://forum.critterandguitari.com/u/TheDeadFarmer)\
**Post date:** [May 17, 2018, 10:20pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/42 "2018-05-17T22:20:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![thetechnobear](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.critterandguitari.com/thetechnobear/32/42_2.png) [@thetechnobear](https://forum.critterandguitari.com/u/thetechnobear)\
**Post date:** [May 17, 2018, 10:21pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/43 "2018-05-17T22:21:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TheDeadFarmer](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TheDeadFarmer](https://forum.critterandguitari.com/u/TheDeadFarmer)\
**Post date:** [May 17, 2018, 10:33pm UTC](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427/44 "2018-05-17T22:33:50Z")

</div>

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 🤔 (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]

[Previous page](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427.md?page=1)

[Next page](https://forum.critterandguitari.com/t/using-an-sd-card-for-patches/1427.md?page=3)
