1 |
Mick <michaelkintzios@×××××.com> [15-08-01 04:28]: |
2 |
> On Friday 31 Jul 2015 19:19:06 Meino.Cramer@×××.de wrote: |
3 |
> > Hi, |
4 |
> > |
5 |
> > on my tablet PC I used an Android App called "Linux deploy" |
6 |
> > to install an chroot-environment for - guess - Gentoo. :) |
7 |
> > |
8 |
> > The tablet has a SDcard slot and recognizes any FAT32 formatted |
9 |
> > SDcard automatically. Anything else will silently be ignored. |
10 |
> > |
11 |
> > Furthermore Linux deploy uses a single file when it is |
12 |
> > pointed to an external SDcard (with FAT32) which is mounted |
13 |
> > via a loop device, formatted ext4, and then populated with |
14 |
> > the Gentoo Linux files. |
15 |
> > |
16 |
> > So far so nice. |
17 |
> > |
18 |
> > Unfortunately the file size is limited to 4GB, which is not |
19 |
> > /that/ much in respect to what I want to install later (Linux |
20 |
> > deploy goes as far as LXDE runs a terminal and only a few moe things). |
21 |
> > |
22 |
> > I created a second file of 4GB and set it up as a "second partition". |
23 |
> > This is now additional storage capacity of another 4GB. |
24 |
> > |
25 |
> > BUT: |
26 |
> > Linux deploy already installed a full rootfs and more on the first |
27 |
> > file. And I need to increase the size of _the whole rootfs_ with this |
28 |
> > extra file ... not only the storage capacity located behind a certain |
29 |
> > mountpoint. |
30 |
> > |
31 |
> > Is there any way to add the capacity of the second file in a way, that |
32 |
> > the whole rootfs participates from/in/at/of (damn! sorry, I am not |
33 |
> > good with/at/in/of/from propositions) this? |
34 |
> > |
35 |
> > How can I deal with this? |
36 |
> > |
37 |
> > Thank you very much in advance for any help! |
38 |
> > Best regards, |
39 |
> > Meino |
40 |
> |
41 |
> Have you tried mounting it with '-o loop' from your chrooted system? However, |
42 |
> this won't work unless the chrooted system can see the new partition. |
43 |
> |
44 |
> -- |
45 |
> Regards, |
46 |
> Mick |
47 |
|
48 |
Hi Mick, |
49 |
|
50 |
yes...my question is a result from that. What I did is (the structure |
51 |
is an example): |
52 |
|
53 |
This is the root of the current image file, which contains the |
54 |
chroot environment and is mounted via loop by the android OS: |
55 |
drwxr-xr-x 2 root root 4096 2015-07-25 04:04 bin |
56 |
drwxr-xr-x 5 root root 1024 2015-07-25 07:42 boot |
57 |
drwxr-xr-x 3 root root 0 2015-08-01 04:26 config |
58 |
drwxr-xr-x 18 root root 15640 2015-08-01 04:26 dev |
59 |
drwxr-xr-x 2 root root 4096 2015-01-11 16:42 doc |
60 |
drwxr-xr-x 150 root root 12288 2015-07-31 04:01 etc |
61 |
drwxr-xr-x 5 root root 4096 2014-01-13 05:21 home |
62 |
lrwxrwxrwx 1 root root 5 2015-03-24 03:10 lib |
63 |
drwx------ 2 root root 4096 2014-10-08 17:04 lost+found |
64 |
drwxr-xr-x 3 root root 4096 2014-05-12 03:56 media |
65 |
drwxr-xr-x 5 root root 4096 2010-11-05 21:07 mnt |
66 |
drwxr-xr-x 14 root root 4096 2015-07-24 19:34 opt |
67 |
dr-xr-xr-x 179 root root 0 2015-08-01 04:26 proc |
68 |
drwx------ 96 root root 12288 2015-08-01 04:56 root |
69 |
drwxr-xr-x 19 root root 860 2015-08-01 04:28 run |
70 |
drwxr-xr-x 2 root root 12288 2015-07-28 21:07 sbin |
71 |
dr-xr-xr-x 12 root root 0 2015-08-01 04:26 sys |
72 |
drwxrwxrwt 39 root root 4096 2015-08-01 04:58 tmp |
73 |
drwxr-xr-x 18 root root 4096 2014-09-07 19:09 usr |
74 |
drwxr-xr-x 14 root root 4096 2015-01-08 08:27 var |
75 |
|
76 |
This fs is nearly filled up...not much more space available. |
77 |
|
78 |
So I created a second image file, which currently contains |
79 |
nothing more than 4GB of free space (YEAH!:) |
80 |
|
81 |
If I mount this (via loop) to for example to /mnt/ |
82 |
I will get: |
83 |
drwxr-xr-x 2 root root 4096 2015-07-25 04:04 bin |
84 |
drwxr-xr-x 5 root root 1024 2015-07-25 07:42 boot |
85 |
drwxr-xr-x 3 root root 0 2015-08-01 04:26 config |
86 |
drwxr-xr-x 18 root root 15640 2015-08-01 04:26 dev |
87 |
drwxr-xr-x 2 root root 4096 2015-01-11 16:42 doc |
88 |
drwxr-xr-x 150 root root 12288 2015-07-31 04:01 etc |
89 |
drwxr-xr-x 5 root root 4096 2014-01-13 05:21 home |
90 |
lrwxrwxrwx 1 root root 5 2015-03-24 03:10 lib |
91 |
drwx------ 2 root root 4096 2014-10-08 17:04 lost+found |
92 |
drwxr-xr-x 3 root root 4096 2014-05-12 03:56 media |
93 |
drwxr-xr-x 5 root root 4096 2010-11-05 21:07 mnt (behind this there is 4GB of additional space) |
94 |
drwxr-xr-x 14 root root 4096 2015-07-24 19:34 opt |
95 |
dr-xr-xr-x 179 root root 0 2015-08-01 04:26 proc |
96 |
drwx------ 96 root root 12288 2015-08-01 04:56 root |
97 |
drwxr-xr-x 19 root root 860 2015-08-01 04:28 run |
98 |
drwxr-xr-x 2 root root 12288 2015-07-28 21:07 sbin |
99 |
dr-xr-xr-x 12 root root 0 2015-08-01 04:26 sys |
100 |
drwxrwxrwt 39 root root 4096 2015-08-01 04:58 tmp |
101 |
drwxr-xr-x 18 root root 4096 2014-09-07 19:09 usr |
102 |
drwxr-xr-x 14 root root 4096 2015-01-08 08:27 var |
103 |
|
104 |
BUT: The space of the filesystem to which for example updates and new programs |
105 |
will be installed is not increased by a single byte. |
106 |
|
107 |
I need a soultion which add the 4GB space in a way that |
108 |
the current nearly filled filesystem will get more space as a whole. |
109 |
|
110 |
How can I do that? |
111 |
|
112 |
Best regards, |
113 |
Meino |