1 |
On Tuesday 30 May 2017 02:20:44 Nikos Chantziaras wrote: |
2 |
> On 05/29/2017 10:13 PM, Walter Dnes wrote: |
3 |
> > On Mon, May 29, 2017 at 10:05:02PM +0300, Mart Raudsepp wrote |
4 |
> > |
5 |
> >> Ühel kenal päeval, E, 29.05.2017 kell 14:47, kirjutas Walter Dnes: |
6 |
> >>> I was using a chroot, and I bind-mounted the chroot's /dev and |
7 |
> >>> |
8 |
> >>> /proc |
9 |
> >>> and /sys on top of the host machine's directories. Bad idea... I now |
10 |
> >>> have a 10 megabyte /dev/shm on the host. Is it possible to resize |
11 |
> >>> /dev/shm to approx 1 gigabyte without rebooting? |
12 |
> >> |
13 |
> >> mount -oremount,size=1G /dev/shm |
14 |
> >> |
15 |
> >> Provided it's a tmpfs like it is for me. |
16 |
> >> |
17 |
> > Thanks; that pointed me in the right direction. The command gave me a |
18 |
> > |
19 |
> > response "mount: /dev/shm not mounted or bad option". After some trial |
20 |
> > and error, I found I had to... |
21 |
> > |
22 |
> > mount -o remount,size=1G /dev |
23 |
> |
24 |
> That does not look correct. /dev/shm should be a separate mount point, |
25 |
> independent of /dev. |
26 |
|
27 |
+1 |
28 |
|
29 |
Perhaps it could not be unmounted at the time Walter tried it and this is why |
30 |
it failed. If a specific size is required then it can also be added into the |
31 |
fstab: |
32 |
|
33 |
none /dev/shm tmpfs defaults,size=1G 0 0 |
34 |
|
35 |
Then umount followed by mount /dev/shm should get the desired size. |
36 |
-- |
37 |
Regards, |
38 |
Mick |