Soft restart doesn't work
#1
I updated to 20.08. I have a couple of issues:

Soft reboot: If I do a reboot from the command menu, the system will shut down, then restart where I get a full screen image (looks like the manjaro logo stretched from top to bottom). The image will change a couple of times. The restart does not happen. I have to do a hard power down. If however I do a shutdown or power off the machine, and then restart (via the power key), the system boots just fine.

Boot from SD: Doesn't work on Manjaro images, but does on Debian. ??

Wi-Fi: No longer worked after an update. I think the update took the system to 20.09. If I toggle Wi-Fi off and on, then reboot (can only do this with hard power down), wi-fi is not available. Nothing worked. I had to re-flash the emmc with 20.08, then after login do an update to 20.09. Now it works. Soft reboot is still broken.

Now sure if it matters, but I upgraded the emmc from 64GB to 128GB. 

Strange.
#2
>Boot from SD: Doesn't work on Manjaro images, but does on Debian. ??
Could there be duplicate identical filesystem labels? (sudo blkid)
If so, this is NOT a good idea.
dosfslabel (11 chars max), e2label, also change fstab and extlinux
#3
(09-16-2020, 10:29 PM)wdt Wrote: >Boot from SD: Doesn't work on Manjaro images, but does on Debian. ??
Could there be duplicate identical filesystem labels? (sudo blkid)
If so, this is NOT a good idea. 
dosfslabel (11 chars max), e2label, also change fstab and extlinux

I'm not sure what this means. I download the image and flash an SD using etcher. Are you suggesting that the SD has an identical fs label to the existing image on the eMMC? I don't understand how this would matter. If I booted from an SD and then installed couldn't I got back and reinstall with the same SD?

I'm relatively new to Linux.

Thanks
#4
>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)
#5
You're right. Excellent.
When I ran blkid with the SD inserted, It didn't list SD partitions. I moved the SD to USB/sd dongle and lo and behold, the labels are the same!

Question: would changing the label on the SD make it bootable? I would think so. Question is how do I change the label on the SD? 

Thanks. You have solved a puzzling  mystery. 


Code:
[admin@pbp ~]$ sudo blkid
[sudo] password for admin:
/dev/zram0: LABEL="zram0" UUID="ac24ac79-2bff-4767-85a0-e696f549b97f" 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_MNJRO" LABEL="BOOT_MNJRO" 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 ~]$
#6
>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)
#7
(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 ~]$
#8
From your blkid paste,,, did you forget to change label for rootfs?? /dev/sda2 if booted SD,,
/dev/mmcblk2p2 when emmc booted (and I would change on SD)
e2label /dev/sda2 your_chosen_label
You do understand??,, manjaro is on 2 partitions, "/" and boot,, / is ext4,,, boot is vfat
fstab will mount both of these, with correct data
the fstab on emmc is for emmc partitions, fstab on SD is for SD partitions
#9
(09-18-2020, 02:56 PM)wdt Wrote: From your blkid paste,,, did you forget to change label for rootfs??  /dev/sda2 if booted SD,,
/dev/mmcblk2p2 when emmc booted (and I would change on SD)
e2label /dev/sda2 your_chosen_label
You do understand??,, manjaro is on 2 partitions, "/" and boot,, / is ext4,,, boot is vfat
fstab will mount both of these, with correct data
the fstab on emmc is for emmc partitions, fstab on SD is for SD partitions

I couldn't set the label on sda2. I get an error: "Logical sector is zero". 
Not sure what that means.


Code:
[admin@pbp ~]$ sudo blkid
[sudo] password for admin:
/dev/zram0: LABEL="zram0" UUID="30fcf278-b652-47b1-8dc2-d7f2971e4ee8" 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_XXXXXX" LABEL="BOOT_XXXXXX" UUID="70C6-B789" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="4d0c1911-01"
/dev/sda2: LABEL="ROOT_MNJRO" UUID="06302dbe-5c26-4e88-8501-caf1fe26b3e5" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="4d0c1911-02"
[admin@pbp ~]$ sudo dosfslabel /dev/sda2 ROOT_XXXXXX
Logical sector size is zero.
[admin@pbp ~]$
#10
I don't know either
you can try ,,, tune2fs -L your_chosen_label /dev/sda2 (man page say 16 chars max)
or gparted for graphical
You could do e2fsck /dev/sda2 (on unmounted partition) to see if there is any problem


Possibly Related Threads…
Thread Author Replies Views Last Post
  Forgot my Pinebook password. Booting from MIcroSD doesn't work. ksfoodforest 0 635 01-30-2021, 11:08 AM
Last Post: ksfoodforest
  NVMe doesn't show up Seferi 19 6,911 10-30-2020, 07:08 AM
Last Post: ReddestDream
  Pinebook Pro doesn't boot most of the time unless connected via USB-serial! nib0 16 4,813 09-29-2020, 10:24 PM
Last Post: wdt
  Trackpad doesn't pick up small movements dieselnutjob 3 2,176 07-15-2020, 06:18 AM
Last Post: dieselnutjob
  Does Fastboot Devices tools work on Pinebook Pro? pinejolla 6 3,194 06-16-2020, 03:14 AM
Last Post: FeMike
  How do the kill switches work? Stevie-O 7 3,537 06-01-2020, 11:34 AM
Last Post: Phillip Bell
  screen doesn't turn on atll mroz 0 888 05-24-2020, 02:50 PM
Last Post: mroz
  Help with recovering PBP which doesn't turn on brzegorz 0 846 03-19-2020, 11:26 AM
Last Post: brzegorz

Forum Jump:


Users browsing this thread: 1 Guest(s)