[Manjaro] Fixing /etc/fstab from serial console while using lvm2
#1
"Remember, it's not an adventure if part of it doesn't suck!"

I just moved my Rockpro64 from a 128GB emmc to a 256GB emmc, and I remembered everything except one thing: Updating /etc/fstab to use different UUIDs before swapping the emmcs. So it wouldn't finish booting. I attach the serial console, figure out what the problem is, and the question is, how do you fix it without using anything else?

I was in U-Boot to begin with, so we want to get to the initramfs where we have lvm tools. We have commands like 'fatls mmc 0:1' to look around. (List files on a FAT-formatted filesystem, emmc interface, device 0, partition 1)

https://docs.u-boot.org/en/stable/usage/index.html
https://docs.u-boot.org/en/stable/usage/cmd/booti.html

Code:
setenv bootargs break
fatload mmc 0:1 $fdt_addr_r /dtbs/rockchip/rk3399-rockpro64.dtb
fatload mmc 0:1 $kernel_addr_r Image
fatload mmc 0:1 $ramdisk_addr_r initramfs-linux.img
booti $kernel_addr_r $ramdisk_addr_r:$filesize $fdt_addr_r

Now we are in the initramfs environment.

Code:
# blkid
# mkdir /mnt
# mount /dev/VG1/LV1 /mnt
# chroot /mnt
# vi /etc/fstab

Done, now we can reboot.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  RockPro64 linux console video mode callegar 0 2,006 09-06-2022, 02:32 PM
Last Post: callegar
  prevent bluetooth from loading (manjaro, no wifi/bt card installed) flounder 0 1,973 02-17-2022, 12:10 PM
Last Post: flounder
  CPU Fan Won’t Turn On in Manjaro publiclewdness 0 1,609 12-31-2021, 12:51 AM
Last Post: publiclewdness
  Manjaro ARM - Built-in ethernet was broken with kernel 5.14.1-1 (over now) Dendrocalamus64 2 3,749 09-11-2021, 08:58 PM
Last Post: t4_4t
  Headphone jack issues Manjaro Mangled 2 4,173 03-06-2021, 11:01 PM
Last Post: Mangled
Thumbs Up First Manjaro Mainline build! Luke 10 21,575 10-20-2020, 04:29 AM
Last Post: vfr400racer
  Wifi on Manjaro User 19517 0 2,628 09-14-2020, 06:53 PM
Last Post: User 19517
  No audio output with Manjaro Arm 20.04 Faradn 2 5,948 08-02-2020, 09:48 AM
Last Post: new-rockpro-user
  RockPro64 Linux Manjaro HDMI 4K mkne 12 20,242 05-03-2020, 07:23 AM
Last Post: PakoSt

Forum Jump:


Users browsing this thread: 1 Guest(s)