Tinker Board Forum

Full Version: eMMC - Memory - Device.....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello together,

I use the board and boot the system over microSD - Card.
So, how can I use the internal eMMC for SWAP or tmp - directory.

What is the name of device?   Huh

Best regards



Zhéxué M.
when i last booted the microSD , I had forgot that there were my pictures , and i had to restore all of them . I tried to do it by myself ,using different programs, but i didn't succeed. https://www.dataclinic.co.uk/
(07-01-2020, 07:24 PM)Zhexue.M Wrote: [ -> ]Hello together,

I use the board and boot the system over microSD - Card.
So, how can I use the internal eMMC for SWAP or tmp - directory.

What is the name of device?   Huh

Best regards



Zhéxué M.

Hi Zhéxué,

You can find eMMC here: "/dev/mmcblk1"

And following is the sample steps to enable swap at eMMC:

Step 1:
sudo mkdir /media/linaro/emmc

Step 2: edit /etc/fatab
sudo vi /etc/fstab
and add below
Code:
      /dev/mmcblk1p1  /media/linaro/emmc           ext4        defaults      1      1

Step 3: Mount file systems

sudo mount -a

Stes 4: Print system's mounted point
df

Step 5: Then you can edit or create the swap file path, size via config "/etc/dphys-swapfile".

sudo vi /etc/dphys-swapfile
Code:
CONF_SWAPFILE=/media/linaro/emmc/swap
CONF_SWAPSIZE=1000
//1000 (unit is MB)

Step 6: Restart the swap service
sudo service dphys-swapfile restart

Step 7.  Show results and confirm it
sudo swapon
Result would like:
Code:
$ sudo swapon
NAME                    TYPE  SIZE USED PRIO
/var/swap               file  100M   0B   -1
/media/linaro/emmc/swap file 1000M   0B   -2

Thank you for your question, as our new forum is online now, if you have any further questions, please join us on the new site.
https://tinker-board.asus.com/forum/