Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong partition is selected from command parameter #31

Open
whitty opened this issue Mar 23, 2023 · 0 comments
Open

Wrong partition is selected from command parameter #31

whitty opened this issue Mar 23, 2023 · 0 comments

Comments

@whitty
Copy link

whitty commented Mar 23, 2023

When trying to resize a partition other than 1 on a real disk the first partition is selected instead

# fatresize /dev/mmcblk0p2 -vvv -s 800M
fatresize 1.1.0 (20201114)
ped_device_get(/dev/mmcblk0)
ped_device_open()
ped_disk_new()
ped_disk_get_partition(1)
Error: Partition /dev/mmcblk0p1 is being used.  You must unmount it before you modify it with Parted.

Workaround is to specify -n 2 in this case.

Found this as a regression to 1.0.2-11 when updating from an older yocto project.

I think this relates to #24

whitty added a commit to whitty/fatresize that referenced this issue Mar 23, 2023
Assuming the original code had a reason for using devname prefer to use
devname unless no partition can be deduced.

Issue ya-mouse#31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant