To use the built-in 8GB of eMMC storage on the Orange Pi Plus as a writable volume in Linux, you need to delete the existing partitions (I think mine were formatted as FAT/WIN32), create a new partition, format the partition, then mount it:
- Delete the existing partitions:
sudo fdisk /dev/mmcblk1
p
to list all partitions, thend
and a number to delete all existing partitions, thenw
to write the changes.
- Create a new partition:
sudo fdisk /dev/mmcblk1
n
to create a new partition, then use all the defaults, thenw
to write the changes.
- Format the partition:
sudo mkfs.ext4 -L "emmc" /dev/mmcblk1p1
- Create a mount point:
sudo mkdir /emmc
- Mount the disk:
mount /dev/mmcblk1p1 /emmc
Comments
hello Jeff,
thanks for the blog. it's very usefull. I am tryied it & worked fine. now i am trying to install linux on orangepi emmc. i booted from sd card & tryied to dd Lubuntu.img to emmc. i am able to write image on emmc but its not booting. can you please tell me that, how can install linux on emmc & boot from it?
thnk you.
thanks! worked!
Hi Jeff I have an Orange Pi Pc Plus working (very nice) but I have installed on the EMMC Flash an android from youtube: https://www.youtube.com/watch?v=EZ0zLwynu4Q. The problem is I am not very good at Linux/Android and I'd like to be able to uninstall it in order tu use it for diferent proyects. I have written to the person who put it on youtube but I have not had any answer. I wonder if you would be so kind as to take a look at it and tell me how to do it - that is to uninstall it -
I thank you in advance ( even if you don't answer ) I understand that you may by a bussy person and me, an old 71 Y.O retired, trying to keep up with times hahaha.
Excuse if my English is not the best (this is not a translation) I lived in the UK for nine years ..... but too long ago. I live now in my home town Seville - Spain.
Anyway thanks again and I godbless:
Manuel Medrano.
<br />
orangepi@OrangePI:~$ sudo mkfs.ext4 -L "emmc" /dev/mmcblk1p1<br />
sudo: unable to resolve host OrangePI<br />
mke2fs 1.42.12 (29-Aug-2014)<br />
Discarding device blocks: done<br />
Creating filesystem with 3816704 4k blocks and 954720 inodes<br />
Filesystem UUID: caef44cd-42e1-4fcb-a4e3-7c369b567028<br />
Superblock backups stored on blocks:<br />
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
orangepi@OrangePI:~$ sudo mkdir /emmc
sudo: unable to resolve host OrangePI
mkdir: cannot create directory ‘/emmc’: File exists
orangepi@OrangePI:~$ sudo mkdir /emmc
sudo: unable to resolve host OrangePI
mkdir: cannot create directory ‘/emmc’: File exists
orangepi@OrangePI:~$ sudo mkdir/emmc
sudo: unable to resolve host OrangePI
sudo: mkdir/emmc: command not found
orangepi@OrangePI:~$ mount /dev/mmcblk1p1 /emmc
mount: only root can do that
Why?
You need to run the
mount
command assudo
(sosudo mount...
). Also, all those other errors (File exists
andcommand not found
) are just saying that you already created the/emmc
directory.