Displaying 20 results from an estimated 900 matches similar to: "Curious sgdisk behavior"
2014 Feb 04
0
[PATCH 1/3] daemon: parted: refactor sgdisk info parsing code
Isolate in an own function the code that runs sgdisk and parse a field
of it (using an extraction function passed as parameter), using it for
the GUID type.
This is just code motion, no actual behaviour changes.
---
daemon/parted.c | 53 +++++++++++++++++++++++++++++++++++++----------------
1 file changed, 37 insertions(+), 16 deletions(-)
diff --git a/daemon/parted.c b/daemon/parted.c
index
2019 Apr 15
1
[PATCH] daemon: drop error message check in do_part_expand_gpt
part-expand-gpt takes extreme cautions and doesn't proceed to writing
to the disk if the preliminary dry run of sgdisk has generated any
warnings on stdout.
This blocks the use of part-expand-gpt on disk shrink (with disk
resize being the main usecase for part-expand-gpt), because sgdisk dry
run produces a warning in that case.
So remove the excessive safety check, and leave it up to the
2017 Mar 22
3
"isolinux.bin missing or corrupt" when booting USB flash drive in old PC
On Tue, Mar 21, 2017 at 09:03:35AM +0100, Thomas Schmitt via Syslinux wrote:
> I think we should offer David a binary which he can combine with
> the MBR of the ISO and the image with the recognizable blocks.
> I will later today upload a binary version of my block producer
> and post the URL.
>
> The combination will be:
> 432 bytes from Martin's MBR
> 80 bytes
2015 Nov 25
1
[PATCH] New API: part_expand_gpt.
This action moves second(backup) GPT header to the end of the disk.
It is usable in in-place image expanding, since free space after
second GPT header is unusable. To use additional space, we have
to move second header. This is what sgdisk -e does.
However, sgdisk -e may perform additional actions if the partition
table has unexpected params (e.g. if we call sgdisk -e /dev/sda1,
it may fix
2015 Dec 22
0
Re: [PATCHv2] New API: part_expand_gpt.
Please take a look.
This feature is necessary for in-place image expanding.
On 12/01/2015 06:28 PM, Maxim Perevedentsev wrote:
> This action moves second(backup) GPT header to the end of the disk.
> It is usable in in-place image expanding, since free space after
> second GPT header is unusable. To use additional space, we have
> to move second header. This is what sgdisk -e does.
2016 Jan 20
1
[PATCHv2] New API: part_expand_gpt.
This action moves second(backup) GPT header to the end of the disk.
It is usable in in-place image expanding, since free space after
second GPT header is unusable. To use additional space, we have
to move second header. This is what sgdisk -e does.
However, sgdisk -e may perform additional actions if the partition
table has unexpected params (e.g. if we call sgdisk -e /dev/sda1,
it may fix
2017 Mar 22
0
"isolinux.bin missing or corrupt" when booting USB flash drive in old PC
Hi,
MartinS wrote:
> I want to say I've managed to simulate David's error in
> qemu by forcing isohdpfx.bin to fail the EBIOS test.
Wow. This could mean that the C/H/S related code is generally unsuitable
for the job.
> C<LBA0>/<C0>/<H0>/<S0>
> <LBA1>/<C1>/<H1>/<S1>
> <LBA2>/<C2>/<H2>/<S2>
>
2017 Mar 24
0
"isolinux.bin missing or corrupt" when booting USB flash drive in old PC
CC:ing syslinux.
Thanks for testing David.
On Thu, Mar 23, 2017 at 05:23:51PM -0700, David Christensen wrote:
> Trying isohdpfd.bin:
...
> Boot it in D865GBFLK Pentium 4 3.4E GHz -- I see a screenful of information,
> with "Key?" at the bottom (see attached picture IMG_1578-r.JPG).
>
>
> When I press a key, I see the following message at the bottom and the
>
2018 Jan 16
0
[PATCH v3 2/3] New APIs: part_set_gpt_attributes and part_get_gpt_attributes
Allow reading and setting the GPT partition attribute flags.
---
daemon/parted.ml | 23 +++++++++++++++++++++++
daemon/parted.mli | 2 ++
generator/actions_core.ml | 37 +++++++++++++++++++++++++++++++++++++
generator/proc_nr.ml | 2 ++
lib/MAX_PROC_NR | 2 +-
5 files changed, 65 insertions(+), 1 deletion(-)
diff --git a/daemon/parted.ml b/daemon/parted.ml
2018 Jan 15
0
[PATCH v2 2/3] New APIs: part_set_gpt_attributes and part_get_gpt_attributes
Allow reading and setting the GPT partition attribute flags.
---
daemon/parted.ml | 23 +++++++++++++++++++++++
daemon/parted.mli | 3 +++
generator/actions_core.ml | 37 +++++++++++++++++++++++++++++++++++++
generator/proc_nr.ml | 2 ++
lib/MAX_PROC_NR | 2 +-
5 files changed, 66 insertions(+), 1 deletion(-)
diff --git a/daemon/parted.ml b/daemon/parted.ml
2018 Jan 10
0
[PATCH 2/3] New APIs: part_set_gpt_attributes and part_get_gpt_attributes
Allow reading and setting the GPT partition attribute flags.
---
daemon/parted.ml | 18 +++++++++++++++++-
daemon/parted.mli | 3 +++
generator/actions_core.ml | 40 ++++++++++++++++++++++++++++++++++++++++
generator/proc_nr.ml | 2 ++
lib/MAX_PROC_NR | 2 +-
5 files changed, 63 insertions(+), 2 deletions(-)
diff --git a/daemon/parted.ml b/daemon/parted.ml
2012 Dec 14
1
[PATCH] Add support for getting and setting GPT partition type GUIDs
New APIs:
part_set_gpt_type
part_get_gpt_type
---
appliance/packagelist.in | 1 +
daemon/parted.c | 129 +++++++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 30 +++++++++++
generator/tests_c_api.ml | 7 +++
generator/types.ml | 5 ++
src/MAX_PROC_NR | 2 +-
6 files changed, 173 insertions(+), 1 deletion(-)
diff --git
2014 Feb 04
1
Re: [PATCH 1/3] daemon: parted: refactor sgdisk info parsing code
On Tue, Feb 04, 2014 at 04:01:31PM +0100, Pino Toscano wrote:
> @@ -832,28 +835,22 @@ do_part_get_gpt_type(const char *device, int partnum)
> /* Split the line in 2 at the colon */
> char *colon = strchr (line, ':');
> if (colon) {
> -#define SEARCH "Partition GUID code"
> - if (colon - line == strlen(SEARCH) &&
> - memcmp
2015 Dec 01
3
[PATCHv2] New API: part_expand_gpt.
This action moves second(backup) GPT header to the end of the disk.
It is usable in in-place image expanding, since free space after
second GPT header is unusable. To use additional space, we have
to move second header. This is what sgdisk -e does.
However, sgdisk -e may perform additional actions if the partition
table has unexpected params (e.g. if we call sgdisk -e /dev/sda1,
it may fix
2016 Jan 18
1
[PATCH] New API: part_get_disk_guid and part_set_disk_guid.
Some OSes (e.g. Windows Server 2012 R2) fail to boot if the disk
GPT GUID has changed. To preserve disk GUID e.g. during virt-resize,
we need a way to get/set disk GUIDs.
---
daemon/parted.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 37 ++++++++++++++++++++++++++++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 98 insertions(+), 1 deletion(-)
diff
2014 Feb 04
0
Re: [PATCH 2/3] New API: part-get-name (RHBZ#593511).
On Tuesday 04 February 2014 15:59:36 Richard W.M. Jones wrote:
> On Tue, Feb 04, 2014 at 04:01:32PM +0100, Pino Toscano wrote:
> > +static char *
> > +extract_optionally_quoted (const char *value)
> > +{
> > + size_t value_len = strlen (value);
> > +
> > + if (value_len >= 2 &&
> > + ((value[0] == '\'' &&
2014 Feb 04
0
[PATCH 2/3] New API: part-get-name (RHBZ#593511).
Counterpart of part-set-name, it uses sgdisk (hence needs the "gdisk"
feature) to query for the label/name of a partition in a GPT layout.
---
daemon/parted.c | 33 +++++++++++++++++++++++++++++++++
generator/actions.ml | 13 +++++++++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 47 insertions(+), 1 deletion(-)
diff --git a/daemon/parted.c b/daemon/parted.c
index
2016 Jan 19
0
[PATCHv2 1/3] New API: part_get_disk_guid and part_set_disk_guid.
Some OSes (e.g. Windows Server 2012 R2) fail to boot if the disk
GPT GUID has changed. To preserve disk guid e.g. during virt-resize,
we need a way to get/set disk GUIDs.
---
daemon/parted.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 37 ++++++++++++++++++++++++++++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 98 insertions(+), 1 deletion(-)
diff
2014 Dec 11
0
CentOS 7 grub.cfg missing on new install
On 12/10/2014 10:13 AM, Jeff Boyce wrote:
> The short story is that got my new install completed with the
> partitioning I wanted and using software raid, but after a reboot I
> ended up with a grub prompt, and do not appear to have a grub.cfg file.
...
> I initially created the sda[1,2] and sdb[1,2] partitions via GParted
> leaving the remaining space unpartitioned.
I'm
2015 Dec 10
2
Bug: windows server 2012R2 fails to start after virt-resize
Hello everyone!
After I ran virt-resize (v1.31.28) on my disk with win2012R2
(partition table [GPT]: VFAT (100M), unknown (128M), NTFS (64G))
My VM fails to boot: black screen informing that
Windows failed to start...
Status: 0xc000000e
Info: an unexpected error has occured.
After some investigations, I realized that Windows remembers the GUID of
disk it is installed to.
If I execute