PINE64
When I set SD card as /home, PP can't complete boot - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: When I set SD card as /home, PP can't complete boot (/showthread.php?tid=15581)



When I set SD card as /home, PP can't complete boot - nelstomlinson - 12-21-2021

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!


RE: When I set SD card as /home, PP can't complete boot - wibble - 12-22-2021

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?


RE: When I set SD card as /home, PP can't complete boot - nelstomlinson - 12-22-2021

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?id=tweaks#mount-sdcard-as-home-unencrypted 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.


RE: When I set SD card as /home, PP can't complete boot - Gumur - 12-23-2021

(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/


RE: When I set SD card as /home, PP can't complete boot - nelstomlinson - 12-27-2021

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"