Does anyone know how to increase the disk size on Foundation Model?
For some reason, the network connectivity to the foundation model (via ssh localhost) doesn't work reliably. So my earlier attempts to mount my host computer's drive and get things done doesn't work reliably either. Now I am stuck with the initial 8GB or so hard disk on the foundation model which is insufficient for any meaningful work.
Appreciate any help.
Thanks & Regards, Anil
On 30 January 2014 04:50, Anil Singhar anil.singhar@linaro.org wrote:
Does anyone know how to increase the disk size on Foundation Model?
For some reason, the network connectivity to the foundation model (via ssh localhost) doesn't work reliably. So my earlier attempts to mount my host computer's drive and get things done doesn't work reliably either. Now I am stuck with the initial 8GB or so hard disk on the foundation model which is insufficient for any meaningful work.
Hi Anil,
You should be able to run gparted on the filesystem image directly. That allows you to resize partitions inside the filesystem image (if there is free space left in the partition table)
If you need to grow the file itself, you can do something like
cat <old-file> /dev/zero | dd of=<new-file> count=16384 bs=1m
to make a copy of your old file padded to 16 GB.
Regards, Ard.
Hi Ard,
Thanks for your reply.
I want to expand the available disk space inside the foundation model, so may be the second option you provided will accomplish that. Is that right? Currently the default is 8GB.
In the command "cat <old-file> /dev/zero | dd of=<new-file> count=16384 bs=1m" what is old-file and new-file?
I am using the following command to start the foundation model: --------------------------------------------------------------------------------------------------- anilss@anilss:~/Linaro/tools/Foundation_v8pkg/models/Linux64_GCC-4.1$ ./Foundation_v8 --mbedded_lamp-armv8_20130719-403.img --network=nat --network-nat-ports=8022=22 terminal_0: Listening for serial connection on port 5000 terminal_1: Listening for serial connection on port 5001 terminal_2: Listening for serial connection on port 5002 terminal_3: Listening for serial connection on port 5003 Simulation is started -----------------------------------------------------------------------------------------------------
Could I not add some switch to this command to increase my disk space?
Thanks, Anil
On 30 January 2014 12:59, Ard Biesheuvel ard.biesheuvel@linaro.org wrote:
On 30 January 2014 04:50, Anil Singhar anil.singhar@linaro.org wrote:
Does anyone know how to increase the disk size on Foundation Model?
For some reason, the network connectivity to the foundation model (via
ssh
localhost) doesn't work reliably. So my earlier attempts to mount my host computer's drive and get things done doesn't work reliably either. Now
I am
stuck with the initial 8GB or so hard disk on the foundation model which
is
insufficient for any meaningful work.
Hi Anil,
You should be able to run gparted on the filesystem image directly. That allows you to resize partitions inside the filesystem image (if there is free space left in the partition table)
If you need to grow the file itself, you can do something like
cat <old-file> /dev/zero | dd of=<new-file> count=16384 bs=1m
to make a copy of your old file padded to 16 GB.
Regards, Ard.
On 30 January 2014 13:40, Anil Singhar anil.singhar@linaro.org wrote:
Hi Ard,
Thanks for your reply.
I want to expand the available disk space inside the foundation model, so may be the second option you provided will accomplish that. Is that right? Currently the default is 8GB.
The second option implies the first one. Gparted resizes your file system, but can only enlarge it if their is enough free space after it. If there isn't, you need to perform the dd to append some free space.
In the command "cat <old-file> /dev/zero | dd of=<new-file> count=16384 bs=1m" what is old-file and new-file?
old file = your existing rootfs file new file = a copy of your rootfs file padded to 16 GB
I am using the following command to start the foundation model:
anilss@anilss:~/Linaro/tools/Foundation_v8pkg/models/Linux64_GCC-4.1$ ./Foundation_v8 --mbedded_lamp-armv8_20130719-403.img --network=nat --network-nat-ports=8022=22 terminal_0: Listening for serial connection on port 5000 terminal_1: Listening for serial connection on port 5001 terminal_2: Listening for serial connection on port 5002 terminal_3: Listening for serial connection on port 5003 Simulation is started
Could I not add some switch to this command to increase my disk space?
No
On Thursday, January 30, 2014 18:10:43 Anil Singhar wrote:
I am using the following command to start the foundation model:
anilss@anilss:~/Linaro/tools/Foundation_v8pkg/models/Linux64_GCC-4.1$ ./Foundation_v8 --mbedded_lamp-armv8_20130719-403.img --network=nat --network-nat-ports=8022=22 terminal_0: Listening for serial connection on port 5000 terminal_1: Listening for serial connection on port 5001 terminal_2: Listening for serial connection on port 5002 terminal_3: Listening for serial connection on port 5003 Simulation is started
Could I not add some switch to this command to increase my disk space?
the simulator knows nothing of disk partitions and things like that. you have to manage the disk image yourself. -mike
On 30 January 2014 21:31, Mike Frysinger vapier@gentoo.org wrote:
On Thursday, January 30, 2014 18:10:43 Anil Singhar wrote:
I am using the following command to start the foundation model:
anilss@anilss:~/Linaro/tools/Foundation_v8pkg/models/Linux64_GCC-4.1$ ./Foundation_v8 --mbedded_lamp-armv8_20130719-403.img --network=na
--network-nat-ports=8022=22
Anil, of course, this is the same corrupt command you've pasted in this email and your other one that I've replied to.
terminal_0: Listening for serial connection on port 5000
terminal_1: Listening for serial connection on port 5001 terminal_2: Listening for serial connection on port 5002 terminal_3: Listening for serial connection on port 5003 Simulation is started
Could I not add some switch to this command to increase my disk space?
You cannot increase the disk space at the time when you run the model. You have to create it at the correct size or increase it using gparted or some other equivalent disk editor.
the simulator knows nothing of disk partitions and things like that. you have to manage the disk image yourself.
Mike, unless I misunderstand you, I don't think that is correct.
The model reads the image file as if it were a disk with partitions inside it. For example, the standard images that we provides have two partitions: boot and root.
Anil, Ard was correct in that you can run gparted on a disk image to manage it.
However, you probably just want to create a new disk image with a larger size. If you go to the release notes [1], it gives you instructions on how to create your own disk image, eg:
linaro-media-create --dev fastmodel --output-directory fastmodel --image_size 2000M --hwpack <hwpack filename> --binary <rootfs filename>
So, just change the "--image_size 2000M" to something bigger, like "--image_size 16000M" and you'll get a 16GB filesystem.
I just tried it and when I launch the model, I can see I now have 15.2GB of free disk space:
root@genericarmv8:~# df -h . Filesystem Size Used Available Use% Mounted on /dev/root 15.2G 269.7M 14.1G 2% /
[1] releases.linaro.org/latest/openembedded/aarch64/#tabs-2
-mike
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Hi Ryan,
Thanks for your detailed answer and help.
I am trying to build my own image now, so that I can use a much larger disk. However I am not able to download the required HW_pack ( hwpack_linaro-vexpress64-rtsm_20131215-557_arm64_supported.tar.gzhttp://releases.linaro.org/latest/openembedded/aarch64/hwpack_linaro-vexpress64-rtsm_20131215-557_arm64_supported.tar.gz)
and the rootfs (linaro-image-lamp-genericarmv8-20131215-598.rootfs.tar.gzhttp://releases.linaro.org/latest/openembedded/aarch64/linaro-image-lamp-genericarmv8-20131215-598.rootfs.tar.gz) that I need to build the image. The links don't seem to work. Also prebuilt image link ( vexpress64-openembedded_lamp-armv8-gcc-4.8_20131215-557.img.gzhttp://releases.linaro.org/latest/openembedded/aarch64/vexpress64-openembedded_lamp-armv8-gcc-4.8_20131215-557.img.gz) doesn't work.
It is mentioned in the 2nd tab that: " 1Linaro does not provide support for running the Versatile Express models."
Could that be the reason, the links are not working..?
Which HW pack and rootfs file did you use..?
Thanks and Regards, Anil
On 31 January 2014 12:51, Ryan Harkin ryan.harkin@linaro.org wrote:
On 30 January 2014 21:31, Mike Frysinger vapier@gentoo.org wrote:
On Thursday, January 30, 2014 18:10:43 Anil Singhar wrote:
I am using the following command to start the foundation model:
anilss@anilss:~/Linaro/tools/Foundation_v8pkg/models/Linux64_GCC-4.1$ ./Foundation_v8 --mbedded_lamp-armv8_20130719-403.img --network=na
--network-nat-ports=8022=22
Anil, of course, this is the same corrupt command you've pasted in this email and your other one that I've replied to.
terminal_0: Listening for serial connection on port 5000
terminal_1: Listening for serial connection on port 5001 terminal_2: Listening for serial connection on port 5002 terminal_3: Listening for serial connection on port 5003 Simulation is started
Could I not add some switch to this command to increase my disk space?
You cannot increase the disk space at the time when you run the model. You have to create it at the correct size or increase it using gparted or some other equivalent disk editor.
the simulator knows nothing of disk partitions and things like that. you have to manage the disk image yourself.
Mike, unless I misunderstand you, I don't think that is correct.
The model reads the image file as if it were a disk with partitions inside it. For example, the standard images that we provides have two partitions: boot and root.
Anil, Ard was correct in that you can run gparted on a disk image to manage it.
However, you probably just want to create a new disk image with a larger size. If you go to the release notes [1], it gives you instructions on how to create your own disk image, eg:
linaro-media-create --dev fastmodel --output-directory fastmodel --image_size 2000M --hwpack <hwpack filename> --binary <rootfs filename>
So, just change the "--image_size 2000M" to something bigger, like "--image_size 16000M" and you'll get a 16GB filesystem.
I just tried it and when I launch the model, I can see I now have 15.2GB of free disk space:
root@genericarmv8:~# df -h . Filesystem Size Used Available Use% Mounted on /dev/root 15.2G 269.7M 14.1G 2% /
[1] releases.linaro.org/latest/openembedded/aarch64/#tabs-2
-mike
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
On 31 January 2014 08:22, Anil Singhar anil.singhar@linaro.org wrote:
Hi Ryan,
Thanks for your detailed answer and help.
I am trying to build my own image now, so that I can use a much larger disk. However I am not able to download the required HW_pack ( hwpack_linaro-vexpress64-rtsm_20131215-557_arm64_supported.tar.gzhttp://releases.linaro.org/latest/openembedded/aarch64/hwpack_linaro-vexpress64-rtsm_20131215-557_arm64_supported.tar.gz)
and the rootfs (linaro-image-lamp-genericarmv8-20131215-598.rootfs.tar.gzhttp://releases.linaro.org/latest/openembedded/aarch64/linaro-image-lamp-genericarmv8-20131215-598.rootfs.tar.gz) that I need to build the image. The links don't seem to work. Also prebuilt image link ( vexpress64-openembedded_lamp-armv8-gcc-4.8_20131215-557.img.gzhttp://releases.linaro.org/latest/openembedded/aarch64/vexpress64-openembedded_lamp-armv8-gcc-4.8_20131215-557.img.gz) doesn't work.
OK, so you need to refresh your page, Koen has just released 14.01 and the "latest" links are now different.
http://releases.linaro.org/14.01/openembedded/aarch64/ http://releases.linaro.org/14.01/openembedded/aarch64/hwpack_linaro-vexpress... http://releases.linaro.org/14.01/openembedded/aarch64/vexpress64-openembedde...
It is mentioned in the 2nd tab that: " 1Linaro does not provide support for running the Versatile Express models."
Could that be the reason, the links are not working..?
No.
Which HW pack and rootfs file did you use..?
Thanks and Regards, Anil
On 31 January 2014 12:51, Ryan Harkin ryan.harkin@linaro.org wrote:
On 30 January 2014 21:31, Mike Frysinger vapier@gentoo.org wrote:
On Thursday, January 30, 2014 18:10:43 Anil Singhar wrote:
I am using the following command to start the foundation model:
anilss@anilss:~/Linaro/tools/Foundation_v8pkg/models/Linux64_GCC-4.1$ ./Foundation_v8 --mbedded_lamp-armv8_20130719-403.img --network=na
--network-nat-ports=8022=22
Anil, of course, this is the same corrupt command you've pasted in this email and your other one that I've replied to.
terminal_0: Listening for serial connection on port 5000
terminal_1: Listening for serial connection on port 5001 terminal_2: Listening for serial connection on port 5002 terminal_3: Listening for serial connection on port 5003 Simulation is started
Could I not add some switch to this command to increase my disk space?
You cannot increase the disk space at the time when you run the model. You have to create it at the correct size or increase it using gparted or some other equivalent disk editor.
the simulator knows nothing of disk partitions and things like that. you have to manage the disk image yourself.
Mike, unless I misunderstand you, I don't think that is correct.
The model reads the image file as if it were a disk with partitions inside it. For example, the standard images that we provides have two partitions: boot and root.
Anil, Ard was correct in that you can run gparted on a disk image to manage it.
However, you probably just want to create a new disk image with a larger size. If you go to the release notes [1], it gives you instructions on how to create your own disk image, eg:
linaro-media-create --dev fastmodel --output-directory fastmodel --image_size 2000M --hwpack <hwpack filename> --binary <rootfs filename>
So, just change the "--image_size 2000M" to something bigger, like "--image_size 16000M" and you'll get a 16GB filesystem.
I just tried it and when I launch the model, I can see I now have 15.2GB of free disk space:
root@genericarmv8:~# df -h . Filesystem Size Used Available Use% Mounted on /dev/root 15.2G 269.7M 14.1G 2% /
[1] releases.linaro.org/latest/openembedded/aarch64/#tabs-2
-mike
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Thanks, Ryan !!
I could create my image with 40Gb disk.
Regards, Anil
On 31 January 2014 14:05, Ryan Harkin ryan.harkin@linaro.org wrote:
On 31 January 2014 08:22, Anil Singhar anil.singhar@linaro.org wrote:
Hi Ryan,
Thanks for your detailed answer and help.
I am trying to build my own image now, so that I can use a much larger disk. However I am not able to download the required HW_pack ( hwpack_linaro-vexpress64-rtsm_20131215-557_arm64_supported.tar.gzhttp://releases.linaro.org/latest/openembedded/aarch64/hwpack_linaro-vexpress64-rtsm_20131215-557_arm64_supported.tar.gz)
and the rootfs (linaro-image-lamp-genericarmv8-20131215-598.rootfs.tar.gzhttp://releases.linaro.org/latest/openembedded/aarch64/linaro-image-lamp-genericarmv8-20131215-598.rootfs.tar.gz) that I need to build the image. The links don't seem to work. Also prebuilt image link ( vexpress64-openembedded_lamp-armv8-gcc-4.8_20131215-557.img.gzhttp://releases.linaro.org/latest/openembedded/aarch64/vexpress64-openembedded_lamp-armv8-gcc-4.8_20131215-557.img.gz) doesn't work.
OK, so you need to refresh your page, Koen has just released 14.01 and the "latest" links are now different.
http://releases.linaro.org/14.01/openembedded/aarch64/
http://releases.linaro.org/14.01/openembedded/aarch64/hwpack_linaro-vexpress...
http://releases.linaro.org/14.01/openembedded/aarch64/vexpress64-openembedde...
It is mentioned in the 2nd tab that: " 1Linaro does not provide support for running the Versatile Express models."
Could that be the reason, the links are not working..?
No.
Which HW pack and rootfs file did you use..?
Thanks and Regards, Anil
On 31 January 2014 12:51, Ryan Harkin ryan.harkin@linaro.org wrote:
On 30 January 2014 21:31, Mike Frysinger vapier@gentoo.org wrote:
On Thursday, January 30, 2014 18:10:43 Anil Singhar wrote:
I am using the following command to start the foundation model:
anilss@anilss:~/Linaro/tools/Foundation_v8pkg/models/Linux64_GCC-4.1$ ./Foundation_v8 --mbedded_lamp-armv8_20130719-403.img --network=na
--network-nat-ports=8022=22
Anil, of course, this is the same corrupt command you've pasted in this email and your other one that I've replied to.
terminal_0: Listening for serial connection on port 5000
terminal_1: Listening for serial connection on port 5001 terminal_2: Listening for serial connection on port 5002 terminal_3: Listening for serial connection on port 5003 Simulation is started
Could I not add some switch to this command to increase my disk space?
You cannot increase the disk space at the time when you run the model. You have to create it at the correct size or increase it using gparted or some other equivalent disk editor.
the simulator knows nothing of disk partitions and things like that. you have to manage the disk image yourself.
Mike, unless I misunderstand you, I don't think that is correct.
The model reads the image file as if it were a disk with partitions inside it. For example, the standard images that we provides have two partitions: boot and root.
Anil, Ard was correct in that you can run gparted on a disk image to manage it.
However, you probably just want to create a new disk image with a larger size. If you go to the release notes [1], it gives you instructions on how to create your own disk image, eg:
linaro-media-create --dev fastmodel --output-directory fastmodel --image_size 2000M --hwpack <hwpack filename> --binary <rootfs filename>
So, just change the "--image_size 2000M" to something bigger, like "--image_size 16000M" and you'll get a 16GB filesystem.
I just tried it and when I launch the model, I can see I now have 15.2GB of free disk space:
root@genericarmv8:~# df -h . Filesystem Size Used Available Use% Mounted on /dev/root 15.2G 269.7M 14.1G 2% /
[1] releases.linaro.org/latest/openembedded/aarch64/#tabs-2
-mike
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
On Friday, January 31, 2014 07:21:02 Ryan Harkin wrote:
On 30 January 2014 21:31, Mike Frysinger vapier@gentoo.org wrote:
the simulator knows nothing of disk partitions and things like that. you have to manage the disk image yourself.
Mike, unless I misunderstand you, I don't think that is correct.
The model reads the image file as if it were a disk with partitions inside it. For example, the standard images that we provides have two partitions: boot and root.
the model reads the file as a file. it is the kernel itself that parses it looking for partition tables/filesystems/etc...
so i'm comfortable with my previous statement being correct. -mike
On 31 January 2014 21:20, Mike Frysinger vapier@gentoo.org wrote:
On Friday, January 31, 2014 07:21:02 Ryan Harkin wrote:
On 30 January 2014 21:31, Mike Frysinger vapier@gentoo.org wrote:
the simulator knows nothing of disk partitions and things like that. you have to manage the disk image yourself.
Mike, unless I misunderstand you, I don't think that is correct.
The model reads the image file as if it were a disk with partitions inside it. For example, the standard images that we provides have two partitions: boot and root.
the model reads the file as a file. it is the kernel itself that parses it looking for partition tables/filesystems/etc...
so i'm comfortable with my previous statement being correct.
Fair point. You are correct, the model knows nothing of partitions, it's the software on the model that looks after those details.
I think the wording "you have to manage the disk image yourself." is open to mis-interpretation.
-mike