WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Size of root directory  (Read 4684 times)

Offline BioYakor

  • Newbie
  • *
  • Posts: 4
Size of root directory
« on: March 10, 2021, 03:42:00 PM »
Hello

My question is simple

When im done install tiny on disk (8gb) (from CorePlus 11.iso), i get the following:


And my question is: how i can install it with full use size of disk (8gb) root directory?
Im need this, because im need then execute linux-kernel-sources, and this thing fully load this 1.7GB.

Sorry for my bad English. And thanks for responses.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14801
Re: Size of root directory
« Reply #1 on: March 11, 2021, 01:25:26 AM »
If you are speaking of the linux-kernel-sources-env extension, I believe it installs the kernel source to /usr/src, which is in ram.

You can manually prepare the kernel source on a hard disk or usb stick.

Offline BioYakor

  • Newbie
  • *
  • Posts: 4
Re: Size of root directory
« Reply #2 on: March 11, 2021, 01:49:55 AM »
My Image mark as nonactive(

1.7 Gb root directory is some static dimention
On my VM i set 1/2/4/8 GB Ram, and this size not cahnge
Btw, primary disk have size 8GB, and stay mount on /mnt/sda1.
I don't understand why it's happend.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14801
Re: Size of root directory
« Reply #3 on: March 11, 2021, 02:02:15 AM »
It would have been good to mention you were using tinycore on a vm

Offline BioYakor

  • Newbie
  • *
  • Posts: 4
Re: Size of root directory
« Reply #4 on: March 11, 2021, 02:15:06 PM »
Today install tiny on USB 32Gb from VM.
Size of root directory was 2.7 gb. But after 3-4 starts, size was set on 1.9 GB.

Continue my experiments..

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: Size of root directory
« Reply #5 on: March 11, 2021, 03:46:44 PM »
Hi BioYakor
What is it you are trying to achieve?

The root directory is in RAM. This is by design.
bin, dev, etc, home, lib, mnt, opt, proc, root, run, sbin, sys, tmp, usr, and var are all in RAM and get rebuilt every time you boot.
You can only make the  home  and  opt  directories reside on your disk so they are persistent.

... Btw, primary disk have size 8GB, and stay mount on /mnt/sda1. ...
Yes. Your extensions are stored in  /mnt/sda1/tce/optional.  When those extensions get loaded, they are first loop mounted
under  /tmp/tcloop.  Then their contents are linked into the file system (/usr/local/bin, /usr/local/bin, ....).

Offline BioYakor

  • Newbie
  • *
  • Posts: 4
Re: Size of root directory
« Reply #6 on: March 12, 2021, 02:25:50 AM »
Thanks
I figured it out tonight)

So, my task run linux-kernel-sources.sh
All ok, and "make" start, but before he end his work, memory of rootfs being full (1.7GB)
and i can't resume build my driver same reason
And i dont know wat to do next to solve this..