search for: partition_type

Displaying 20 results from an estimated 26 matches for "partition_type".

2015 May 08
1
Re: [PATCH 00/10] virt-resize: add support for resizing MBR logical partitions
...ct: Re: [Libguestfs] [PATCH 00/10] virt-resize: add support for resizing MBR >> logical partitions >> >> On Wed, Apr 29, 2015 at 09:19:24AM +0000, Chen, Hanxiao wrote: >>> commit 6e989fd709fea37430398cbb7c01c52cd44bd1ac already did this: >>> we had p_mbr_p_type : partition_type in type partition. >>> Like what MBR/EBR did, this patchset use `partition_type`: >>> >>> /dev/sda3: >>> partition data: 3 210763776-420478975 (209715200 bytes) >>> bootable: false >>> partition ID: 0x5 >>> content: extended partiti...
2015 Mar 30
1
[PATCH RFC] resize: add p_mbr_p_type as member of type partition
...e.ml +++ b/resize/resize.ml @@ -57,6 +57,7 @@ type partition = { p_target_partnum : int; (* TARGET partition number. *) p_target_start : int64; (* TARGET partition start (sector num). *) p_target_end : int64; (* TARGET partition end (sector num). *) + p_mbr_p_type : partition_type (* Partiton Type (master/extended/logical) *) } and partition_content = | ContentUnknown (* undetermined *) @@ -73,9 +74,11 @@ and partition_id = | No_ID (* No identifier. *) | MBR_ID of int (* MBR ID. *) | GPT_Type of string...
2013 Apr 16
1
isohybrid and partition type 0x17
Hi, OLPC's Openfirmware (OFW) implementation chokes when attempting to boot an iso created by isohybrid. The problem is that OFW's ISO-9660 support expects a partition type of 0x96 (CHRP ISO-9660, according to http://en.wikipedia.org/wiki/Partition_type). I see from http://git.kernel.org/cgit/boot/syslinux/syslinux.git/commit/utils/isohybrid.in?id=aee4e8fa73571eaca80ad43aa007523cde5d4567 that the partition type was originally 0x83 (Linux), and was changed to 0x17 (hidden IFS) to satisfy windows. I'm wondering what's the correct partition...
2015 May 08
0
Re: [PATCH 00/10] virt-resize: add support for resizing MBR logical partitions
...CH 00/10] virt-resize: add support for resizing MBR > >> logical partitions > >> > >> On Wed, Apr 29, 2015 at 09:19:24AM +0000, Chen, Hanxiao wrote: > >>> commit 6e989fd709fea37430398cbb7c01c52cd44bd1ac already did this: > >>> we had p_mbr_p_type : partition_type in type partition. > >>> Like what MBR/EBR did, this patchset use `partition_type`: > >>> > >>> /dev/sda3: > >>> partition data: 3 210763776-420478975 (209715200 bytes) > >>> bootable: false > >>> partition ID: 0x5 > >...
2009 May 01
4
How do I resize a Physical Partition in a Dom U that''s "on" a Logical Volume in the Dom 0?
Hey all, I''m trying to figure out how to re-size physical partitions in the Dom U. I''ve read up what I can find on line and finally decided to have Logical Volumes in the Dom 0 and pass them as physical volumes for use in the Dom U. Here''s an example of what I''m doing. To start in the Dom 0 I created the LV''s with lvcreate -n guest_boot -L 100M
2014 Sep 22
13
[PATCH v3 0/7] add support to resize MBR logical partitions
...restart guest introduced in v2 changes to v1: 1. spit the patches so it's easier to review 2. fix the parted error caused by unaligned logical partitions 3. extend the content of logical partitions 4. refactor to make logical partitions a seperate list Hu Tao (7): resize: introduce partition_type resize: simplify the code to filter parts resize: add function find_partitions resize: add function calculate_target_partitions resize: add function mbr_part_type resize: add partition type LogicalPartition resize: add support to resize logical partitions resize/resize.ml | 145 ++++++...
2015 May 14
1
[PATCH] resize: show sector infor in debug_partition
...ed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com> --- resize/resize.ml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/resize/resize.ml b/resize/resize.ml index 8e69d44..ae8339d 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -80,11 +80,15 @@ and partition_type = | LogicalPartition | NoTypePartition -let rec debug_partition p = +let rec debug_partition ?(sectsize=512L) p = printf "%s:\n" p.p_name; printf "\tpartition data: %ld %Ld-%Ld (%Ld bytes)\n" p.p_part.G.part_num p.p_part.G.part_start p.p_part.G.part_end p...
2015 Apr 19
2
Preferred partition type for raid 5
Hey All, I my research I came across a note that a specific partition type was preferable when creating a raid 5 array. I installed my HDs and used mdadm to assemble them into a raid 5 array. I then partitioned the array using gdisk. The default partition type is "8300 Linux filesystem" for the two partitions that I created. The article I read said that a specific partition type
2014 Sep 22
0
[PATCH v3 6/7] resize: add partition type LogicalPartition
...-by: Hu Tao <hutao@cn.fujitsu.com> --- resize/resize.ml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/resize/resize.ml b/resize/resize.ml index c56a91a..3f804a0 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -75,6 +75,7 @@ and partition_id = type partition_type = | PrimaryPartition + | LogicalPartition let rec debug_partition p = eprintf "%s:\n" p.p_name; @@ -449,13 +450,15 @@ read the man page virt-resize(1). let find_partitions part_type = let parts = Array.to_list (g#part_list "/dev/sda") in - (* Filter out lo...
2014 Sep 26
0
[PATCH v4 1/7] resize: add function find_partitions
...insertions(+), 9 deletions(-) diff --git a/resize/resize.ml b/resize/resize.ml index 81bb270..cfd02fc 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -73,6 +73,9 @@ and partition_id = | MBR_ID of int (* MBR ID. *) | GPT_Type of string (* GPT UUID. *) +type partition_type = + | PrimaryPartition + let rec debug_partition p = eprintf "%s:\n" p.p_name; eprintf "\tpartition data: %ld %Ld-%Ld (%Ld bytes)\n" @@ -443,14 +446,15 @@ read the man page virt-resize(1). | MBR_ID _ | GPT_Type _ | No_ID -> false in - let partitions : parti...
2014 Oct 08
0
[PATCH V5 1/4] resize: add partition type LogicalPartition
...-by: Hu Tao <hutao@cn.fujitsu.com> --- resize/resize.ml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/resize/resize.ml b/resize/resize.ml index 2090675..cc76aa0 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -75,6 +75,7 @@ and partition_id = type partition_type = | PrimaryPartition + | LogicalPartition let rec debug_partition p = eprintf "%s:\n" p.p_name; @@ -449,13 +450,15 @@ read the man page virt-resize(1). let find_partitions part_type = let parts = Array.to_list (g#part_list "/dev/sda") in - (* Filter out lo...
2015 Mar 13
2
[PATCH] part-list: add support for show partition type
We lack of showing parttition type for part-list command. This patch will add support for this. Also 'parted -m' did not provide partition type info, remove code section for 'parted -m' process. Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com> --- daemon/parted.c | 155 ++++++++++++++++++++++++++------------------------- generator/structs.ml | 1 +
2018 Jan 28
0
[PATCH v3 1/3] daemon: Reimplement 'part_get_mbr_part_type' API in OCaml.
...NULL is returned. 3. MBR partition table can hold up to 4 "primary" partitions. 4. Partition with number >= 5 is logical partition. 5. Extnded partition number is <= 4 and has MBR id 0x05 or 0x0f (http://thestarman.pcministry.com/asm/mbr/PartTypes.htm; https://en.wikipedia.org/wiki/Partition_type). --- daemon/parted.c | 106 ---------------------------------------------- daemon/parted.ml | 14 ++++++ daemon/parted.mli | 2 + generator/actions_core.ml | 1 + 4 files changed, 17 insertions(+), 106 deletions(-) diff --git a/daemon/parted.c b/daemon/parted.c in...
2014 Dec 16
2
Re: does guestfs_list_partitions() work with Windows 95 images?
> > The appliance kernel couldn't find any partitions at all on the disk. > > Is it a raw format disk image, or some other format that qemu can > reasonably be expected to read? I used the "Advanced Options" of Macrium Reflect (on Windows 7) to do a raw byte copy. If it is, then yes I'd say the image is corrupted. However you'd > probably want to hexdump
2014 Dec 16
2
Re: does guestfs_list_partitions() work with Windows 95 images?
...00 00 55 AA .WINBOOT SYS..Uª 00000200 F8 FF FF FF FF FF 04 00 FF FF 06 00 FF FF 08 00 øÿÿÿÿÿ..ÿÿ..ÿÿ.. So if that is where guestfish is looking for the partition table... I searched for other references. Found this one and it agreed with this 0x1BE value. http://www.win.tue.nl/~aeb/partitions/partition_types-2.html Any other locations that you know of?
2015 Mar 13
0
Re: [PATCH] part-list: add support for show partition type
...size = 0L }; > + part_size = 0L; part_type = "" }; > p_bootable = false; p_id = No_ID; p_type = ContentUnknown; > p_label = None; p_guid = None; Better add this information directly in the type partition, possibly also making use of type partition_type. Also this could go in a different patch than the above changes to get the primary/extended/etc type of a partition. Thanks, -- Pino Toscano
2014 Jan 15
4
USB boot problems on Gigabyte GA-M55Plus-S3G
...s", so that you see the additional options panel. Once you do that, you should find that "Syslinux v4" and "Syslinux v5" are listed as extra options in the "Create a bootable disk" dropdown. Or you can see [3]. Regards, /Pete [1] http://en.wikipedia.org/wiki/Partition_type [2] https://github.com/pbatard/rufus/blob/master/src/format.c#L838 [3] https://github.com/pbatard/rufus/wiki/FAQ#wiki-Advanced_Mode
2018 Jan 28
9
guestfs_list_filesystems: skip block devices which cannot hold file system
Initial discussion is here: https://www.redhat.com/archives/libguestfs/2018-January/msg00188.html. v2 was posted here: https://www.redhat.com/archives/libguestfs/2018-January/msg00246.html. v3 comparing to v2 is just a rebase with slightly changed commits comments.
2018 Jan 25
2
[PATCH v2 1/3] daemon: Reimplement 'part_get_mbr_part_type' API in OCaml.
...d NULL is returned. 3. MBR partition table can hold up to 4 "primary" partitions. 4. Partition with number >= 5 is logical partition 5. Extnded partition number is <= 4 and has MBR id 0x05 or 0x0f (http://thestarman.pcministry.com/asm/mbr/PartTypes.htm; https://en.wikipedia.org/wiki/Partition_type). --- daemon/parted.c | 106 ---------------------------------------------- daemon/parted.ml | 14 ++++++ daemon/parted.mli | 2 + generator/actions_core.ml | 1 + 4 files changed, 17 insertions(+), 106 deletions(-) diff --git a/daemon/parted.c b/daemon/parted.c in...
2014 Oct 08
6
[PATCH V5 0/4] virt-resize: add support for resizing logical
Hi Rich, This is v5 series to add support for resizing MBR logical partitions. please review. Thanks! changes to v4: 1. add support to resize extended partition (--resize or --expand extended partition) 2. fix the problem of deficit of 512 bytes when expanding a logical partition (this problem can be reproduced in v4 by only expanding a logical partition, without resizing any other