Hi all,
I'm trying to build an x86 disk image that I can mount and install a
benchmark to run. I have tried downloading the pre-installed image from
https://storage.googleapis.com/dist.gem5.org/dist/develop/images/x86/ubuntu-18-04/x86-ubuntu.img.gz
and building from the gem5-resources source using the instructions from the
README, but in both cases when I run ``sudo python3 util/gem5img.py mount
x86-ubuntu.img temp'' I get the following error:
%> /usr/sbin/losetup /dev/loop20 x86-ubuntu.img
No partition description was found in sfdisk output:
label: dos
label-id: 0xeb7b110b
device: /dev/loop20
unit: sectors
sector-size: 512
/dev/loop20p1 : start= 2048, size= 4190208, type=83, bootable
Could not determine size of first partition.
'''
Is there something obvious that I'm doing wrong here?
Thank you for your help!
Best,
Sam Thomas
Hi Sam,
I ran into this issue before and was able to create a fix for it. Here's the link to the pull request that has the changes: https://github.com/gem5/gem5/pull/990
Hope it helps!
Best,
Hossam
From: Thomas, Samuel via gem5-users gem5-users@gem5.org
Sent: Sunday, March 17, 2024 10:25 PM
To: gem5 users mailing list gem5-users@gem5.org
Cc: Thomas, Samuel samuel_thomas@brown.edu
Subject: [gem5-users] Mounting X86 Disk Image
Hi all,
I'm trying to build an x86 disk image that I can mount and install a benchmark to run. I have tried downloading the pre-installed image from https://storage.googleapis.com/dist.gem5.org/dist/develop/images/x86/ubuntu-18-04/x86-ubuntu.img.gz and building from the gem5-resources source using the instructions from the README, but in both cases when I run ``sudo python3 util/gem5img.py mount x86-ubuntu.img temp'' I get the following error:
%> /usr/sbin/losetup /dev/loop20 x86-ubuntu.img
No partition description was found in sfdisk output:
label: dos
label-id: 0xeb7b110b
device: /dev/loop20
unit: sectors
sector-size: 512
/dev/loop20p1 : start= 2048, size= 4190208, type=83, bootable
Could not determine size of first partition.
'''
Is there something obvious that I'm doing wrong here?
Thank you for your help!
Best,
Sam Thomas
This resolves my issue. Thank you for your help!
Best,
Sam
On Tue, Apr 2, 2024 at 9:10 PM Hossam ElAtali hossam.elatali@uwaterloo.ca
wrote:
Hi Sam,
I ran into this issue before and was able to create a fix for it. Here's
the link to the pull request that has the changes:
https://github.com/gem5/gem5/pull/990
Hope it helps!
From: Thomas, Samuel via gem5-users gem5-users@gem5.org
Sent: Sunday, March 17, 2024 10:25 PM
To: gem5 users mailing list gem5-users@gem5.org
Cc: Thomas, Samuel samuel_thomas@brown.edu
Subject: [gem5-users] Mounting X86 Disk Image
Hi all,
I'm trying to build an x86 disk image that I can mount and install a
benchmark to run. I have tried downloading the pre-installed image from
https://storage.googleapis.com/dist.gem5.org/dist/develop/images/x86/ubuntu-18-04/x86-ubuntu.img.gz
and building from the gem5-resources source using the instructions from the
README, but in both cases when I run ``sudo python3 util/gem5img.py mount
x86-ubuntu.img temp'' I get the following error:
%> /usr/sbin/losetup /dev/loop20 x86-ubuntu.img
No partition description was found in sfdisk output:
label: dos
label-id: 0xeb7b110b
device: /dev/loop20
unit: sectors
sector-size: 512
/dev/loop20p1 : start= 2048, size= 4190208, type=83, bootable
Could not determine size of first partition.
'''
Is there something obvious that I'm doing wrong here?
Thank you for your help!
Best,
Sam Thomas