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

grub4efi: partnew command does not take effect #402

Open
steve6375 opened this issue Mar 24, 2023 · 13 comments
Open

grub4efi: partnew command does not take effect #402

steve6375 opened this issue Mar 24, 2023 · 13 comments

Comments

@steve6375
Copy link

image

The partnew command does actually work, but only after a reboot.

@yaya2007
Copy link
Collaborator

have a try.
BOOTX64.rar.txt

@steve6375
Copy link
Author

steve6375 commented Mar 26, 2023

removing partition not working?
image
find command also lists (hd0,3)
cat --hex (hd0)0+1 shows hd0,3 is empty however.
image

@yaya2007
Copy link
Collaborator

Cannot delete partition

@steve6375
Copy link
Author

The partition IS deleted - you can see the LBA0 partition table clearly shows that it has been deleted.
But it appears that LBA0 (or the partition table) has been cached because both parttype and find command think it is still present.

@steve6375
Copy link
Author

image

@yaya2007
Copy link
Collaborator

Because you used "partnernew (hd0,3) 0 0 0"
his is meaningless。

@steve6375
Copy link
Author

partnew (hd0,3) 0 0 0 does work but only after reboot or if use cat --hex command.
image

Please try this:

  1. UEFI boot to grub4efi 2023-03-26
  2. partnew (hd0,3) 7 1 5
  3. reboot to grub4efi 2023-03-26
  4. parttype (hd0,3)

    will show 0x07

  5. partnew (hd0,3) 0 0 0
  6. reboot to grub4efi 2023-03-26
  7. parttype (hd0,3)

will not print any type

  1. cat --hex --skip=0x1be (hd0)0+1

will show all 00's

Something very odd is going on ???? Can you reproduce ?

pn.zip

@yaya2007
Copy link
Collaborator

have a try
BOOTX64.rar.txt

@steve6375
Copy link
Author

seems to fix partnew

but still a map --unmap problem

image

@yaya2007
Copy link
Collaborator

You uninstalled 0x80, 0x81! This test is meaningless.

@steve6375
Copy link
Author

steve6375 commented Mar 28, 2023

but that same command works OK in grub4dos
there is no mapping of 0x80 or 0x81 so unmap command should just fail?

@yaya2007
Copy link
Collaborator

have a try
BOOTX64.rar.txt

@steve6375
Copy link
Author

Seems OK :-)

yaya2007 pushed a commit that referenced this issue Mar 29, 2023
  修正partnew函数。issues #402
  修正map函数的unmap功能。issues #403
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

2 participants