![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Ultimate Coffee Grinder
![]() Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
|
FAQ: MY system froze at GRUB!
Symptoms
After a Ubuntu install (especially on a dual-boot-with-Windows system), your system will boot to the words GRUB, then freeze shortly thereafter. After a Ubuntu install on a Dual-boot, Windows freezes while trying to boot Cause This is due to a difference in hard disk geometry. Windows uses CHS (Cylinder/Head/Sector) numbering for drives in its partition table, while Linux 2.6.x uses LBA (Logical Block Addressing) mode. Linux will write its info in LBA, which windows couldn't read, thus the system freezes. In addition, you may get "mixed" chs and lba, which'll make grub freeze quite effectively! Fix Download the System rescue CD at http://www.sysresccd.org -or- Use Knoppix, Kanotix, or your favorite LiveCD that has the sfdisk command and grub. 1. Boot the liveCD 2. Run sfdisk -d /dev/hda | sfdisk --no-reread -H255 /dev/hda. 3. Run grub-install (hd0) to reinstall GRUB. 4. Reboot! |
|
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() Join Date: Oct 2004
Location: Denmark
Beans: 27
|
Re: My system's frozen at a GRUB prompt!
Could this maybe explain the following problem i have on a laptop?
Try 1) Windows installed as only system. Therafter i resize the disk with qtparted and install ubuntu with no problems. When i try to boot, Grub hangs on "stage 1_5 install". I dont even get a prompt. Try 2) All partitions are wiped out and i install ubunto. Everything works OK. Thereafter i install Windows (intending to use systemrescuecd to fix grub thereafter)... it installs OK but i cannot boot neither XP nor ubuntu. REstoring grub does not help. Im only capable of booting from the XP cd if there is unformatted diskspave left. if i have an ext3 and ntfs partition the cd will not boot (i find this weird). I have tryed other combinations with no succes, so if someone recognises the symptoms i have and has had succes with the above solution i will give it another try , or else its XP on that laptop |
|
|
|
|
|
#3 | |
|
Ultimate Coffee Grinder
![]() Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
|
Re: My system's frozen at a GRUB prompt!
Quote:
|
|
|
|
|
|
|
#4 |
|
5 Cups of Ubuntu
![]() Join Date: Oct 2004
Location: Denmark
Beans: 27
|
Re: HOWTO: My system's frozen at a GRUB prompt!
Well, i took a different aproach and tryed with a Knoppix harddisk install intending to upgrade it to debian unstable. I was surprised that writing the bootmanager to mbr didnt cause any problems. So now i can boot both Windows and Knoppix. Knoppix 3.6 installed LILO and i had previously tryed with LILO from Ubuntu with no success.
Has my laptop triggered a bug in the Ubuntu installer? I use a Fujitsu Siemens Amilo 1425 with XP Home. |
|
|
|
|
|
#5 |
|
Ultimate Coffee Grinder
![]() Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
|
Re: HOWTO: My system's frozen at a GRUB prompt!
No, it's more of a Linux 2.6/Windows interaction. Knoppix uses kernel 2.4. LiLO seems less affected by this bug; even with an inconsistent partition table it'll boot.
|
|
|
|
|
|
#6 |
|
5 Cups of Ubuntu
![]() Join Date: Nov 2004
Beans: 34
|
This didn't work...
These are the instructions?
1. Boot the liveCD (ok) 2. Run sfdisk -d /dev/hda | sfdisk --no-reread -H255 /dev/hda. [OK, but it asks for the --force option because it considers the params to be out of bounds and/or rediculous] 3. Run grub-install (hd0) to reinstall GRUB. This is the correct syntax? ---> grub-install (hd0) I don't believe that. I never heard of parenthesis on a Linux command line. What is the real syntax, assuming installing to hd0? 4. Reboot! |
|
|
|
|
|
#7 | ||
|
Ultimate Coffee Grinder
![]() Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
|
Re: This didn't work...
Quote:
Yes, #3 is correct. Please read the man page for grub-install. Quoted: Quote:
|
||
|
|
|
|
|
#8 | |
|
5 Cups of Ubuntu
![]() Join Date: Nov 2004
Beans: 34
|
ooops!
Quote:
Also, after: Run sfdisk -d /dev/hda | sfdisk --no-reread -H255 /dev/hda I ran: cfdisk /dev/hda I got an error message: Fatal error: Bad primary partition 1: partition ends in the final partition cylinder. Press any key to exit cfdisk. and grub-install (hd0) just gave an wonderful error message zsh: unknown file attribute in the latest System Rescue CD (a gentoo subset, I believe)
__________________
PLEASE do not offer assistance unless you know the answer to be reasonably correct. A few mis-typed chars can break an install and drop-kick the user back into the Stone Age for hours. We can make ubuntu stronger by making our forum answers as complete and definitive as possible, so that others may confidently refer to them. |
|
|
|
|
|
|
#9 |
|
Ultimate Coffee Grinder
![]() Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
|
Re: FAQ: MY system froze at GRUB!
Force goes in the second half of the command.
|
|
|
|
|
|
#10 |
|
Ubuntu Extra Shot
![]() |
Re: FAQ: MY system froze at GRUB!
After trying this FAQ, I believe the correct syntax is grub-install hd0, without the parentheses.
At any rate, I have had no luck fixing GRUB. I simply need to re-install it so I can boot Ubuntu again. (I installed Windoze on my Fat partition so I could play HL2, and of course NTLDR was happy to overwrite GRUB.) When I issue the grub-install command in a root shell on Knoppix 3.4, I get the following: Code:
root@ttyp0[knoppix]# grub-install hd0 mkdir: cannot create directory `/boot/grub': Read-only file system Code:
root@ttyp0[knoppix]# grub-install /dev/hda mkdir: cannot create directory `/boot/grub': Read-only file system I have tried chrooting into my Ubuntu install, but doing grub-install that way gave me other errors. Code:
root@ttyp0[knoppix]# chroot /mnt/hdb3 /bin/bash root@Knoppix:/ # grub-install /dev/hda /sbin/grub-install: line 1: sort: command not found /sbin/grub-install: line 1: uniq: command not found /sbin/grub-install: line 1: expr: command not found /sbin/grub-install: line 429: /dev/null: Permission denied /sbin/grub-install: line 431: /dev/null: Permission denied Code:
root@Knoppix:/ # mount /usr mount: block device /dev/hdb5 is write-protected, mounting read-only mount: cannot mount block device /dev/hdb5 read-only I've tried everything I can think of. I seek help from someone much smarter than I. Edit: fixed, with an unbelievably complicated mount. I booted the Ubuntu install disk, and after my partitions had been detected, switched to tty2 and did the following: Code:
mkdir foo mount /dev/ide/host0/bus0/target1/lun0/part3 foo chroot foo /bin/bash mount /usr grub-install /dev/hda ![]()
__________________
$ whatis themeaningoflife themeaningoflife: not found Last edited by HungSquirrel; November 23rd, 2004 at 12:39 AM.. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|