How to boot from eMMC but have root directory on an NVME?
#1
I have a PBP and is currently running Manjaro KDE from factory on it. I have the adapter and a NVME. I was wondering if I could have just the necessary files on the eMMC to boot and then have everything else on the NVME like home directory and programs and such. I have not found an updated way to do this. Also I am open to suggestions for alternatives. I would just like to have everything touching NVME after booting while still running Manjaro KDE.
#2
partition your nvme the way you want it, make filesystems, move files over, edit fstab, check the boot config, then reboot.

i do the same thing on debian currently - my emmc just has boot partitions until i go all out with the SPI boot method.
#3
(06-23-2020, 07:54 PM)xmixahlx Wrote: partition your nvme the way you want it, make filesystems, move files over, edit fstab, check the boot config, then reboot.

i do the same thing on debian currently - my emmc just has boot partitions until i go all out with the SPI boot method.

Ok, there seems to be two partitions a BOOT_MNJRO and a ROOT_MNJRO.

I have found the fstab file but it has only one entry which would be for BOOT_MNJRO. So just add a new entry for the new "ROOT_MNJRO"?

Also where is the boot config and what should I change in it?

Thank you for the quick reply still a noob when it comes to file systems.
#4
(06-23-2020, 08:14 PM)QazTheWsx Wrote:
(06-23-2020, 07:54 PM)xmixahlx Wrote: partition your nvme the way you want it, make filesystems, move files over, edit fstab, check the boot config, then reboot.

i do the same thing on debian currently - my emmc just has boot partitions until i go all out with the SPI boot method.

Ok, there seems to be two partitions a BOOT_MNJRO and a ROOT_MNJRO.

I have found the fstab file but it has only one entry which would be for BOOT_MNJRO. So just add a new entry for the new "ROOT_MNJRO"?

Also where is the boot config and what should I change in it?

Thank you for the quick reply still a noob when it comes to file systems.


After bricking my PBP more than one time with flashing U-Boot i handled it in this way
  1. install partitionmanger or gparted
  2. format the NVMe and make one partition with EXT4 on it
  3. mount the newly created NVMe partition to /mnt
  4. "cd /mnt"
  5. "mkdir dev proc sys mnt"
  6. "rsync -aHxv --numeric-ids --progress /* /mnt --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/mnt"
  7. start partitionmanager KDE or gparted
  8. edit the partition and rename the original partition label from "MNJRO_ROOT to MNJRO_ROOT_1 on the SD card
  9. edit and rename the partition label of the NVMe partition to MNJRO_ROOT
  10. apply all changes and reboot
Now the PBP boots from /boot on the EMMC and mounts / from the NVMe
Mission accomplished and no need for u-boot updates or renewals
NO warranties that it works the same way on other PBP's of other users !!!!
#5
you don't need /boot on the emmc if you are using a uboot with nvme support like mrfixit2001 v2.0.

you can also pass the label to mkfs (depending on your fs it is -L -l -n etc.) eliminating a step.

i am also expecting you can name your new nvme label whatever you want and then change that reference in uboot and fstab configs if you are loading by name.

it may also be a good time to make a swap partition.

i replicated the whole unofficial debian partition install structure from emmc to nvme to prepare for SPI boot sometime in the future. you may want to consider that approach for manjaro, also. if you don't end up doing that it is just a lost few MB on your recently huge new nvme. Wink
#6
So I was able to have /boot on the eMMC and /root on the NVME. Here is the process that I did:

1. Made a Ubuntu SD card booted from it and installed Gparted.

2. Open Gparted then unmounted ROOT_MNJRO. Right click and select copy.

3. Open the NVME drive in Gparted. Create a partition table msdos. 

4. Apply table to drive.

5. Right click on the partition diagram of the NVME and select paste.

6. Size the partition to desired size. 

7. Apply all operations. This may take some time depending on how much data is moved.

8. Rename the new copy of the partition to ROOT_MNJRO_0

9. Open file manager and navigate to /BOOT_MNJRO/extlinux

10. Open extlinux.conf in your text editor of choice.

11. On line 4 you see "root=LABEL=ROOT_MNJRO". At the end of MNJRO add "_0". Now it should be "root=LABEL=ROOT_MNJRO_0".

12. Shutdown and remove SD card.

Now it should run /boot off of the eMMC and / off of the NVME. 

I can't guarantee that it would work on other machines but it is how I was able to get it to work.
#7
(06-24-2020, 11:56 AM)xmixahlx Wrote: you don't need /boot on the emmc if you are using a uboot with nvme support like mrfixit2001 v2.0.

you can also pass the label to mkfs (depending on your fs it is -L -l -n etc.) eliminating a step.

i am also expecting you can name your new nvme label whatever you want and then change that reference in uboot and fstab configs if you are loading by name.

it may also be a good time to make a swap partition.

i replicated the whole unofficial debian partition install structure from emmc to nvme to prepare for SPI boot sometime in the future. you may want to consider that approach for manjaro, also. if you don't end up doing that it is just a lost few MB on your recently huge new nvme. Wink

ALL uboot updates so far now procuced anger like "noo boot", "PBP dead" and so on.
For now I have lost all interest in experimenting with unsupported uboot-releases and let the PBP boot from the EMMC.

Maybe Manjaro will in the future release an official uboot to boot entirely from the NVMe disk......
#8
(06-24-2020, 11:56 AM)xmixahlx Wrote: you don't need /boot on the emmc if you are using a uboot with nvme support like mrfixit2001 v2.0.

you can also pass the label to mkfs (depending on your fs it is -L -l -n etc.) eliminating a step.

i am also expecting you can name your new nvme label whatever you want and then change that reference in uboot and fstab configs if you are loading by name.

it may also be a good time to make a swap partition.

i replicated the whole unofficial debian partition install structure from emmc to nvme to prepare for SPI boot sometime in the future. you may want to consider that approach for manjaro, also. if you don't end up doing that it is just a lost few MB on your recently huge new nvme. Wink

My goal was to stay away from dealing with uboot. Don't want to deal with the possibility of bricking the device. Since I moved the / partition only, the eMMC still has a swap partition from my initial install. This way the keeps the power consumption down from the NVME and keeps the filesystem from competeing with swap for bandwidth when in heavy use. Think of the eMMC after boot as a slower dedicated RAM. Also if the install breaks on my NVME I can change one config file from an SD and get an entire identical system running. Finally I did not have to deal with fstab.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 2,604 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 2,786 12-11-2023, 03:47 AM
Last Post: calinb
  Manjaro 20.04 not loading from SD (with Manjaro on eMMC) zaius 1 630 12-07-2023, 03:11 PM
Last Post: wdt
  Boot Order in Pinebook Pro food 8 1,879 11-23-2023, 07:37 AM
Last Post: KC9UDX
  [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present zackw 1 2,169 08-21-2023, 09:08 PM
Last Post: vanessadonald
  Issue with booting Manjaro from encrypted NVMe drive on pbp Cs137 1 1,146 08-18-2023, 01:58 AM
Last Post: juliamenendez
  Emergency Mode Boot Hotkey? jiacovelli 20 5,903 06-02-2023, 01:32 PM
Last Post: wdt
  Blank screen after Armbian 20.04 install to emmc? psychoacoustic 3 3,843 04-01-2023, 03:22 PM
Last Post: TRS-80
  Fix for Armbian not booting on PBP from eMMC agreenbhm 7 4,436 04-01-2023, 02:58 PM
Last Post: TRS-80
  NVME fails detection our0 1 944 01-30-2023, 08:45 AM
Last Post: Tazdevl

Forum Jump:


Users browsing this thread: 2 Guest(s)