[Bug 974015] Re: /usr/sbin/grub-setup: error: non-sector-aligned data is found in the core file.

Shih-Yuan Lee 974015 at bugs.launchpad.net
Thu Apr 5 08:50:43 UTC 2012


This issue seems to be fixed at grub2 1.99-21ubuntu1.

** Changed in: grub2 (Ubuntu)
       Status: Confirmed => Invalid

-- 
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/974015

Title:
  /usr/sbin/grub-setup: error: non-sector-aligned data is found in the
  core file.

Status in “grub2” package in Ubuntu:
  Invalid

Bug description:
  grub2 1.99-20ubuntu1

  Description:
  When I try to install grub-pc into first hard disk partition, it fails.
   
  Reproduce Steps:
  1. dd if=/dev/zero of=/dev/sda bs=1M count=1
  2. parted -a cylinder -s /dev/sda mklabel msdos
  3. parted -a cylinder -s /dev/sda mkpart primary fat32 0 1794
  4. parted -a cylinder -s /dev/sda set 1 boot on
  5. mkfs.msdos -n PQSERVICE /dev/sda1
  6. mount /dev/sda1 /mnt
  7. /usr/lib/grub/i386-pc/grub-install --force --root-directory=/mnt /dev/sda1

  Error Messages:
  Apr  5 06:15:58 ubuntu ubiquity: /usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition.  This is a BAD idea..
  Apr  5 06:15:58 ubuntu ubiquity: /usr/sbin/grub-setup: warn: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
  Apr  5 06:15:58 ubuntu ubiquity: /usr/sbin/grub-setup: error: non-sector-aligned data is found in the core file.
  Apr  5 06:15:58 ubuntu ubiquity[6208]: log-output -t ubiquity /usr/lib/grub/i386-pc/grub-install --force --root-directory=/mnt /dev/sda1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/974015/+subscriptions




More information about the foundations-bugs mailing list