Results 1 to 9 of 9

Thread: Installer gives fatal error, won't install Grub

  1. #1
    Join Date
    Jul 2010
    Location
    Palics, Serbia
    Beans
    72

    Installer gives fatal error, won't install Grub

    After accidentally writing an iso image to the hard drive of the laptop I'm trying to install to (with dd command, I wrote sda instead of sdb), I've tried installing Ubuntu again, but it can't install Grub. After trying to install manually, I get a message that Grub cannot be installed because it's an iso9960 filesystem.

    I searched around for an answer, and found one on launchpad saying that they had 1MB of unallocated space before all the partitions, and getting rid of that solved the problem, but I don't have any unallocated space before my partitions!

    Would a separate /boot partition solve this issue? Or can it be solved with a Windows installer disc (I have an XP one)? I'm open to any solution really, but this needs to be solved fast! Thanks in advance!

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installer gives fatal error, won't install Grub

    dd does a bit by bit copy. So it copied the ISO file to the sda drive and removed all hard drive partitioning info. dd is also known as Data Destroyer.

    Have you tried using testdisk to see if it can find the old data. It may not be there since the full ISO overwrote the size of the ISO to the first part of the drive.

    You may just have to manually repartition drive. Not sure how else to remove CD data. You may be able to erase the first sector only which is the MBR & the partition table. Not sure you have anything to backup. First 440 is MBR, and the last from 446 to 512 is the partition table.

    Backup MBR
    https://help.ubuntu.com/community/Wi...re-replacement
    Backup the MBR e.g.
    sudo dd if=/dev/sda of=mbr.bin bs=446 count=1
    Zero out MBR only of sda Use 440 if windows as serial number is between 440 & 446. USE 512 if you want to zero out partition table.
    dd if=/dev/zero of=/dev/sda bs=446 count=1
    Erase - Make double sure you have correct drive & partition

    To see what is in your MBR:
    sudo dd if=/dev/sda1 bs=512 count=1 | hexdump -C
    Info on MBR
    http://www.dewassoc.com/kbase/hard_d...oot_record.htm
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  3. #3
    Join Date
    Jul 2010
    Location
    Palics, Serbia
    Beans
    72

    Re: Installer gives fatal error, won't install Grub

    If I zero out the whole partition table of sda, will it be ok to just run the Ubuntu installer again and reinstall the whole thing?

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installer gives fatal error, won't install Grub

    Do you have any data that you might want to try to recover? Only data beyond the size of the ISO would be possible but some tools scan drive for anything that looks like a file and will save it for you.

    Otherwise it does not matter. Erase MBR, the entire 512. You will not have any partitions, so you will have to repartition and reinstall the grub2 boot loader. A full install should work.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  5. #5
    Join Date
    Jul 2010
    Location
    Palics, Serbia
    Beans
    72

    Re: Installer gives fatal error, won't install Grub

    No I don't have any data, it was a clean install, fortunately. Thank you for the answer, I'll have access to the laptop in bit, and I'll post back how it went

  6. #6
    Join Date
    Jul 2010
    Location
    Palics, Serbia
    Beans
    72

    Re: Installer gives fatal error, won't install Grub

    I zeroed out the partition table, but I still get the grub fatal error. What should I do next (if there is anything I can do...)?

  7. #7
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installer gives fatal error, won't install Grub

    You can try writing new partition table first. Boot into live mode, open Gparted, select the correct disk (if you have more than one), and go into Device - Create Partition Table.

    The default is msdos table, if you want gpt you need to change it in the Advanced option. But msdos will do in most situations.

    Of course this creates empty table, no partitions are present and no data.

    Then see if the install will work.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  8. #8
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installer gives fatal error, won't install Grub

    It turns out that even though hard drives use the beginnning of the drive for the MBR, ISO do not.

    http://en.wikipedia.org/wiki/ISO_9660
    The first 32768 bytes of the disk are unused by ISO 9660 data structure, and therefore available for other use.
    Since you have nothing to recover, you can just write zeros to the entrie drive. That can take quite a while.

    While you can use dd, these may be better. Make sure the sda or sdb is the correct drive:
    see
    man shred for more info:
    sudo shred -n1 -v /dev/sdb
    or other tools:
    http://www.dban.org/
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  9. #9
    Join Date
    Jul 2010
    Location
    Palics, Serbia
    Beans
    72

    Re: Installer gives fatal error, won't install Grub

    Thanks for the replies, but they didn't let me try anymore after my last post here. They want to put Windows 7 on it. I wonder if that installer will also fail?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •