Bugzilla – Bug 467576
parted breaks content of extended partition
Last modified: 2015-02-03 10:00:57 UTC
Hi Petr, partitioning of disk: - "/" is on logical partition - there doesn't exist primary /boot partition bootloader proposes: - write generic boot code to MBR - GRUB stage1 to extended partition - GRUB stage2 to "/" on logical partition If I called set boot flag to extended partition via parted it breaks content of extended partition (the first 512B) It is cause of unbootable system. It is desribed in bug #461613 for yast2-bootloader. I did fix for calling parted in yast2-bootloader (called only if it is necessary not each time) but the basic problem is in parted. The problem is also in openSUSE 11.1 How to reproduce it: - create partitiong of disk where "/" is on logical and there is missing primary /boot partition - propose bootloader to install generic boot code to MBR and select boot from extended partition - start parted and set boot flag for extended partition
*** Bug 467593 has been marked as a duplicate of this bug. ***
Problem is more serious. it affects any change done by parted to logical partition as you can see in duplicate bug. So if you boot from extended partition and change logical partition (shrink, create, delete) you end with non-bootable system. How to reproduce it - 1) install grub to extended partition ( I can paste command) 2) do something with parted on logical partition and you end up with empty boot code in extended partition
(In reply to comment #2) > How to reproduce it - > 1) install grub to extended partition ( I can paste command) Please, be so kind :)
easiest way is that (or you can come personal ;) 1) start grub shell: grub 2) set root to your current boot partition (e.g. /dev/sda6): root (hd0,5) 3) install stage 1 to extended partition (e.g. /dev/sda3): setup (hd0,2) 4) quit grub shell: quit and thats all
It's even worse than in comment #2 - it's enough to touch primary partition (IOW make parted rewrite the partitions to disk) and the bootcode from extended partition is gone. Reported upstream and working on the fix.
Fixed in Factory and SLE11.
If this is fixed and only is there for maintenace update tracking, it should be moved to openSUSE 11.1.
Does this have to be fixed in the installation system?
(In reply to comment #13) > Does this have to be fixed in the installation system? I guess no as the issue in installation system/YaST is already solved with bug #461613. But booting still might broke when parted is invoked directly from console - and thus I think we should do maintenance update for parted too.
Submitted to 11.1. Closing
Update released for: parted, parted-devel Products: openSUSE 11.1 (debug, i586, ppc, ppc64, x86_64)