[Bug 730225] Re: grub-install trashes the ntfs partition that starts at sector 63 if one or more sectors in the embedding area is occupied by Adobe FlexNet
aimwin
730225 at bugs.launchpad.net
Wed Nov 30 12:22:32 UTC 2011
I have reinstall grub in my note book many times and no "error message" like this one,
-------------
tbuntu at tbuntu:~$ sudo mount /dev/sda11 /mnt
[sudo] password for tbuntu:
tbuntu at tbuntu:~$ sudo grub-install --boot-directory=/mnt/boot /dev/sda
/usr/sbin/grub-setup: warn: Sector 50 is already in use by FlexNet; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
Installation finished. No error reported.
tbuntu at tbuntu:~$ grub-install -v
grub-install (GRUB) 1.99-12ubuntu5
-------------
I will see if my window XP is destroyed or not.
I have Ubuntu 10.04, 11.04 and Lubuntu 11.10 installed with window XP.
The previous grub reinstall was done in Ubuntu 11.04.
And after that I did experiment with Boot Repair, and set Ubuntu 11.04 as default boot.
Current Lubuntu 11.10 (sda11) was a clone of Lubuntu 11.10 (sad4) by Clonezilla CD,
my first experiment on Cloning by Clonezilla.
Then I format sda4 for next ubuntu installation.
And after that I did experiment with Boot Repair, and set Ubuntu 11.04 as default boot.
And today,
I reinstall grub2 since I want default /boot to be change to lubuntu 11.10(sad11).
Then I have the above error.
I have not install any new adobe software in windows at all for long time, and the last time I turn on my windows,
to check window files system of usb-hdd. and did not update anything.
The only Adobe program is AR Reader installations were done to USB-stick Ubuntu,
or external drive and to some of my Ubuntu experiment.
Though Photoshop and AI and other Adobe update in windows XP were done years ago,
since I install Ubuntu 8.04,
and never have this issue until lubuntu 11.10 "grub reinstall".
The installation of lubuntu 11.10 did not produce any error too.
When
Bug Watch Updater (bug-watch-updater) on 2011-03-16
Changed in grub2 (Debian):
status: New → Fix Released
Dose it suppose to still produce the error above?
I will report on my XP later.
Thank you.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/730225
Title:
grub-install trashes the ntfs partition that starts at sector 63 if
one or more sectors in the embedding area is occupied by Adobe FlexNet
Status in “grub2” package in Ubuntu:
Fix Released
Status in “grub2” package in Debian:
Fix Released
Bug description:
Binary package hint: grub
The new grub-install of natty alpha3 now detects and avoids FlexNet-
occupied sectors, but it seems it somehow mishandles something and
writes code into after sector 63, thus make the ntfs partition that
starts there unbootable and unreadable.
I have tested with a memory stick /dev/sdc partitioned like this:
ubuntu at ubuntu:~$ sudo fdisk -lu /dev/sdc
Disk /dev/sdc: 16.2 GB, 16236085248 bytes
255 heads, 63 sectors/track, 1973 cylinders, total 31711104 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: 0x00063979
Device Boot Start End Blocks Id System
/dev/sdc1 63 25671869 12835903+ 7 HPFS/NTFS
/dev/sdc2 25671870 31696244 3012187+ 83 Linux
/dev/sdc1 was not mounted.
/dev/sdc2 was mounted on /mnt.
Then I downloaded FlexNet signature at
http://forum.ubuntu.com.cn/viewtopic.php?f=49&t=320155&start=30
unzipped flexnet.sector32.zip, and wrote into sector32:
sudo dd if=flexnet.sector32 of=/dev/sdc seek=32
ran grub-install, it detected and avoided that sector:
ubuntu at ubuntu:~$ sudo grub-install /dev/sdc --root-directory=/mnt
/usr/sbin/grub-setup: warn: Sector 32 is already in use by FlexNet;
avoiding it. This software may cause boot or other problems in
future. Please ask its authors not to store data in the boot track.
Installation finished. No error reported.
NTFS partition /dev/sdc1 was now trashed. By design, the last sector
of ntfs is a backup of its boot sector, so I copied the last sector of
/dev/sdc1 to its first sector and successfully recovered the file
system:
ubuntu at ubuntu:~$ sudo dd if=/dev/sdc of=/dev/sdc count=1 seek=63
skip=25671869
I took a further look at the sectors and found that the first sector
of the partition was not the only sector that was overwritten by grub,
and was surprised that by recoverying only the first sector the whole
file system seemed good.
By removing the FlexNet signature, grub-install never overwrite the
NTFS sectors again.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: grub (not installed)
ProcVersionSignature: Ubuntu 2.6.38-5.32-generic 2.6.38-rc6
Uname: Linux 2.6.38-5-generic i686
NonfreeKernelModules: wl
Architecture: i386
Date: Sun Mar 6 17:43:14 2011
LiveMediaBuild: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110302)
ProcEnviron:
LANGUAGE=en_US:en
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: grub
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/730225/+subscriptions
More information about the foundations-bugs
mailing list