1 |
Ühel kenal päeval, E, 29.05.2017 kell 14:47, kirjutas Walter Dnes: |
2 |
> I was using a chroot, and I bind-mounted the chroot's /dev and |
3 |
> /proc |
4 |
> and /sys on top of the host machine's directories. Bad idea... I now |
5 |
> have a 10 megabyte /dev/shm on the host. Is it possible to resize |
6 |
> /dev/shm to approx 1 gigabyte without rebooting? |
7 |
|
8 |
mount -oremount,size=1G /dev/shm |
9 |
|
10 |
Provided it's a tmpfs like it is for me. |
11 |
|
12 |
> And how do I set up a working /dev and /proc and /sys on the chroot |
13 |
> separately to avoid this in future? I need /proc/cpuinfo because I |
14 |
> have |
15 |
> a build script in the chroot that checks the number of cores, and |
16 |
> sets |
17 |
> makeopts accordingly. Also I need /dev/null. |