Skip to content
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

Data partition size #861

Open
JanSykor opened this issue Dec 25, 2024 · 6 comments
Open

Data partition size #861

JanSykor opened this issue Dec 25, 2024 · 6 comments

Comments

@JanSykor
Copy link

JanSykor commented Dec 25, 2024

Hello @procount
Is there any reason to keep Data partition in Pinn on 500MB? On new installation it was possible to change of size of all systems but not Data partition size.
I bought 512 GB raspberry SSD with M2 hat and want keep rest of disk for data, but because it was not possible to change Data size, I am shortening last project space to 10GB and from rest made new ext4 partition for data. After this I can not boot my both raspios systems. IT stacks on some message about missing partition please sebe attached picture. Do you have some idea how to fix this problem?
Strange is that LibreElec working without problem.
IMG_20241224_202644
Thanks for your help.
Jan

@procount
Copy link
Owner

By altering the partitions manually, you have probably inadvertently changed the diskID. Some tools like Parted may do this. As you are using an SSD, it will be using partuiid references based on the diskID, so it won't find the partitions. (LibreELEC may use labels or another method to reference its partitions - just a guess - I haven't checked)
Posting the output of fdisk -l and the contents of /settings/installed_os.json or the cmdline.txt of an OS that will not boot will confirm this. (/settings refers to partition No. 5 when mounted in PINN).
Restoring the diskID to that referenced in installed_os.json will probably fix it. (Just ask if you don't know how to do this).

Regarding the data partition size, this can now be adjusted on installation when the Adjust Size of OSes dialog comes up. Even though the data partition is indicated as having a fixed size, this just means any spare capacity will not be shared to it, but you can add any extra size you want. But first you must remove the extra allocations from the other OSes to make room.
I suggest clicking the Clear button, entering the extra MBs you want to add to the Data Partition, then click the Balance button to share out any remaining space among the other expanding partitions. Of course you can manually set the extra sizes for the other OSes instead if you wish.

@JanSykor
Copy link
Author

Hello @procount
I am sending requested file in zip - I am not sure what is wrong.
If we did not fix it, I will try your sugestion with Clear and reinstall
Thanks for your help
Jan
pack.zip

@procount
Copy link
Owner

The fdisk command in Raspios initramfs is not very comprehensive and does not show the diskID.
Could you repeat it from PINN's command shell?
Boot into PINN (press shift if necessary to remain in PINN)
Ctrl-Alt-F2 to get to the command prompt.
Login with username/password of root/raspberry
Capture the output of fdisk -l

Alternatively, if you have enabled PINN's ssh, you can login remotely with a PuTTY and capture the output that way.

@JanSykor
Copy link
Author

Hello @procount
Here Is output from pinn
IMG_20241228_131406
IMG_20241228_131456

@procount
Copy link
Owner

Yeah, you see the current disk Identifier from fdisk is 0x6d144741, but in the cmdline.txt files, it is expecting it to be 7cde0769. So changing the partition sizes has changed the diskID.

You can change the diskID back again using fdisk.

fdisk /dev/nvme0n1
x
i
7cde0769
r
w
q

@JanSykor
Copy link
Author

JanSykor commented Dec 28, 2024

Yes you have right. Now both system is booting and in pinn fdisk is correct diskID.
Just the name must be in format 0x7cde0769 and command w not working as expected (rereading), but after restart it was ok.
1735425975499s

Unfortunately lite system cannot see other drives, but I think this is not related to pinn

Anyway thank you very much for your quick help
Jan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants