09-18-2020, 06:32 AM
(09-17-2020, 08:31 AM)wdt Wrote: >Are you suggesting that the SD has an identical fs label to the existing image on the eMMC?
Yes,, check with sudo blkid
(and since won't boot from SD, boot from emmc, then insert SD, then blkid)
>I don't understand how this would matter.
less /etc/fstab If it is mounting BY LABEL, the os could well get confused
(and this is not academic, someone already had a very confusing problem because of this)
(09-17-2020, 04:12 PM)wdt Wrote: >Question: would changing the label on the SD make it bootable?
Probably
boot emmc,,,,lsblk,,, line with "/" is emmc,, so you know which blk is which (mmcblkX, what is "X")
when I say /dev/SD, replace with right mmcblkX (sorry, since is in carrier, SD is /dev/sda, lots simpler)
all as root/sudo
dosfslabel /dev/sda1 BOOT_MNJ_SD (BOOT_MNJ_SD is 11 chars, so won't be truncated,,
also UPPER CASE so if case is changed behind your back, won't matter,,1st partition)
e2fslabel /dev/sda2 root_fs_mnj_sd (2nd partition)
edit/change /mnt/sda2/etc/fstab and /mnt/sda1/extlinux/extlinux.conf to have these names
(whatever /mnt/?? is, rootfs on SD for fstab (sda2), boot for extlinx.conf (sda1))
Takes more time to type than do
And BTW,, perhaps a "pro" tip,, since it is hard to put a physical label on a uSD,, too small
cd / (of SD) sudo touch This-is-$DISTRO-VERSION-SD,,, replace distro-version with appropriate
Then ls /,,, you don't have to dig thru etc to find out just what is this
--edit--
Sorry, read too fast, since SD is in carrier, it is /dev/sda,, makes it a lot easier
so dosfslabel /dev/sda1 whatever
e2label /dev/sda2 whatever
Perhaps use applet by clock to unmount , unplug, replug, will have new names, remount
mount |grep sda to see where they are mounted for editing fstab, extlinux
OR,, since I see are UUIDs are different, could mount by UUID rather than label, but still could be confusing for YOU,
which is which? (when not in carrier)
I changed the label; no joy.
Code:
[admin@pbp ~]$ sudo blkid
[sudo] password for admin:
/dev/zram0: LABEL="zram0" UUID="48a82b7c-b22c-484a-8439-fa6a695e00d1" TYPE="swap"
/dev/mmcblk2p1: SEC_TYPE="msdos" LABEL_FATBOOT="BOOT_MNJRO" LABEL="BOOT_MNJRO" UUID="70C6-B789" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="4d0c1911-01"
/dev/mmcblk2p2: LABEL="ROOT_MNJRO" UUID="06302dbe-5c26-4e88-8501-caf1fe26b3e5" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="4d0c1911-02"
/dev/sda1: SEC_TYPE="msdos" LABEL_FATBOOT="BOOT_XXXXX" LABEL="BOOT_XXXXX" UUID="6056-A6D8" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="8bdbf46c-01"
/dev/sda2: LABEL="ROOT_MNJRO" UUID="781e8202-6c77-4bd4-b602-9601f48a9136" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="8bdbf46c-02"
[admin@pbp ~]$