When I set SD card as /home, PP can't complete boot
#1
I was running Bookworm with /home on the SD card, and everything was working sort of OK. 
I tried to update to the 12 Dec weekly build, and all was OK until I edited /ect/fstab to make the SD card /home. After editing, repeatably, the PP will boot, and then the screen goes blank with the backlight still on. If I remove that third line from fstab it again boots normally. I can mount the SD card as /home and everything seems to be fine, but if I try to add it to the fstab to make it permanent, the boot fails/hangs/something.

I fell back on an earlier build with a 5.13 kernel, and still the exact same thing, so I'm thinking there may be something on my SD card that's causing trouble at boot?

Any ideas what might be going on? I would REALLY like to have my home back on the SD card without having to remount it every time I boot, because I'm having to boot a lot!
Pinephone beta edition, convergence model, Mobian Bookworm with Phosh.
  Reply
#2
I'm not clear on how you've mounted the SD as /home when it's running normally. Was it a full manual mount command, or did you uncomment the line in fstab then just mount /home? The second option would show the fstab line was error free.

Another question - does the SD have a copy of the working /home/<username> present so the user's configs, session data etc. is available?
  Reply
#3
I can mount the SD card with sudo mount -t ext4 /dev/mmcblk0p1 /home and it works. I'm running that way now, as I type this on the PP.  I have all the stuff in the mobian directory there that I expect.

I follow the instructions in https://wiki.mobian-project.org/doku.php...nencrypted to build the fstab entry.

The fstab line I build is modified from the first line of the current fstab:
Code:
UUID=5eb7c824-6cba-41ab-80cc-5c3d45012776    /    f2fs    defaults    0    1
to be like this:

Code:
UUID=3314869d-66e3-44ad-8dbb-7a7275b6ea64 /home    ext4    defaults    0    2


With that last line in there, the boot somehow either hangs, or delivers a blank screen, or something.
Pinephone beta edition, convergence model, Mobian Bookworm with Phosh.
  Reply
#4
(12-22-2021, 11:30 AM)nelstomlinson Wrote: I can mount the SD card with sudo mount -t ext4 /dev/mmcblk0p1 /home and it works. I'm running that way now, as I type this on the PP.  I have all the stuff in the mobian directory there that I expect.

To mount /dev/sdx as /home during boot, perhaps this link can help something:

https://linuxhint.com/use-etc-rc-local-boot/
  Reply
#5
This is the fstab that causes it to not complete the boot, if I uncomment that last line:
Code:
mobian@mobian:~$ cat /etc/fstab
UUID=49871ada-b2ac-4162-a2bc-7ea476ac0516    /    ext4    defaults    01
UUID=199221bd-4da8-4ed5-b995-0d0781698f6a    /boot    ext4    defaults    02
#UUID=3314869d-66e3-44ad-8dbb-7a7275b6ea64    /home    ext4    defaults    0    2
This is the shell script that successfully umounts and mounts the SD card when I run it as sudo:
Code:
mobian@mobian:~$ cat /usr/bin/msd
#! /bin/bash
umount /media/mobian/3314869d-66e3-44ad-8dbb-7a7275b6ea64
mount -t ext4 /dev/mmcblk0p1 /home[

Finally, this is the uuid of the SD:
Code:
mobian@mobian:~$ sudo blkid /dev/mmcblk0p1
[sudo] password for mobian:
/dev/mmcblk0p1: UUID="3314869d-66e3-44ad-8dbb-7a7275b6ea64" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="3634a9ac-01"
Pinephone beta edition, convergence model, Mobian Bookworm with Phosh.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  boot gets stuck shortly after disk decryption vortex 10 7,842 Yesterday, 10:50 AM
Last Post: demetemre
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 6,111 11-22-2023, 11:46 AM
Last Post: aLoop100o
  How to check if tow-boot is installed? jojuma 3 2,748 09-29-2023, 11:29 PM
Last Post: tllim
  Mobian boot failed with zstd message after upgrade. Mahgue 0 1,396 09-01-2023, 11:29 AM
Last Post: Mahgue
  4G data on default startup / boot dcinoz 1 1,741 04-29-2023, 11:24 PM
Last Post: dcinoz
  PinePhone won't boot after software update jb2000 2 2,749 03-17-2023, 07:26 AM
Last Post: Zebulon Walton
  Boot log analyses -> GPU no regulator (mali) found freelectro 0 1,827 03-06-2023, 12:06 PM
Last Post: freelectro
  APN settings not working with new operator SIM card user641 1 1,929 03-01-2023, 04:43 PM
Last Post: anonymous
  What does handle SD card automount? mdk 1 1,900 01-29-2023, 03:15 AM
Last Post: mdk
  [solved] Black screen at boot time mdk 0 1,657 01-13-2023, 03:33 AM
Last Post: mdk

Forum Jump:


Users browsing this thread: 1 Guest(s)