GRUB recognizes defunct LDM headers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| grub2 (Ubuntu) |
Critical
|
Phillip Susi | ||
| Quantal |
Critical
|
Phillip Susi |
Bug Description
[Impact]
Grub can no longer boot Windows
[Test Case]
Use Windows to format a dynamic disk. Use fdisk to repartition the disk as a regular MBR disk. os-prober still recognizes the defunct ldm partition table with the Windows partition in it.
[Regression Potential]
Previously grub had no support for ldm, so the worst case is that it goes back to not recognizing ldm, as opposed to the goal of this patch of only recognizing *valid* ldm.
.
GRUB recognizes stale LDM headers left on the disk after reformatting without LDM. This causes grub to complain either that embedding is not possible, and/or to incorrectly use the ldm partition module instead of msdos.
- This bug affect GRUB2.00 (default bootloader of Ubuntu12.10).
- This bug completely breaks access to any operating system, either when installing a fresh 12.10, or when upgrading from 12.04 to 12.10.
*******
WORKAROUND1 (when GRUB appears, but the Windows entry fails and shows a "A disk Error Occurred" error):
see Comment #44 below ( https:/
WORKAROUND2:
see Comment #26 below ( https:/
WORKAROUND3:
Use Boot-Repair ( https:/
*******
Related branches
- Ubuntu Development Team: Pending requested 2012-12-03
-
Diff: 2237 lines (+2103/-3)10 files modified.pc/applied-patches (+1/-0)
.pc/ldm-require-sfs-partition.patch/Makefile.util.def (+783/-0)
.pc/ldm-require-sfs-partition.patch/grub-core/disk/ldm.c (+1010/-0)
.pc/ldm-require-sfs-partition.patch/include/grub/msdos_partition.h (+126/-0)
Makefile.util.def (+1/-1)
debian/changelog (+7/-0)
debian/patches/ldm-require-sfs-partition.patch (+136/-0)
debian/patches/series (+1/-0)
grub-core/disk/ldm.c (+37/-2)
include/grub/msdos_partition.h (+1/-0)
- Colin Watson: Pending requested 2012-12-03
-
Diff: 2237 lines (+2103/-3)10 files modified.pc/applied-patches (+1/-0)
.pc/ldm-require-sfs-partition.patch/Makefile.util.def (+783/-0)
.pc/ldm-require-sfs-partition.patch/grub-core/disk/ldm.c (+1010/-0)
.pc/ldm-require-sfs-partition.patch/include/grub/msdos_partition.h (+126/-0)
Makefile.util.def (+1/-1)
debian/changelog (+7/-0)
debian/patches/ldm-require-sfs-partition.patch (+136/-0)
debian/patches/series (+1/-0)
grub-core/disk/ldm.c (+37/-2)
include/grub/msdos_partition.h (+1/-0)
Joe Sweeney (joesweeney413) wrote : | #2 |
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ x"${feature_
menuentry_
else
menuentry_
fi
export menuentry_id_option
if [ "${prev_
set saved_entry=
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
if [ x$feature_
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root ec0d1ef0-
fi
font=
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=5
fi
### END /etc/grub.
### BEGIN /etc/grub.
set menu_color_
set menu_color_
if background_color 44,0,30; then
clear
fi
### END /etc/grub.
### BEGIN /etc/grub.
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}
if hwmatch ${prefix}
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_
search --no-floppy --fs-uuid --set=root --hint-
else
search --no-floppy --fs-uuid --set=root ec0d1ef0-
fi
linux /boot/vmli...
Joe Sweeney (joesweeney413) wrote : | #3 |
(parted) print
Model: ATA WDC WD2500BEVT-0 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 106MB 105MB primary ntfs boot
2 106MB 64.5GB 64.4GB primary ntfs
3 64.5GB 218GB 154GB primary ext4
4 218GB 250GB 32.0GB primary ext4
Phillip Susi (psusi) wrote : | #4 |
Please run sudo grub-probe -t partmap -d /dev/sda1
Joe Sweeney (joesweeney413) wrote : | #5 |
sudo grub-probe -t partmap -d /dev/sda1 returns a blank line. sda2 is seen as msdos.
Phillip Susi (psusi) wrote : | #6 |
Can you try adding a -v switch?
Joe Sweeney (joesweeney413) wrote : | #7 |
sudo grub-probe -t partmap -d /dev/sda1 -vgrub-probe: info: cannot open `/boot/
grub-probe: info: Looking for /dev/sda1.
grub-probe: info: /dev/sda is a parent of /dev/sda1.
grub-probe: info: /dev/sda1 starts from 2048.
grub-probe: info: opening the device hostdisk//dev/sda.
grub-probe: info: the size of hostdisk//dev/sda is 488397168.
grub-probe: info: the size of hostdisk//dev/sda is 488397168.
grub-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sda.
grub-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sda.
grub-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sda.
grub-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sda.
grub-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sda.
grub-probe: info: Scanning for ldm devices on disk hostdisk//dev/sda.
grub-probe: info: scanning hostdisk//dev/sda for LDM.
grub-probe: info: Found array JOE-LAPTOP-Dg0.
grub-probe: info: Inserting hostdisk//dev/sda into JOE-LAPTOP-Dg0 (ldm)
.
grub-probe: info: the size of hostdisk//dev/sda is 488397168.
grub-probe: info: Scanning for DISKFILTER devices on disk ldm/078b489e-
grub-probe: info: Scanning for mdraid1x devices on disk ldm/078b489e-
grub-probe: info: Scanning for mdraid09 devices on disk ldm/078b489e-
grub-probe: info: Scanning for mdraid09_be devices on disk ldm/078b489e-
grub-probe: info: Scanning for dmraid_nv devices on disk ldm/078b489e-
grub-probe: info: Scanning for ldm devices on disk ldm/078b489e-
grub-probe: info: scanning ldm/078b489e-
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk ldm/078b489e-
grub-probe: info: no LVM signature found.
grub-probe: info: Scanning for DISKFILTER devices on disk ldm/078b489e-
grub-probe: info: Scanning for mdraid1x devices on disk ldm/078b489e-
grub-probe: info: Scanning for mdraid09 devices on disk ldm/078b489e-
grub-probe: info: Scanning for mdraid09_be devices on disk ldm/078b489e-
grub-probe: info: Scanning for dmraid_nv devices on disk ldm/078b489e-
grub-probe: info: Scanning for ldm devices on disk ldm/078b489e-
grub-probe: info: scanning ldm/078b489e-
grub-probe: info: no LDM signature found.
grub-probe: info: Scanning for lvm devices on disk ldm/078b489e-
grub-probe: info: no LVM signature found.
grub-probe: info: Scanning for DISKFILTER devices on disk ldm/078b489e-
grub-probe: info: Scanning for mdraid1x devices on disk ldm/078b489e-
grub-probe: info: Scanning for mdraid09 ...
Joe Sweeney (joesweeney413) wrote : | #8 |
also just want to mention, in the past few days, there have been several grub package updates i have installed all of them and everytime it overights and readds ldm to the paths.
Phillip Susi (psusi) wrote : | #9 |
It IS recognizing LDM on the disk. My guess is that the LDM headers are still present from when they were used before, so grub is recognizing them. The fact that the dos partition table does not show an LDM partition however, should bar the detection of LDM I think.
summary: |
- GRUB thinks Windows 7 is on LDM + GRUB recognizes defunct LDM headers |
Changed in grub2 (Ubuntu): | |
status: | Incomplete → Triaged |
importance: | Undecided → Medium |
Joe Sweeney (joesweeney413) wrote : | #10 |
certainly is weird. ive NEVER had windows on ldm, and furthermore, nothing in the system has changed in over a year. all the sudden after a grub update a few weeks ago, this started happened, i only noticed cuz i went to boot into win7 and i got a diskread error, which made me check grub.cfg. i dont understand why all the sudden it would probe anything different.
Joe Sweeney (joesweeney413) wrote : | #11 |
it IS a PITA that i have to manually edit grub.cfg everytime theres an update. this system has been running perfectly for months. they changed SOMETHING in one of the last 5-10 updates that is making it see an ldm. i think it was the update that chaged the layout of the grub menu. IE my menu used to say "Ubuntu 12.10 on <kernel>" now it just says "Ubuntu" thinking back, im almost positive this was the same time that it started adding ldm.
Phillip Susi (psusi) wrote : | #12 |
LDM support is a recently added feature in grub, so that would explain why it didn't do this before. You probably did use LDM on the drive at some point in the past, but have long ago reformatted. I'm looking into the LDM format now.
Dimitri John Ledkov (xnox) wrote : | #13 |
LDM is default installation type since I believe windows xp pro, it's just probably headers were not cleared when deactivating it leading to interesting behaviour.
Joe Sweeney (joesweeney413) wrote : | #14 |
its just weird. i got this pc brand new, in march, installed 7,ubuntu and backtrack, neither logical, and havent messed with partitions since.
Joe Sweeney (joesweeney413) wrote : | #15 |
is there a way to disable grub rescanning after every package update? its getting really annoying editing grub.cfg all the time with grub having daily updates being pushed out....
description: | updated |
Changed in grub2 (Ubuntu): | |
importance: | Medium → Critical |
Midnight-Man (o1882197) wrote : | #16 |
Got exactly the same bug here, attached grub.cfg
Results of parted print
(parted) print
Model: ATA SAMSUNG HD103SJ (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32,3kB 107GB 107GB primary ntfs boot
2 107GB 1000GB 893GB extended lba
5 107GB 215GB 107GB logical ntfs
6 215GB 322GB 107GB logical ntfs
7 322GB 893GB 571GB logical ntfs
8 893GB 945GB 52,7GB logical ext4
9 945GB 998GB 52,7GB logical ext4
10 998GB 1000GB 2049MB logical linux-swap(v1)
Midnight-Man (o1882197) wrote : | #17 |
Attached: results of sudo grub-probe -t partmap -d /dev/sda1 -v (without -v switch I got just empty line)
YannUbuntu (yannubuntu) wrote : | #18 |
Another case: http://
GreatKir (deminkirill) wrote : | #19 |
This bug affects me too:
/usr/sbin/
/usr/sbin/
In the past this drive was formatted as LDM.
In attachment are first 3 MB from the disk.
YannUbuntu (yannubuntu) wrote : | #20 |
Another case: http://
YannUbuntu (yannubuntu) wrote : | #21 |
YannUbuntu (yannubuntu) wrote : | #22 |
Another user: http://
GRUB2.00 can't install into the MBR because of this bug. Is there any workaround? (like adding --force , --disk-module=... , --module=... , or else?)
ZoLToR (zoltor) wrote : | #23 |
Critical? Damn, this is Blocker! I almost lost all my data on hard drive (but with "testdisk" restored it) when tried to solving problem with GRUB before I let to know that is bug! :(((((
p.s. Sorry for my English.
YannUbuntu (yannubuntu) wrote : | #24 |
Another case: http://
description: | updated |
description: | updated |
Laurie Bradshaw (lauriebradshaw) wrote : | #25 |
How safe would it be to save the partition layout (eg sfdisk), zero the start of the disk, reapply the partition layout, and grub-install?
At least for simple cases, where no additional volume management is being used?
Phillip Susi (psusi) wrote : | #26 |
It is actually the backup copy at the end of the disk that appears to be the problem. Zeroing out the last sector of the disk should fix it. To do this, you want to follow steps similar to this:
sudo fdisk -lu /dev/sda
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Note the sector count. Subtract one and that leaves 488397167, which you can then use with dd to dump that sector:
sudo dd if=/dev/sda bs=512 count=1 skip=488397167 | hd
At this point you should see somewhere on the screen the string "PRIVHEAD". If you do, that is the LDM label sector. You can then zero it out with:
sudo dd if=/dev/zero of=/dev/sda bs=512 seek=488397167 count=1
It is vital that the command be executed correctly or you can trash your whole disk, so triple check your typing and math before hitting enter.
Changed in grub2 (Ubuntu): | |
milestone: | none → ubuntu-12.04.2 |
DUMAINE Edouard (edouard-dumaine) wrote : | #27 |
I have exactly the same problem and solution proposed by Phillip works for me, so thanks you Phillip.
Phillip Susi (psusi) wrote : | #28 |
Seeing as how parted does not support LDM so we can't properly partition such disks anyhow, I suggest that we disable the ldm support in grub for now.
Changed in grub2 (Ubuntu): | |
milestone: | ubuntu-12.04.2 → quantal-updates |
tags: | added: regression-release |
Midnight-Man (o1882197) wrote : | #29 |
Filling last sector of HDD with zeros did not help me. There was a "PRIVHEAD" string at beginning of sector, it is now deleted, checked few times, to be sure, but after sudo update-grub I still got "insmod ldm". Hope that this did not trashed my disk :P
Until this will be fixed I also suggest to disable ldm support in grub.
YannUbuntu (yannubuntu) wrote : | #30 |
Can 'grub-install --force /dev/sdX...' be used as a workaround? has anyone tried?
Phillip Susi (psusi) wrote : | #31 |
No, since grub also uses the wrong partition module and references the wrong partition when trying to locate windows, if it even sees it at all to add an entry to the menu.
solax (solax76) wrote : | #32 |
I had the same problem and after having searched for a while I have solved with solution proposed by Phillip!
Thank you Phillip!
Modano (modano) wrote : | #33 |
Hi all,
same here :
http://
Worked with Philip's zeroing of last sector. Many thanks.
João Rossa (joao-rossa) wrote : | #34 |
Here's my boot-repair url :
http://
I keep having trouble launching Windows 7 from the grub. I get the "A disk Error Occurred. Press ctrl alt del to restart".
The ubuntu team said it was this bug, Can anyone confirm? Do i need to recover windows 7 boot first before using the workarounds?
regards,
João Rossa (joao-rossa) wrote : | #35 |
Should i use the workaround with boot-repair?
WORKAROUND:
Use Boot-Repair ( https:/
Phillip Susi (psusi) wrote : | #36 |
Yes, this bug is affecting you. You can zap the last sector of the disk and run update-grub and that should fix it.
João Rossa (joao-rossa) wrote : | #37 |
Sorry Phillip can you elaborate a bit more, i'm a bit newbie on ubuntu, so how do i zap the last sector of the disk?And do i do it on a liveCD run?
regards,
João Rossa (joao-rossa) wrote : | #38 |
Do i need to recover the windows 7 boot first and then run liveCD ?Do i do what you said here:
"It is actually the backup copy at the end of the disk that appears to be the problem. Zeroing out the last sector of the disk should fix it. To do this, you want to follow steps similar to this:
sudo fdisk -lu /dev/sda
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Note the sector count. Subtract one and that leaves 488397167, which you can then use with dd to dump that sector:
sudo dd if=/dev/sda bs=512 count=1 skip=488397167 | hd
At this point you should see somewhere on the screen the string "PRIVHEAD". If you do, that is the LDM label sector. You can then zero it out with:
sudo dd if=/dev/zero of=/dev/sda bs=512 seek=488397167 count=1
It is vital that the command be executed correctly or you can trash your whole disk, so triple check your typing and math before hitting enter."
After doing all this i should use the "update-grub" command?
regards,
Phillip Susi (psusi) wrote : | #39 |
You don't have to do it from a livecd, and yes, after that you can just run sudo update-grub and it should work properly.
João Rossa (joao-rossa) wrote : | #40 |
Here's the initial command:
maxrunner@
[sudo] password for maxrunner:
Disk /dev/sda: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953523055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6a835856
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 252862463 126327808 7 HPFS/NTFS/exFAT
/dev/sda3 253841406 1953519615 849839105 f W95 Ext'd (LBA)
/dev/sda4 252862464 253839026 488281+ 83 Linux
/dev/sda5 488382464 976760831 244189184 7 HPFS/NTFS/exFAT
/dev/sda6 976760896 1953519615 488379360 7 HPFS/NTFS/exFAT
/dev/sda7 253841408 265558015 5858304 82 Linux swap / Solaris
/dev/sda8 265560064 324151295 29295616 83 Linux
/dev/sda9 324153344 488376319 82111488 83 Linux
So i just need to subtract 1 to 1953523055-
João Rossa (joao-rossa) wrote : | #41 |
So making these two commands:
sudo dd if=/dev/sda bs=512 count=1 skip=1953523054 | hd
and
sudo dd if=/dev/zero of=/dev/sda bs=512 seek=1953523054 count=1
Will not trash my disk? im a little hesitant lol.
YannUbuntu (yannubuntu) wrote : | #42 |
description: | updated |
Phillip Susi (psusi) wrote : | #43 |
As I said before, make sure you see the PRIVHEADER before doing the second dd command, and if you do then this should fix the problem.
oldfred (oldfred) wrote : | #44 |
I do not like suggesting dd to new users.
In this thread just adding a Windows 7 boot stanza to 40_custom worked. Grub legacy almost never found Windows 7 either and we almost always had to add the boot stanza for Windows 7 to menu.lst.
http://
See post #12, user said it worked in #13
#Add menu entry to 40_custom, first find correct UUID
sudo blkid
Adjust boot stanza entry for UUID and example partition sda1 and (hd0,1) to which evey partition Windows boots from.
gksudo gedit /etc/grub.
#update grub menu
sudo update-grub
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 908A5B7D8A5B5F32
chainloader +1
}
Phillip Susi (psusi) wrote : | #45 |
If you haven't zapped the last sector yet, I am building a patched version that should fix the bug and could use testing. Please add my ppa and update:
sudo apt-add-repository ppa:psusi/ppa
sudo apt-get update
sudo apt-get upgrade
Changed in grub2 (Ubuntu): | |
assignee: | nobody → Phillip Susi (psusi) |
status: | Triaged → In Progress |
description: | updated |
Changed in grub2 (Ubuntu Quantal): | |
milestone: | none → quantal-updates |
Changed in grub2 (Ubuntu): | |
milestone: | quantal-updates → none |
Ronni (ronni-jensen) wrote : | #46 |
I guess this is the same bug preventing me from booting into Windows, even if it is on a seperate disk.
I upgraded Grub from Phillip's PPA, without much luck.
Ronni (ronni-jensen) wrote : | #47 |
I finally got it booting into Windows, but I had to edit grub.cfg to get it booting.
I tried zeroing the last sector (it did indeed have an LDM header) but no luck.
Edited grub.cfg http://
Parted print http://
description: | updated |
Changed in grub2 (Ubuntu Quantal): | |
status: | New → In Progress |
assignee: | nobody → Phillip Susi (psusi) |
importance: | Undecided → Critical |
Midnight-Man (o1882197) wrote : | #48 |
I zapped last sector, but anyway tried patch. I ran:
sudo apt-add-repository ppa:psusi/ppa
sudo apt-get update
sudo apt-get upgrade
sudo update-grub
Not fixed here - I got ldm again in grub.cfg :( Manually fixed this to msdos in Kate.
Phillip Susi (psusi) wrote : | #49 |
Can you post the output of sudo fdisk -lu and apt-cache policy grub-pc?
Phillip Susi (psusi) wrote : | #50 |
Ahh, unless you are running raring, then you didn't get the update. I have copied it to the quantal pocket so try the update && upgrade again.
Ronni (ronni-jensen) wrote : | #51 |
I got the update by fidgeting with the sources, so 2.00-7-ubuntu14 was installed when I posted above.
fdisk -lu output http://
apt-cache output (I changed the repository back , just to see if it made a difference. It didn't) http://
Phillip Susi (psusi) wrote : | #52 |
Is your windows on the 750 gb drive or the 16gb drive?
Ronni (ronni-jensen) wrote : | #53 |
It's on the 750gb (/dev/sdb) - the 16gig is a cf-card
Phillip Susi (psusi) wrote : | #54 |
Then it is *supposed* to be using ldm since that is a dynamic disk.
Midnight-Man (o1882197) wrote : | #55 |
Thanks Phillip - looks like I did not get update. Now it is fixed for me :D
Everytime I run sudo update-grub I got msdos now and everything works flawlessly :D
You are the best! Thanks! :D
Just for confirmation fdisk -lu & apt-cache results (after successful update): http://
Ronni (ronni-jensen) wrote : | #56 |
Then the ldm-loader is broken, because this is the configuration that boots into win7 on the second disk, with the part generated by grub commented out http://
I'll downgrade to 12.04 and see what grub.cfg looks like.
Ronni (ronni-jensen) wrote : | #57 |
I've reinstalled 12.04, out of curiosity.
Grub:
sudo apt-cache policy grub-pc
grub-pc:
Installed: 1.99-21ubuntu3
Candidate: 1.99-21ubuntu3
Version table:
*** 1.99-21ubuntu3 0
500 http://
100 /var/lib/
And the grub.cfg - booting perfectly into Win7 on the secondary disk.
### BEGIN /etc/grub.
menuentry "Windows 7 (loader) (on /dev/sdb1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd1,msdos2)'
search --no-floppy --fs-uuid --set=root 085AFE3C5AFE265A
chainloader +1
}
Phillip Susi (psusi) wrote : | #58 |
12.04 did not support ldm and your disk is a hybrid, still having a regular msdos partition with the SFS type mapping to your windows partition, thus msdos also works. If the unmodified ldm configuration does not work, please file a new bug report.
YannUbuntu (yannubuntu) wrote : | #59 |
@Phillip: here is a case where the last sector does not contain "PRIVHEAD" : http://
YannUbuntu (yannubuntu) wrote : | #60 |
@phillip: here is a case where zeroing the last sector does not fix the bug: http://
YannUbuntu (yannubuntu) wrote : | #61 |
Another case where zeroing the last sector didn't help: http://
Ronni (ronni-jensen) wrote : | #62 |
The last three may be related to this instead: https:/
YannUbuntu (yannubuntu) wrote : | #63 |
Here is another one where zeroing the last sector didn't help: http://
(I don't know LDM much, so I don't know if you need more examples like this or not, just tell me)
Phillip Susi (psusi) wrote : | #64 |
It looks like the main copy of the LDM label is in sector 6, so perhaps they also have that one.
Peter (pepe66) wrote : | #65 |
I can confirm that in my case sector 6 also contained the stray PRIVHEAD stuff.
Zeroing this sector (only the first byte of it, in fact) in addition to zeroing the last sector fixed the problem for me.
Now grub2 no longer treats the disk as LDM.
YannUbuntu (yannubuntu) wrote : | #66 |
Just to be sure: when you say "sector 6", do you mean the 6th sector, eg "dd if=/dev/zero of=/dev/sda bs=512 seek=5 count=1" ?
YannUbuntu (yannubuntu) wrote : | #67 |
@Phillip: here is an example where
1) zeroing the last sector didn't workaround this bug (lines 658 / 659)
2) sector 6 does not contain PRIVHEAD (see line 624)
Phillip Susi (psusi) wrote : | #68 |
According to the MBR that actually IS a dynamic disk, and and the seek argument should be 6, not 5.
YannUbuntu (yannubuntu) wrote : | #69 |
> that actually IS a dynamic disk
ok, so let's forget my post #67
>the seek argument should be 6, not 5.
ok, thanks. i'll come back to you when i get new results.
Laurent Bonnaud (laurent-bonnaud) wrote : | #70 |
I had the same problem in Debian with the following package version:
Package: grub2
Version: 2.00-14
and WORKAROUND2 did work.
Felipe Alcacibar (falcacibar) wrote : | #71 |
same here
dd if=/dev/zero of=/dev/sda bs=512 seek=6 count=1
You can screw up all your disk or primary partition, check lot of times if you are right.
Timothy Gu (timothy-gu) wrote : | #72 |
Has this bug been fixed? It has been on critical for ~1.5 years and nobody seems to care about it anymore.
Phillip Susi (psusi) wrote : | #73 |
It appears that this was fixed in trusty, and quantal is now end of life.
Changed in grub2 (Ubuntu Quantal): | |
status: | In Progress → Won't Fix |
Changed in grub2 (Ubuntu): | |
status: | In Progress → Fix Released |
Please include your grub.cfg and the output of parted print.