swap eMMC advice
#2
I just did this going from 128G to 256G. My process was,
- Create & edit the partition table on the new emmc with gparted. Leave 32M at the beginning for the bootloader, create a 500MB FAT16-formatted boot partition, make the rest one lvm2 physical volume.

- dd the bootloader files that the u-boot package leaves in /boot to the new boot partition.

- Decide on the partition layout, sizes and filesystems I want to start with this time. This is an opportunity to change anything. For ext4, also check the inode usage with df -i and adjust the inode ratio for the new partitions so usage will be about 25%, not 3% or less. The default bytes per inode ratio has not been changed in decades and is too low for most systems due to average file sizes having increased.

- Create the lvm2 volume group. The default physical extent size of 4k is rather small, I prefer more like 256m. Create the logical volumes, format them and mount them.

- Edit /etc/mkinitcpio.conf to add lvm2 hooks, since the prior system wasn't using it. Rebuild initramfs.

- rsync everything over. Make sure to get the new initramfs in the new /boot.

- Edit the new /boot/extlinux/extlinux.conf. At least you need to change the root device.

- Edit the new /etc/fstab so it will find and mount the new partitions / logical volumes.

I think that was everything.
  Reply


Messages In This Thread
swap eMMC advice - by jceaser - 10-23-2025, 09:42 AM
RE: swap eMMC advice - by Dendrocalamus64 - 10-23-2025, 09:40 PM
RE: swap eMMC advice - by Der Geist der Maschine - 10-23-2025, 09:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need new eMMC Karsten1 2 2,586 10-23-2025, 09:38 AM
Last Post: jceaser
  Happy eMMC and SDcard OS usage for Pinebook Pro Newbies... Paulie420 42 89,272 11-20-2023, 06:22 PM
Last Post: wdt
  I'm booting from NVME but I want to switch back to eMMC acruhl 4 4,559 04-23-2023, 06:58 AM
Last Post: acruhl
  Doesn’t power on after flashing emmc badguru 3 3,773 02-25-2023, 09:00 PM
Last Post: badguru
  eMMC problem with Tow-Boot/u-boot on SPI repa 3 4,002 02-21-2023, 01:49 AM
Last Post: repa
  Partial boot after installing Manjaro on emmc regivanx 11 8,513 02-06-2023, 09:11 AM
Last Post: wdt
  Unable to Boot anything (emmc or SDcard) line72 5 5,129 01-17-2023, 12:07 PM
Last Post: nfms
  What OS have you recently flashed onto PBP eMMC? jcun4128 6 5,500 11-26-2022, 09:39 AM
Last Post: KC9UDX
  Unable to boot from emmc after flashing it rfm83 3 4,216 11-08-2022, 10:59 PM
Last Post: rfm83
  Pinebook picky about which EMMC will boot flatulent_piney 8 7,265 11-05-2022, 06:03 PM
Last Post: ajtravis

Forum Jump:


Users browsing this thread: 1 Guest(s)