Can't boot CrunchBang waldorf with grub
I installed CrunchBang Waldorf 64 bit. I installed Grub2 in the MBR. When I boot up I don't get a boot menu; this is the message I get:
Quote:
Sda1 Windows7 ntfs Sda2 CrunchBang / Ext4 Sda3 Empty Space Ext4 Sda4 Extended Sda5 CrunchBang /Home Sda6 CrunchBang Swap I can boot up CrunchBang with a System Rescue CD. CrunchBang did't detect the Windows7 OS. This is the entry in /boot/grub/grub.cfg Quote:
|
Why do you have PXE boot set in your BIOS if you're booting from a hard drive?
You need to check the boot order in your bios and make sure it's looking for a bootloader in the correct place. P.S: Crunchbang's installer always detects my Windows7 partition as Vista. This is normal, and is usually corrected after updating and upgrading. |
Is the boot flag set on the partition
|
1 Attachment(s)
Boot order of laptop:
1. usb cdrom 2. IDE0 3. IDE1 4. Network Boot MATSHITADVD RAM U J892AS 5. usb hdd: verbatim 6. usb fdd I booted without a cd installed, from network boot. Verbatim is a flash drive; also booted without that installed. Don't know what fdd is, but it is at the end. Sata mode in bios allows for 2 choices: AHCI IDE Quote:
I didn't set the boot flag because Gparted only let me set it on one partition. I've had dual installs with XP and Linux and haven't set the flag on Linux and it wasn't a problem. From what I have read it doesn't have to be set. I found a boot info script that I ran to gather info on my system: |
Quote:
There should be a way to turn it off in bios, but even if there isn't, the fact that it's coming up shows that the bios is not finding a bootable hard drive as both IDE0 and IDE1 are set earlier in the boot order. Quote:
The /boot/grub/grub.cfg you posted is irrelevant at this point as the bios is not finding any bootloader at all. (hence the "no bootable device" message) The first thing to do is disable the PXE boot (network boot) in bios as that may be interfering with the boot up process. (even though it appears later in the boot order, the bios may be ignoring any other form of booting) Then make certain that the main hard drive is properly connected and detected by the machine. Remove all other drives so that you only have one. (/dev/sda) Boot up with a live cd that includes grub. (most rescue cd's) From the command line type; Code:
grub-install /dev/sda If the grub menu comes up, you should be good to go. (remember to run update-grub from the command line after booting into #!) P.S: depending on the live cd, you may have to prefix those commands with sudo |
I tried that.I also tried this page which uses chroot http://crunchbang.org/forums/viewtopic.php?id=15351I think grub must be messed up. I also used windows7 cd to try to fix it so I could boot that partition, but it couldn't fix the boot problems there either.
What packages of Grub does CrunchBang Waldorf use? when I check this is what I have installed: Code:
root@crunchbang:~# aptitude search ~ngrub |
This may help from a post by Yancek on another thread.
Quote:
|
Okay, I went over everything again. Based on the boot order information you've provided, there does not appear to be any hard drive in that laptop. (both ide0 and ide1 are blank)
What type of drive is "MATSHITADVD RAM U J892AS" actually? Is that a NAS? |
1 Attachment(s)
Quote:
I decided to reistall Windows7 and CrunchBang. It fixed some things. I had network booting disabled. I tried to install Windows7 and it gave me an error about disk conroller and wouldn't install in /dev/sda1. I had to change 'Sata Mode" in the Bios from AHCI to IDE, then I was able to install Windows7 in /dev/sda1. I then reinstalled CrunchBang in the partitions I had earlier, and installed Grub in the MBR. It seemed to install better: I have sound which I didn't have, and Grub found the Windows7 OS. I think Grub is in the MBR; I can't boot from the bios (gives message: no bootable device), but when I use the System rescue CD and boot 'first hard drive' I get the Grub prompt and a choice of both OS. Not sure what ide0 and ide1 are. This laptop seems to have some strange configuration. I looked inside and see what looks like one hard drive. Even if I put them first in the boot order they don't get booted: 1. IDE0 Toshiba MK6465GS 2. IDE1 MATSHITA DVD-RAM UJ892AS 3. USB CDROM 4. USB HDD 5. USB FDD 6. NETWORK BOOT This is what I got form lshw: hard-disk.txt I don't see much in the Bios for settings besides the boot order: Sata Mode: AHCI, IDE D2D Recovery: enabled, disabled I don't see anything else that would affect booting the OS. I guess if I can't get the bios to work I will try to put Grub on a flash drive to use for booting. Thanks |
get back to the grub prompt go to command line what is the output of set and ls.
|
Quote:
I would try booting into the first hard drive using the cd, then re-installing grub from a command line. But first, make sure you do the update and upgrade to bring everything up to date. (that may even fix things on it's own) |
Quote:
locale-dir=(hd0,msdos2) /boot/grub/locale prefix=(hd0,msdos2)/boot/grub root-hd0,msdos2 grub > ls (hd0)(hd0,msdos6)(hd0,msdos5)(hd0,msdos3)(hd0,msdos2)(hd0,msdos1) I reistalled grub in the first hard drive; didn't make a change. I put grub on a usb drive, at least that is better than using the cd. Thanks for help |
If you're using Grub2, do you have OS-Prober installed?
|
Quote:
/dev/sda1:Windows 7 (loader):Windows:chain I can't find a man page for this program. It doesn't say anything about CrunchBang install. |
post the results of this. It should give enough info to figure out what is going on
http://bootinfoscript.sourceforge.net/ |
All times are GMT -5. The time now is 06:11 PM. |