-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v40: resize2fs removed from S02resize init script #12443
Comments
It's done via
|
Did you actually encounter an issue with the partition not resized with the reproduction steps you put in the ticket? Or just a thought reading the code (or actually the comment before the line of code, as it is misleading)? |
parted only resize the partition, not the filesystem. But for example, if you want to do a image of your disk to transfert it on a bigger one, it'll not work anymore like in v39. you can easily test it in a virtual machine, install batocera, then extend the virtual disk. You'll have the partition increase but not the filesystem. I think this could be done at step7. (if nofilesystem : mkfs.ext4 else resize2fs) |
You originally said "I don't understand how this can resize the partition in this case" but the issue is the resizing of the filesystem after the partition has been extended, I understand the issue better now. You're right it's probably needed in a later step of the script. |
yes, sorry to not be clear enough. They are also another problem introduce in same commit: "sgdisk -e" in first step, is throwing an error (exit code 4) if not space is avaiable at the end of the drive. This is because of a change in textoutput():
It's throwing a warning like "sector overlap...., try to reduce last partition", it's really confusing. (I have already see report on discord some days ago, with users trying to reduce their partition). the "sgdisk -e" is working fine the first time, but in step 2 we extend the partition to 100%, then if we try to resize again. (but we don't have new space), the script is exiting. |
we don't use Users were only seeing errors if they overwrote their to avoid another round of trying to move the 2nd partition table to the end of the disk if someone does something stupid, you could do. |
step1 : sgedit -e indeed move the gpt table at the end of the disk This is the reason why if you relaunch sgedit -e again, it will complain about overlap. (Because both sgedit -e && parted fix don't use same gpt total size, because of the gap difference). Note that , for example, at first boot, if the format of the drive is going bad,crash,timeout, murphy law...., you're stuck. on next boot, it'll crash on step1 and will not retry to format again. The only way to be correct, if you want to keep both step1 && step2, it to resize with parted, but not 100%, 100%-1MB. (Like the begin of the drive). Like this, both commands are ok. (But personnaly, I think it's easier to simply use parted -f && 100%, and not use sgedit -e anymore.)
Yes sure, this make sense to use format at initial boot && format. because parted resize only resize the partition, it's not extending the filesystem. I known a lot of people, doing an minimal image of a batocera install (with their setup,roms,customisation) for backup purpose , or transfert. |
Batocera build version
40 2024/08/01 01:28
Your architecture
x86_64
Your Graphic Processor Unit(s) (GPU)
nvidia rtx2070 super
Issue description
since 7bbbf53,
resize2fs is removed from the S02resize
I don't understand how this can resize the partition in this case
Detailed reproduction steps
set autoresize=true in /boot/batocera-boot.conf
Details of any attempts to fix this yourself
No response
Details of any modifications you have made to Batocera.
no
Logs and data
No response
The text was updated successfully, but these errors were encountered: