Comments (10)
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.
"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.
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.
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.
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.
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.
Thanks, I will look into how the raspi-config overlay filesystem works.
from pi-safe.
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.
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.
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)
- Pisafe stalls on reading sdcard. HOT 16
- Any way to use it on Windows (or WSL)? HOT 6
- Support of ZStandard compression HOT 3
- Problem shrinking Raspi-Endeavouros SDCard. HOT 6
- Ignore specific partitions? HOT 1
- USBoot Backup? HOT 30
- Feature Request: integrate gpg encryption of images HOT 4
- pigz not working HOT 4
- Syntax error on Debian 11. HOT 4
- SD card >16Gb: nothings happens after warning. No backup HOT 3
- On backup, always installing pishink HOT 11
- Time after time HOT 2
- Virtualbox on Windows-sdcard not found HOT 1
- Difficult to distinguish which volume is the source, which the target HOT 1
- nvme support? HOT 16
- Not usefull if your system is on SSD HOT 2
- Version 1.2.10 Slow HOT 12
- Tooo loooong HOT 2
- Backup to "external" drive HOT 1
- PiSafe WARNING: ~ pv not installed. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi-safe.