Copy2Ram broken on 4.3.5

Started by The_Raven, June 27, 2018, 10:36:09 AM

Previous topic - Next topic

The_Raven

Seemes like copy2ram is broken on new plop.
Boot ends in "No space left on the device" message.
Is the ramdisk to small?
Maybe because i added some additional drivers (bnx2)?

Elmar

How much RAM has your computer?

Regards
Elmar

The_Raven

512GB  ;D

Tested ond diffrent systems.
Funny: Only USB-Stick is not working. PXE works. :o

Elmar

Quote from: The_Raven on June 27, 2018, 14:35:44 PM
512GB  ;D

What! Really!?!

When you boot from USB without copy2ram, whats the size of rootfs? You get that info with 'df -h'.

The_Raven

Quote from: Elmar on June 27, 2018, 14:40:36 PM
What! Really!?!
Yes  ;)
              total        used        free      shared  buff/cache   available
Mem:      528350304     1077580   526010832       10200     1261892   524925200
Swap:        999996           0      999996

It is a server btw.

Quote from: Elmar on June 27, 2018, 14:40:36 PM
When you boot from USB without copy2ram, whats the size of rootfs? You get that info with 'df -h'.
USB: 1,6GB, used 64MB.
PXE: 932MB, used 394MB

Elmar

Usually, the rootfs gets 50% of the RAM. Thats the default of the mount command.

I will update the code for copy2ram, to allocate at least the required space for rootfs.

The_Raven

Wait, something is strange :o
I use the i486 version of plop.
And it see's "only" 1942196kb of RAM.
Why?
If it has only <2GB, and the rootfs is 1.6GB -> no wonder that it does not work!
But i ask me why is the rootfs 1.6GB when booting from USB and only 932MB from PXE? :o
Maybe because of the customized initrd?

Elmar

The i486 version should see about 3 GB RAM.

The_Raven

3.2GB i know. But it sees only <2GB. :o

Option 1: Find out why it see's only 2GB
Option 2: Find out why rootfs need 1.6GB

Elmar

I updated the copy2ram script. It automatically resizes the rootfs, if required.

Please try it.

https://www.plop.at/en/ploplinux/upcoming/index.html

The_Raven

Sorry for the late response. I am busy ATM.
But i will try it for sure!  8)
Give you feedback when done.

The_Raven

Tested and it did not work.
4GB Ram (3GB available), Rootfs 1.5GB, Required 52GB :o
Looks like it tries to copy my wohle usb-pen to ramdisk (it is a 64GB-Pen but with 52GB partition).
And i ask me why is rootfs so big? Is this normal?

Edit: Ok, can not add picture sorry.

Elmar

 ??? yes, you are right.

But the fix is easy. Replace your syslinux/kernel/initramfs.gz with this one https://download.plop.at/tmp/initramfs.gz

The_Raven

Kernel-Dump ::)
I have i486 kernel, initramfs is 64bit right?

Elmar

Yes, 64 bit.

Use this for 32 bit https://download.plop.at/tmp/initramfs32.gz

You have to rename the file to initramfs.gz.

The_Raven

Now it works!
Required: 482432kb  8)

Elmar

Great. I make a minor release for the Live Version.

The_Raven

#17
Very important to know:
If you get the error "no space left on the device", and you boot from syslinux, keep in mind that the folder "/syslinux" is loaded to ram!
If there are too many things inside this folder, you get this error.