Grub installer hangs with error 2

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help

Grub installer hangs with error 2

Postby ricky on Sun Jan 18, 2009 2:58 am

i built this iso with remastersys, and whenever i try to install ubiquity hangs and exits at the grub installation stage. i know that remasystersys has it's own forums but they are down and i need this fixed as fast as i can so i can stop using windows. :x so i am including my debug file that i got from running sudo ubiquity --debug.

so i've tried to install grub through the normal means (root, setup, exit) setup hits error 17, cannot mount partition, hd0,0. also if i reboot i get error 15 or grub just doesn't even start. supergrubdisk don't work, and i am throughly frustrated. i need help.

let me know if you guys need anything else from me

uhhhhh......i can't upload the file so here's the copy and paste. sorry it's long.
Ubiquity 1.10.10
partition: ('1', '32256-53011929599', '53011897344', 'primary', 'ntfs', '/dev/sda1', '')
partition: ('2', '53011929600-484008376319', '430996446720', 'primary', 'ext3', '/dev/sda2', '')
partition: ('3', '484008376320-497884423679', '13876047360', 'primary', 'ext3', '/dev/sda3', '')
partition: ('4', '497884423680-500105249279', '2220825600', 'primary', 'linux-swap', '/dev/sda4', '')
Exception in GTK frontend (invoking crash handler):
Traceback (most recent call last):
File "/usr/lib/ubiquity/bin/ubiquity", line 229, in <module>
main()
File "/usr/lib/ubiquity/bin/ubiquity", line 224, in main
install(args[0])
File "/usr/lib/ubiquity/bin/ubiquity", line 68, in install
ret = wizard.run()
File "/usr/lib/ubiquity/ubiquity/frontend/gtk_ui.py", line 437, in run
self.progress_loop()
File "/usr/lib/ubiquity/ubiquity/frontend/gtk_ui.py", line 825, in progress_loop
(ret, realtb))
RuntimeError: Install failed with exit code 1
Traceback (most recent call last):
File "/usr/share/ubiquity/install.py", line 2112, in <module>
install.run()
File "/usr/share/ubiquity/install.py", line 428, in run
self.configure_bootloader()
File "/usr/share/ubiquity/install.py", line 1599, in configure_bootloader
"GrubInstaller failed with code %d" % ret)
InstallStepError: GrubInstaller failed with code 2

a little stuff in the middle and


Jan 18 06:16:47 debconf (filter): <-- INPUT low grub-installer/password
debconf (developer): <-- METAGET grub-installer/password Type
debconf (developer): --> 1 password
debconf (developer): <-- INPUT low grub-installer/password
debconf (developer): --> 30 question skipped
Jan 18 06:16:47 debconf (filter): <-- GO
debconf (developer): <-- GO
debconf (developer): --> 0 ok
Jan 18 06:16:47 debconf (filter): <-- GET grub-installer/password
debconf (developer): <-- GET grub-installer/password
debconf (developer): --> 1
Jan 18 06:16:48 debconf (filter): <-- GET debian-installer/add-kernel-opts
debconf (developer): <-- GET debian-installer/add-kernel-opts
debconf (developer): --> 1
Jan 18 06:16:48 debconf (filter): <-- GET grub-installer/bootdev_directory
debconf (developer): <-- GET grub-installer/bootdev_directory
debconf (developer): --> 1
Jan 18 06:16:48 debconf (filter): <-- PROGRESS STOP
Jan 18 06:16:48 debconf (filter): widget found for grub-installer/progress/title
Jan 18 06:16:48 debconf (filter): --> 0 OK
Jan 18 06:16:48 ubiquity: ['log-output', '-t', 'ubiquity', '--pass-stdout', '/usr/share/ubiquity/install.py'] exited with code 1
Exception in GTK frontend (invoking crash handler):
Traceback (most recent call last):
File "/usr/lib/ubiquity/bin/ubiquity", line 229, in <module>
main()
File "/usr/lib/ubiquity/bin/ubiquity", line 226, in main
install()
File "/usr/lib/ubiquity/bin/ubiquity", line 68, in install
ret = wizard.run()
File "/usr/lib/ubiquity/ubiquity/frontend/gtk_ui.py", line 437, in run
self.progress_loop()
File "/usr/lib/ubiquity/ubiquity/frontend/gtk_ui.py", line 825, in progress_loop
(ret, realtb))
RuntimeError: Install failed with exit code 1
Traceback (most recent call last):
File "/usr/share/ubiquity/install.py", line 2112, in <module>
install.run()
File "/usr/share/ubiquity/install.py", line 428, in run
self.configure_bootloader()
File "/usr/share/ubiquity/install.py", line 1599, in configure_bootloader
"GrubInstaller failed with code %d" % ret)
InstallStepError: GrubInstaller failed with code 2



Traceback (most recent call last):
File "/usr/lib/ubiquity/bin/ubiquity", line 229, in <module>
main()
File "/usr/lib/ubiquity/bin/ubiquity", line 226, in main
install()
File "/usr/lib/ubiquity/bin/ubiquity", line 68, in install
ret = wizard.run()
File "/usr/lib/ubiquity/ubiquity/frontend/gtk_ui.py", line 437, in run
self.progress_loop()
File "/usr/lib/ubiquity/ubiquity/frontend/gtk_ui.py", line 825, in progress_loop
(ret, realtb))
RuntimeError: Install failed with exit code 1
Traceback (most recent call last):
File "/usr/share/ubiquity/install.py", line 2112, in <module>
install.run()
File "/usr/share/ubiquity/install.py", line 428, in run
self.configure_bootloader()
File "/usr/share/ubiquity/install.py", line 1599, in configure_bootloader
"GrubInstaller failed with code %d" % ret)
InstallStepError: GrubInstaller failed with code 2
User avatar
ricky
Level 1
Level 1
 
Posts: 46
Joined: Fri Dec 28, 2007 6:45 pm

Linux Mint is funded by ads and donations.
 

Re: Grub installer hangs with error 2

Postby herman on Sun Jan 18, 2009 7:56 pm

The ubiquity error you mentioned could be the same as this Ubuntu launchpad bug, Bug #260001:https://bugs.launchpad.net/bugs/260001

There are several different possible causes of GRUB Error 17.
If it occurs when trying to boot Linux in a computer with only one hard disk, it most often means the partition needs a file system check.
You can run a file system check by booting your Live CD and opening Gnome Partition Editor, right-click on the partition, and click 'check', followed by 'confirm', and 'confirm for the second time in the confirmation box that pops up.

When GRUB Error 17 occurs in a computer with more than one hard disk, especially if there are one or more SCSI (SATA) discs and one or more IDE (PATA) discs, it most often means there is some miscommunication between GRUB and the BIOS as to the order the hard disks should be numbered in. (All SCSI disks first, or all IDE discs first).
The simplest way to overcome that is to go into your BIOS and switch the hard drive order around until GRUB is happy.
Otherwise, you can re-install GRUB to a different hard disk and edit some configuration files, that's the traditional way, but it's rather slow and laborious.

GRUB Error 15 used to indicate a typo in the menu.lst file, but recently it has also started to come up when you try to boot an operating system by a menu.lst file containing a uuid command from an older version of GRUB that doesn't yet have the patch for uuid support. If that seems like it could be true, then try re-installing that operating system's GRUB to the partition boot sector and using the chainloader command to it it's own boot loader and let it's own boot loader boot it. Normally that's the best way to set up a multi-boot anyway.

I hope something here will be useful to you.
Regards, Herman :)
User avatar
herman
Level 1
Level 1
 
Posts: 33
Joined: Tue Jan 13, 2009 4:52 pm
Location: Australia

Re: Grub installer hangs with error 2

Postby ricky on Mon Mar 16, 2009 11:05 am

thanks for the info but my error was error 2, not 17 or 15.
User avatar
ricky
Level 1
Level 1
 
Posts: 46
Joined: Fri Dec 28, 2007 6:45 pm

Re: Grub installer hangs with error 2

Postby viking777 on Mon Mar 16, 2009 12:39 pm

Quoted from the GNU/GRUB manual2 : Bad file or directory type
This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.

Grub Error 2 seems to be a rare one.

Here's a link to the first instance of it I've noticed, [ubuntu] GRUB error 2... I want to kill my laptop.
Note the explanation by caljohnsmith in post #6 there, quote:The reason why is because Intrepid now formats its partitions to use a 256 byte inode file system size, whereas previous Ubuntu verions used 128 bytes. The older Grub versions choke on the newer ext3 partitions that use 256 byte inode sizes, and Grub returns an error 2


Dunno if that helps. At least you can be pleased that you are suffering from a rare disease not a common one :lol:

Here is the link to the post they mentioned, it didn't come out in the quote.

http://ubuntuforums.org/showthread.php?t=1019755
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am


Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 19 guests