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
  Does tow-boot allow periodic wake from suspension to check for notifications? DrPlamsa 3 165 05-24-2022, 11:49 AM
Last Post: DrPlamsa
  Tow-boot problems and restoring uboot Zebulon Walton 7 411 05-18-2022, 12:33 PM
Last Post: Zebulon Walton
  Moving to Tow-Boot: Towards Device-Independant Images user641 9 842 04-30-2022, 07:56 PM
Last Post: TRS-80
  Tow-boot required to new installations user641 2 382 04-17-2022, 04:23 PM
Last Post: vusra
  Apps and SD Card biketool 2 372 03-06-2022, 09:47 AM
Last Post: biketool
  Glacially slow system updates on Mobian - waiting on boot 20m - 1h bujiraso 5 759 03-01-2022, 10:06 AM
Last Post: bujiraso
  How to flash a µSD-Card with Balena Etcher walter1950 1 311 01-22-2022, 02:06 AM
Last Post: bcnaz
  How to insert a SIM-Card and/or a µSD-Card walter1950 0 229 01-21-2022, 02:46 PM
Last Post: walter1950
  Suddenly, nothing but a backlight and a boot logo flash 3x5co 8 822 12-05-2021, 08:24 PM
Last Post: Anna
  How to Make Mobian Boot to Command Line Ubermunchen 4 1,317 11-02-2021, 08:34 AM
Last Post: ryo

Forum Jump:


Users browsing this thread: 1 Guest(s)