d to close a dev that was NULL (I'm guessing that was associated
with sde but without a reproducer it's hard to know for sure).
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
What do you mean by type 8309? msdos mbr partition types are 8 bits only
and LUKS is 0xE8, and on GPT it is CA7D7CCB-63ED-4C53-861C-1742536059CC
FWIW you can now set these values directly with the 'type' command.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
o trigger this case as well as
> the previously reported one.
>
> I've attached a patch with my modifications. Can you, please, look at it?
Sorry it took so long to look at this, it looks good to me. I'm posting
it to the parted-devel list and if there are no objections I'll pu
Thanks, I've submitted a patch cleaning up the major issues.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
#x27; to make sure udev has finished up in the background. These are
problems we used to hit in the parted test suite, and came up with this
code:
https://github.com/bcl/parted/blob/master/tests/t-local.sh#L45
Good luck!
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
#x27;t something that's
supported.
>
> *Unable to determine the dm type of /dev/mapper/rl-root.*
So, not really a bug. Run it as root, and use the correct device path.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
; you are saying
it cannot resize anything. AFAIK for FAT32 it needs to be 256MB or
larger. Or stated a different way, it cannot be resized if it is smaller
than 256MB.
I'm fine with changing the wording, but I'm not sure that message only
shows up with the FAT32 256MB limitation and
er.
>
> If you need more information I will be happy to provide it.
You can only call that on an active partition (one that isn't metadata
or free).
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
ed_partition_get_flag() failed.
> Version 3.6-4
Sorry, that's not enough information to know what happened. What were
you trying to do? Is there a stack trace that you can include, or at
least steps to reproduce it.
Thanks,
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
nd mkpart
> crashes the app. I expect parted would change the mac or msdos
> partition map, so I can change the rest manually. Or even better, that
> parted would change msdos by default which is used by kernel by
> default (not mac partition)
>
Hm. That's not great, I'll look
iled.
Thanks for the report, this isn't really a crash -- it's the program
protecting you from doing something bad to the disk. hybrid iso
'disklabels' are not meant to be edited. The combine several things into
one so that they can boot multiple places, but aren't supporte
On Wed, Nov 20, 2024 at 12:22:22PM +, Rudi Heitbaum wrote:
> static int
> -do_version ()
> +do_version (PedDevice** dev, PedDisk** diskp)
> {
> printf ("\n%s\n%s",
> prog_name,
Thanks!
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
on
> not implemented).
> Unable to get device /vmfs/devices/genscsi/mpx.vmhba2:C1:T124:L0
That doesn't look like a parted problem. And if the version mentioned
there is a parted version it's way too old to be supported. You'll need
to talk to your OS distribution about it.
Bri
not documented? Any
> plans to make ---pretend-input-tty an official "thing" in Parted?
No, it's there for the tests. But there's no plan to remove it since the
tests depend on it. But I really don't recommend automating things that
could lose data.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
upported at this
point. I suggest that you contact VMWare for support.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
no way to work
around this other than not using parted on these disk.
Thanks,
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
https://www.gnu.org/software/parted/api/index.html has been updated for
libparted 3.6 using Doxygen 1.9.6
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
inaccurate.
I'll see if I can track down what generates those pages. I'm not even
sure Doxygen will generate useful output with the current codebase, I
know I've never tried.
Thanks,
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
t; *thought:*
>
> parted codes need refresh according to kernel of return value.
Thanks, I'll have to dig into this when I have time. As a workaround you
don't need to attach the file to a loop device, parted can run on the
file directly.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
On Fri, Oct 06, 2023 at 12:12:44AM +0200, Jan Palus wrote:
> On 04.10.2023 13:52, Brian C. Lane wrote:
> > On Tue, Oct 03, 2023 at 07:01:52PM +0200, Jan Palus wrote:
> > > autoconf macro PARTED_CHECK_LIBPARTED requires ped_get_version() to
> > > return 3 part version s
ing uses the PARTED_CHECK_LIBPARTED macro in the
upstream code.
I'm inclined to just delete it.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
hich doesn't make sense to parted. And even if it did, the only useful
command would be print. You wouldn't want to run mkpart on multiple
devices at once.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
This is uncovered by lld linker linking fatresize package
> due to this linker defaulting to --no-allow-shlib-undefined.
Thanks! Merged into master.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
file a bug with whatever distribution you are
running.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
hes should be sent to the parted-devel mailing list:
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/parted-devel
(and you can also ask questions there, the audience should be wider than
the bug tracker).
Thanks!
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
7.
Those releases use older versions of parted, so the current release
isn't expected to build on them.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
er than the ~11GiB
the 2nd print claims.
My initial guess is that this disk is reporting inaccurate information
and that's confusing parted. I'd look at the bootup output from dmesg to
see what the kernel saw at boot time, and to check for disk errors in
dmesg/journald output.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
t; One additional question arises for my understanding though, how come a
> partition
> with CHS address of the first sector equal to the last one is usable ?
Well, nothing should be actually using the CHS values these days. So
it's possible that's a bug that doesn't matter in pra
GNOME Disks. Judging from the positive responses to
> the patch, it seems it just slipped through the cracks. I hope it's
> still the right solution.
I have it on my list of things for the new year, but I'd like to get
more feedback on it. It looks simple enough, but you know ho
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
ata or swap or
whatever). When you rerun parted without actually creating that
filesystem it doesn't show anything because it hasn't detected a
filesystem on the partition. If you create an ext4 filesystem on that
partition it will show ext4.
Note that in the current master version of parted it
it is
possible to use a msdos disklabel with UEFI, it should be using GPT.
I'm also not sure why a UEFI system wouldn't boot with the MBR written.
It should just ignore it and use the ESP partition.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
ilesystem type to ntfs will set the
partition type for an NTFS filesystem, but will not actually format it.
You need to use mkfs.ntfs to do that.
Good Luck,
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
with your application?
https://alioth-lists.debian.net/pipermail/parted-devel/2022-August/005819.html
Thanks,
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
nges made it work again.
I'm not entirely sure what to do about this. It's obviously a change in
behavior, but it's a result of a big improvement in the code that I'd
rather not revert. I should have bumped the library version to indicate
this.
I'm cc'ing this to the
y look like a parted problem.
Please include the cmdline you ran, the version of parted you are
running, and whatever other relevant details if you want help figuring
out what's wrong.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
s, it doesn't have a filesystem on it, the logical partition
does.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
s.gnu.org.
>
> Please do not send mail to help-debb...@gnu.org unless you wish
> to report a problem with the Bug-tracking system.
>
> --
> 55009: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=55009
> GNU Bug Tracking System
> Contact help-debb...@gnu.org with probl
g to
remove a busy partition.
Keep GUID specific attributes when writing the GPT header. Previously
they were set to 0.
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
On Thu, Apr 07, 2022 at 06:19:02AM +0800, Steven Shiau wrote:
>
> On 4/7/22 00:27, Brian C. Lane wrote:
> > On Wed, Apr 06, 2022 at 02:20:56PM +0800, Steven Shiau wrote:
> >
> >> So my questions: (1) Is there any option we can use to ignore the
> >> error/war
ons is an error, and script mode tries
pretty hard to make sure you can't accidentally destroy your data.
Please include the output from
parted /dev/sda unit s print
so we can see what parted thinks the sector locations and lengths are.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io -
On Wed, Mar 30, 2022 at 09:57:24AM -0700, Brian C. Lane wrote:
> Here are the compressed sources and a GPG detached signature[*]:
> http://alpha.gnu.org/gnu/parted/parted-3.4.64.tar.xz
> http://alpha.gnu.org/gnu/parted/parted-3.4.64.tar.xz.sig
There is now a 3.4.64.2 alpha build,
Without arguments, 'print' displays the entire partition table. However "
> --
> 2.34.1
>
>
>
>
Pushed to master, thanks.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
ibutes when writing the GPT header. Previously
they were set to 0.
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
signature.asc
Description: PGP signature
doesn't give any info on what
object it was trying to reference.
Can you provide any other details? Maybe try running it with gdb?
Thanks,
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
On Mon, Feb 07, 2022 at 08:52:33AM -0800, Brian C. Lane wrote:
> On Sat, Feb 05, 2022 at 10:44:29AM +, Kerin Millar wrote:
> > Hello,
> >
> > The attached patch rectifies some test failures that were reported at
> > https://bugs.gentoo.org/774363. Whether it b
a is :) I'd prefer a solution that continues to use hex
so that future users don't have to figure out what's going on.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
vice in question. There isn't anything parted can do about that.
Also, version 2.4 is quite old at this point -- but even with a newer
version you would have the same problem.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
artition that they didn't leave the required space before the first
logical partition. There's nothing that parted can do about that.
Although given how often this seems to come up I may look at adding an
actual error output instead of using the assert.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
appen, it is a pretty fine line between losing just the backup GPT and
losing the end of the last partition (assuming it is fully utilized).
I'm not sure it's worth adding extra code and the potential for new bugs
if this isn't a common practice.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
gt; guarantee of the process being completed in this case.
There's not much you can do other than wait for udev, or check to make
sure device nodes you expect to be present are there. We used to hit
problems like this in the parted test suite all the time, until we added
loops to wait for the partit
B 16.7MB 16.7MB primary
>
>
> The fault result is cause by commit 61dd3d4:
> Use BLKSSZGET to get device sector size in _device_probe_geometry()
I would strongly suggest that you don't use cyl as a unit. There is no
good reason to be doing that in 2021.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
;chromeos_kernel" and "palo". state should
> be ei‐
> ther "on" or "off".
>
> it also works for the flag "*bios_grub*" not listed above
>
Thanks, I've fixed this on the master branch.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
r the extended partition's metadata. There isn't
anything parted can do about that, and the only way to fix that is to
re-partition your disk.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
ty to 0.
> I suppose this bug#51407 can be closed. Thanks again.
The kernel doesn't call parted. So this is bound to be something else.
Thanks,
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
eg. running parted via strace to
capture any unexpected error codes from the kernel.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
ed.
Do any all commands fail? What does the dmesg output have to say about
that disk? That looks to me like a hardware or kernel error, the sector
size reported by the disk or kernel isn't divisible by 512.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
used along with --script it will automatically fix the size of the disk
and write the backup partition table.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
that you need to run mkfs.ext4
on the new partition. The partition value in parted is to tell parted
what you plan to use it for so that it can setup the UUID or partition
type correctly.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
On Fri, Jul 16, 2021 at 11:15:46AM +0100, Ross Burton wrote:
> The tests t1100-busy-label.sh and t1101-busy-partition.sh both fail if
> vfat file system support is not enabled instead of skipping.
This has been fixed. Thanks for the help!
Brian
--
Brian C. Lane (PST8PDT) - weldr.io -
he lowest we can go is 267 on
the fat32 test because fat32 won't work on anything smaller than 256.
All the others have been reduced to 10, so hopefully this is enough to
squeak by on a small system.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
27;s safe to declare, all the uses
of it are also disabled.
I can't get things to compile at all if I turn on discover mode on
Fedora so I can't test whether that's the only change needed.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
are requesting an exact location, so this
is telling you that sector 122880 (60*1024*1024) is already in use and
it has to use the next sector instead. The other units use a snap
algorithm with a radius of half the unit size (eg. 500k for MB) so it
doesn't have this problem, and it is the default s
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
ting Ceph or
not Ceph they need to find a better way.
My suggestion would be to use GPT partition tables and a ceph related
UUID for the partition type. Or names for the partitions.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
s for the clarification.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
BIOS cylinder,head,sector geometry: 55,255,9. Each cylinder is 9400kB.
> Partition Table: loop
> Disk Flags:
>
> Thanks!
>
> Eric (Wood)
>
That looks like parted wasn't used to partition the disk, the file
system is starting at sector 0 and the table is 'loop'.
I'm not clear on what you think is wrong with parted.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
n (metadata_length > 0) at
> ../../../libparted/labels/dos.c:2313 in function add_logical_part_metadata()
> failed.
> Aborted
>
The partition table was not created correctly, parted will not use it
until it has been fixed.
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
rtition 2 and partition 5 also use
some of that space. This is likely confusing parted, so I'd say it isn't
a bug, it's just trying to do the best it can with the available space.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
t. But I did expect a
> terse(r) error message.
>
> For example, the following error message is expectedly terse.
>
> $ partprobe /dev/sdf
> Error: Error opening /dev/sdf: Permission denied
The first line says that, the rest provides additional context what can
sometimes be useful.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
artition table from the
primary.
If this happens again (hope not!) make a copy of the first and last 1M
of the disk and email it to me so I can poke at it.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
ent them an email with the new
version.
I've also added a note to the README-release file, since this part of
the process wasn't mentioned anywhere.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
k mode.
Yes, parted calls fsync when it is done with the device. It always opens
the device in RW mode and always fsync's it when closing it to make sure
any changes make it to disk.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
How did you get valgrind to hit that? I'm not seeing it complain about
bsd.c on Fedora.
I've pushed this fix to master.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
irc, forums, etc.).
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
related to the
device. If that's the case there's nothing parted can do about it.
> See also:
>
>
>
> *pi@raspberrypi:~ $ sudo parted sdb unit co print unit s printError: Could
> not stat device sdb - No such file or directory.Retry/Cancel? c*
You told it to use sdb,
al for
data loss when things go wrong. The script mode defaults to 'safe' for
all of the prompts like this to avoid unexpected surprises.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
M
>
> Accordingly to the changes made in block/partitions/core.c
> That is making parted working again.
I dug into this and it's a kernel bug that will be fixed in 5.9 rc5 as
well as backported to 5.8.10 so changing it in parted isn't the right
solution.
Thanks,
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
M
>
> Accordingly to the changes made in block/partitions/core.c
> That is making parted working again.
Thanks for tracking that down.
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
o me like sgpart or debian does have a problem though, they
should be notifying the kernel of the change when you resize the
partition. If I do the same steps on Fedora, using sgdisk or parted I
don't need to run partprobe for lsblk to show the updated size.
Brian
--
Brian C. Lane (PST8PDT) - w
ve the size of the disk ?
When using non-IEC units like MB, GB parted will round the request to
+/- 50% of the unit. Usually it will snap to someplace near what you
expect, but not always, depending on the surrounding partitions.
To specify exact locations use either sectors ('s') or
on't try to turn -1
into an option:
parted --script -- /dev/sda mkpart primary 515 -1
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
acac]
> 3: parted(main+0x139b) [0x563d15d1380b]
> 2: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)
> [0x7f1212b160b3]
> 1: parted(_start+0x2e) [0x563d15d1389e]
What happens if you rerun it and just do `print devices` without trying
resizepart first?
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
4s % 2048s != 0s
Ignore/Cancel?
This means that it needs to be multiples of 2048 sectors to be aligned
(this example is just an example with a disk image).
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
fied after that.
>
> Doing the test manually without ansible context shows it's parted itself
> which apply this change:
No, parted doesn't do anything to ownership or permissions. My guess is
that udev is doing something when the device is opened/closed. How does
ceph set the owne
that are
> currently mounted or in use.
>
> Still get the follow message
> raf@raf-desktop:~$ gparted
parted is not gparted, those errors don't look like something that we
output.
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
reported by the device, so if it
reports 512b that's what it will use. There's no way to override this
and have it calculate a different alignment automatically.
But you can use the MiB units to set the sizes yourself so that you can
make them start exactly where you want them.
--
cannot think of a good reason to remove or resize a mounted
partition. Why not unmount it first and avoid the issue completely?
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
will fail on one that has shrunk.
Given the amount of work that would be needed to support this, and that
this is a corner case I don't think it's something I want to tackle.
Really, you shouldn't be copying pieces of disks around. Make a new
partition and copy the data -- it's safer that way.
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
at32lba
> 2 273MB 15.9GB 15.7GB primary ext4
>
> (parted) resizepart 2
> End? [15.9GB]?
> free(): invalid pointer
> zsh: abort sudo parted /dev/sdc
Thanks, that should be fixed by
https://github.com/bcl/parted/commit/883813c365482d06d05a1998e066792c48156f23
which I'll push today.
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
Update of sr #109945 (project parted):
Status:None => Invalid
Open/Closed:Open => Closed
___
Follow-up Comment #1:
I would suggest not
Update of sr #110102 (project parted):
Status:None => Wont Do
Open/Closed:Open => Closed
___
Follow-up Comment #1:
I don't think it's a
> print devices
> print list
> resize
> resizepart
> 2
Thanks for the report! I actually have a fix for this that got lost.
https://github.com/bcl/parted/commits/master-1701411
I'll re-send those to the list after I test them against the current
master.
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
Update of sr #109955 (project parted):
Open/Closed:Open => Closed
___
Follow-up Comment #2:
That's expected, this is an alpha release. It's the first release that I've
done so I'm taking is
annah.gnu.org/git/parted.git
>
> instead of:
>
> git clone https://git.savannah.gnu.org/git/parted.git
Thanks, fixed.
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted
er of 2, then such address
does not trigger exact placement.
mkpart: Allow negative start value when FS-TYPE is not given
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted
signature.asc
Description: PGP signature
dbb4cd2dc4b19fe8d3c4b94e172fc0bd2c7c I added a message
that describes the failure with a bit more detail. It will print
something like:
% !=
I'm guessing Ubuntu doesn't have that patch, and the 3.2 tarball is
getting *really* old at this point (which is why I'm working toward a
3.3 release soon).
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted
1 - 100 of 315 matches
Mail list logo