Public bug reported:

Binary package hint: ubiquity

installing on an existing partition, grub throws an error and the
installer exists.

the reason seems to be, that i had the wrong partition type (i formatted
an ntfs volume with ext3 via the installer).

$ sudo sfdisk -d /dev/hda

# partition table of /dev/hda
unit: sectors

/dev/hda1 : start=       63, size= 39070017, Id= 7, bootable
/dev/hda2 : start= 39070080, size= 19535040, Id=7
/dev/hda3 : start= 58605120, size= 19551105, Id=83
/dev/hda4 : start=        0, size=        0, Id= 0

so wrong is:
/dev/hda2 : start= 39070080, size= 19535040, Id=7
correct is:
/dev/hda2 : start= 39070080, size= 19535040, Id=83

/var/log/syslog:
Jan  3 15:15:17 ubuntu grub-installer: info: Installing grub on '(hd0)'
Jan  3 15:15:18 ubuntu grub-installer: info: grub-install supports --no-floppy
Jan  3 15:15:18 ubuntu grub-installer: info: Running chroot /target 
grub-install  --no-floppy "(hd0)"
Jan  3 15:15:18 ubuntu grub-installer: Probing devices to guess BIOS drives. 
This may take a long time.
Jan  3 15:15:18 ubuntu grub-installer: Searching for GRUB installation 
directory ... 
Jan  3 15:15:18 ubuntu grub-installer: found: /boot/grub
Jan  3 15:15:24 ubuntu grub-installer: The file /boot/grub/stage1 not read 
correctly.
Jan  3 15:15:24 ubuntu grub-installer: error: Running 'grub-install  
--no-floppy "(hd0)"' failed.
Jan  3 15:17:02 ubuntu /USR/SBIN/CRON[31235]: (root) CMD (   cd / && run-parts 
--report /etc/cron.hourly)
Jan  3 15:17:19 ubuntu python: log-output -t ubiquity umount /target/cdrom
Jan  3 15:17:19 ubuntu python: Exception during installation:
Jan  3 15:17:19 ubuntu python: Traceback (most recent call last):
Jan  3 15:17:19 ubuntu python:   File "/usr/share/ubiquity/install.py", line 
1768, in <module>
Jan  3 15:17:19 ubuntu python:     install.run()
Jan  3 15:17:19 ubuntu python:   File "/usr/share/ubiquity/install.py", line 
402, in run
Jan  3 15:17:19 ubuntu python:     self.configure_bootloader()
Jan  3 15:17:19 ubuntu python:   File "/usr/share/ubiquity/install.py", line 
1312, in configure_bootloader
Jan  3 15:17:19 ubuntu python:     "GrubInstaller failed with code %d" % ret)
Jan  3 15:17:19 ubuntu python: InstallStepError: GrubInstaller failed with code 
1
Jan  3 15:17:19 ubuntu python: 
Jan  3 15:17:21 ubuntu ubiquity[9845]: debconffilter_done: Install (current: 
None)
Jan  3 15:17:21 ubuntu ubiquity[9845]: Exception in GTK frontend (invoking 
crash handler):
Jan  3 15:17:21 ubuntu ubiquity[9845]: Traceback (most recent call last):
Jan  3 15:17:21 ubuntu ubiquity[9845]:   File "/usr/lib/ubiquity/bin/ubiquity", 
line 212, in <module>
Jan  3 15:17:21 ubuntu ubiquity[9845]:     main()
Jan  3 15:17:21 ubuntu ubiquity[9845]:   File "/usr/lib/ubiquity/bin/ubiquity", 
line 207, in main
Jan  3 15:17:21 ubuntu ubiquity[9845]:     install(args[0])
Jan  3 15:17:21 ubuntu ubiquity[9845]:   File "/usr/lib/ubiquity/bin/ubiquity", 
line 65, in install
Jan  3 15:17:21 ubuntu ubiquity[9845]:     ret = wizard.run()
Jan  3 15:17:21 ubuntu ubiquity[9845]:   File 
"/usr/lib/ubiquity/ubiquity/frontend/gtk_ui.py", line 425, in run
Jan  3 15:17:21 ubuntu ubiquity[9845]:     self.progress_loop()
Jan  3 15:17:21 ubuntu ubiquity[9845]:   File 
"/usr/lib/ubiquity/ubiquity/frontend/gtk_ui.py", line 776, in progress_loop
Jan  3 15:17:21 ubuntu ubiquity[9845]:     (ret, realtb))
Jan  3 15:17:21 ubuntu ubiquity[9845]: RuntimeError: Install failed with exit 
code 1
Jan  3 15:17:21 ubuntu ubiquity[9845]: Traceback (most recent call last):
Jan  3 15:17:21 ubuntu ubiquity[9845]:   File "/usr/share/ubiquity/install.py", 
line 1768, in <module>
Jan  3 15:17:21 ubuntu ubiquity[9845]:     install.run()
Jan  3 15:17:21 ubuntu ubiquity[9845]:   File "/usr/share/ubiquity/install.py", 
line 402, in run
Jan  3 15:17:21 ubuntu ubiquity[9845]:     self.configure_bootloader()
Jan  3 15:17:21 ubuntu ubiquity[9845]:   File "/usr/share/ubiquity/install.py", 
line 1312, in configure_bootloader
Jan  3 15:17:21 ubuntu ubiquity[9845]:     "GrubInstaller failed with code %d" 
% ret)
Jan  3 15:17:21 ubuntu ubiquity[9845]: InstallStepError: GrubInstaller failed 
with code 1
Jan  3 15:17:21 ubuntu ubiquity[9845]: 
Jan  3 15:17:21 ubuntu last message repeated 2 times

ps: is there a possibility to resume a failed installation? (i have yet
to try to re-start the installer ;) )

** Affects: ubiquity (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: grub

** Summary changed:

- fatal error on grub-install (hd0)
+ fatal error on grub-install (hd0) related to partition type

** Tags added: grub

-- 
fatal error on grub-install (hd0) related to partition type
https://bugs.launchpad.net/bugs/180089
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to