Giter VIP home page Giter VIP logo

Comments (10)

RichardMidnight avatar RichardMidnight commented on July 22, 2024

Steve-71,
Thanks for the info on the issue. I just added a note to the TIPS section of the online readme.md saying that auto-expand does not support read-only root partitions. I am wondering if I can detect this and notify the user. Can you tell me more about your file system? Can you run "sudo parted -l" in a terminal and show me the results?

from pi-safe.

steve-71 avatar steve-71 commented on July 22, 2024

"parted -l" output as requested below:

pi@raspberrypi:~ $ sudo parted -l
Model:  USB  SanDisk 3.2Gen1 (scsi)
Disk /dev/sda: 15.4GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      4194kB  273MB   268MB   primary  fat32        lba
 2      273MB   15.4GB  15.1GB  primary  ext4

Any clues there?
Steve

from pi-safe.

steve-71 avatar steve-71 commented on July 22, 2024

Did a diff between the /boot/config.txt files and there's this line at the end of the one that's using the overlay filesystem:

initramfs initrd.img-5.10.63-v7l+-overlay

and did a comparison of the /boot/cmdline.txt and the non-autoexpanding one says:

boot=overlay console=tty1 root=PARTUUID=fb514052-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

while the normal one omits the boot=overlay part, haven't found where it mounts the boot partition read-only yet.
Steve

from pi-safe.

RichardMidnight avatar RichardMidnight commented on July 22, 2024

Thanks,
No clues in the fdisk output. That is normal. The fact that the last partition is primary/ext4 means it can likely be shrunk. You are on the right track trying to figure out where it loads the overlay system as read-only. What is your hardware and OS including ver? Is this a stock configuration or specialized?
Richard

from pi-safe.

RichardMidnight avatar RichardMidnight commented on July 22, 2024

The beta version has new features which shows some details about the media including estimates on final image size. You can try the beta, then Tools, Analyze and point to your media. To revert to the published version, just install it over the beta.
Richard

from pi-safe.

steve-71 avatar steve-71 commented on July 22, 2024

OS details according to pisafe:
Raspbian GNU/Linux 10 (buster) hw=armv7l kernel=5.10.63-v7l+
Details from dmesg:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.63-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1459 SMP Wed Oct 6 16:41:57 BST 2021
[    0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.4

it's Raspberry PI OS Lite (32 bit) according to the Raspberry PI Imager, then update/upgrade'd, so nothing really special going on afaik. I use sudo raspi-config performance settings to turn on the overlay filesystem/read only boot partition so it can be power-cycled without shutdown.

I'm installing the beta of pisafe and try that out; thanks.

from pi-safe.

RichardMidnight avatar RichardMidnight commented on July 22, 2024

Thanks, I will look into how the raspi-config overlay filesystem works.

from pi-safe.

RichardMidnight avatar RichardMidnight commented on July 22, 2024

I believe it is the ',ro' (read only) on the two lines in the /etc/fstab file. I still need to confirm.

proc /proc proc defaults 0 0
PARTUUID=fb0d460e-01 /boot vfat defaults,ro 0 2
PARTUUID=fb0d460e-02 / ext4 defaults,noatime,ro 0 1

from pi-safe.

RichardMidnight avatar RichardMidnight commented on July 22, 2024

OK, I did some investigating and updated the beta to recommend turning off auto-expand if it detects an overlay. It is NOT fully tested but seems to work.
The overlay setting seems to be detectable by looking at the /boot/cmdline.txt as you indicated.
The read-only setting seems to be detectable by looking at the /etc/fstab file, but my quick testing shows that is not the problem.
Thanks again for the heads up on the situation

from pi-safe.

steve-71 avatar steve-71 commented on July 22, 2024

I've tested the new beta; the warning and default of turning off auto-expand works well.
Many thanks for the quick response and fix, most appreciated.

from pi-safe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.