Visit Our UNIX and Linux User Community


Bootloader problem Grub.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Bootloader problem Grub.
# 1  
Old 09-25-2009
Bootloader problem Grub.

Bootloader problem Grub. Hello,

I have some questions about my Mandriva Linux. My father died last year and so I got automatically forced to use Linux (master computer). I have become a little bit known with it, had to reset the root password via command lines etc. But I have some problems I can't solve on my own.
In this topic I will ask my first problem:

The Grub bootloader doesn't open Windows when clicking on it. Sometimes it just reboots and you get the Grub bootloader again, sometimes when I messed with some things it says something like this:

Quote:
Booting 'windows'
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
map (0x80) (0x83)
map (0x83) (0x80)
makeactive
chainloader +1

Error 13: Invalid or unsupported executable format

Press any key to continue..._

I have tried everything I thought that could help, placing the boatloader in another disk (which made me use the rescue cd, because nothing would startup anymore Image), placed the bootloader back, using the other bootloader Lilo which didn't work well and so on.

I have changed the link in the bootloader from sdb1 (Windows was given that command automatically at installation) to sdc1 because at the diskpartition the windows C stands at sdc1. But nothing changes. Images:
http://i35.tinypic.com/1zd97wp.png
http://i36.tinypic.com/2mzjvrq.png

Who can help me. I can reach the windows files via /mnt but not just how it has to work. Deleting windows or Linux is no option, there are too many important files on both.

Bij voorbaat dank as we say here...
# 2  
Old 09-25-2009
From a root console, do fdisk -l and show me what it prints.

Also, please post the contents of /boot/grub/grub.conf
# 3  
Old 09-25-2009
Plan B (sort of Smilie): Super Grub Disk
# 4  
Old 09-25-2009
Quote:
Originally Posted by Corona688
From a root console, do fdisk -l and show me what it prints.

Also, please post the contents of /boot/grub/grub.conf
ok the first one:

Quote:
Schijf /dev/sda: 320.0 GB, 320072933376 bytes
255 koppen, 63 sectoren/spoor, 38913 cilinders
Eenheid = cilinders van 16065 * 512 = 8225280 bytes

Schijf-ID: 0xa99c708c

Apparaat Opstart Begin Einde Blokken ID Systeem
/dev/sda1 * 1 1019 8185086 83 Linux
/dev/sda2 1020 38913 304383555 5 Uitgebreid
/dev/sda5 1020 1528 4088511 82 Linux wisselgeheugen
/dev/sda6 1529 38913 300294981 83 Linux

Schijf /dev/sdb: 36.7 GB, 36778545152 bytes
255 koppen, 63 sectoren/spoor, 4471 cilinders
Eenheid = cilinders van 16065 * 512 = 8225280 bytes

Schijf-ID: 0xa99c708d

Apparaat Opstart Begin Einde Blokken ID Systeem
/dev/sdb1 * 1 1 8001 a OS/2 opstartmanager

Schijf /dev/sdc: 251.0 GB, 251000193024 bytes
255 koppen, 63 sectoren/spoor, 30515 cilinders
Eenheid = cilinders van 16065 * 512 = 8225280 bytes

Schijf-ID: 0xc821c821

Apparaat Opstart Begin Einde Blokken ID Systeem
/dev/sdc1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/sdc2 2551 30515 224628862+ 5 Uitgebreid
/dev/sdc5 2551 10199 61440561 7 HPFS/NTFS
/dev/sdc6 10200 22947 102398278+ 7 HPFS/NTFS
/dev/sdc7 22948 30515 60789928+ 7 HPFS/NTFS

Schijf /dev/sdd: 61.4 GB, 61492838400 bytes
255 koppen, 63 sectoren/spoor, 7476 cilinders
Eenheid = cilinders van 16065 * 512 = 8225280 bytes

Schijf-ID: 0xcb0d3504

Apparaat Opstart Begin Einde Blokken ID Systeem
/dev/sdd1 * 2 129 1028160 17 Verborgen HPFS/NTFS
/dev/sdd2 130 7476 59014777+ 5 Uitgebreid
/dev/sdd5 130 512 3076416 35 [onbekend]
/dev/sdd6 513 895 3076416 35 [onbekend]
/dev/sdd7 896 1278 3076416 35 [onbekend]
/dev/sdd8 1279 1788 4096543+ 35 [onbekend]
/dev/sdd9 * 1789 2043 2048256 16 Verborgen FAT16
/dev/sdd10 2044 3063 8193118+ 35 [onbekend]
/dev/sdd11 3064 3446 3076416 35 [onbekend]
/dev/sdd12 3447 6966 28274368+ 35 [onbekend]
/dev/sdd13 6967 7476 4096543+ 35 [onbekend]

Schijf /dev/sde: 80.0 GB, 80026361856 bytes
255 koppen, 63 sectoren/spoor, 9729 cilinders
Eenheid = cilinders van 16065 * 512 = 8225280 bytes

Schijf-ID: 0x99a75a00

Apparaat Opstart Begin Einde Blokken ID Systeem
/dev/sde1 1 637 5116671 12 Compaq diagnostiek
/dev/sde2 * 638 4462 30724312+ c W95 FAT32 (LBA)
/dev/sde3 4463 8287 30724312+ c W95 FAT32 (LBA)
/dev/sde4 8288 9729 11582865 5 Uitgebreid
/dev/sde5 8288 9079 6361708+ 83 Linux
/dev/sde6 9080 9238 1277136 82 Linux wisselgeheugen
/dev/sde7 9239 9729 3943926 83 Linux
It's in dutch, if you don't know what some word means I will hear it from you.

The second one, I can't find the grub.conf in the /boot/grub map...I am searching it, and I will post it in a following message. Thank you both for the fast responses.
# 5  
Old 09-25-2009
You've got a lot of disks in there! Smilie

It's a bit plainer what the problem is now, hd0 is the wrong drive. grub doesn't use anything like sda, it just uses drives hd0,hd1,etc numbered in the order the BIOS reports them. It might be hd2, assuming the windows you want is the NTFS partitions and not the FAT32 ones. I have no idea how windows will react to being the third drive in the system though! Smilie (That might be what those map lines are to fix, not sure.) It might blow its little mind, or it might pretend the other drives don't exist since it can't read their partitions...

Last edited by Corona688; 09-25-2009 at 07:26 PM..
# 6  
Old 09-25-2009
I can't find grub.conf. I found out via google that you might need menu.lst from that map.

Quote:
color black/cyan yellow/cyan
gfxmenu (hd0,0)/boot/gfxmenu
default 0

title linux
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=4a035627-91aa-48c6-9269-0361d4ada14d resume=UUID=5ddb403f-613a-435b-be01-d191dbac14d6 splash=silent vga=788
initrd (hd0,0)/boot/initrd.img

title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=4a035627-91aa-48c6-9269-0361d4ada14d resume=UUID=5ddb403f-613a-435b-be01-d191dbac14d6
initrd (hd0,0)/boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=4a035627-91aa-48c6-9269-0361d4ada14d failsafe
initrd (hd0,0)/boot/initrd.img

title windows
root (hd2,0)
map (0x82) (0x80)
map (0x80) (0x82)
makeactive
chainloader +1
# 7  
Old 09-25-2009
Good, that's it.

Have you added any disks lately, or done anything that'd change the order of drives as the BIOS reports them? Those map lines may be incorrect now.. Try commenting them out and doing
Code:
map (hd2) (hd0)
map (hd0) (hd2)

instead.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #251
Difficulty: Easy
MILNET was designed for highly classified military communications.
True or False?

10 More Discussions You Might Find Interesting

1. Red Hat

Grub Bootloader & CentOS

I'm clueless about Grub and having issues with CentOS6.6 that is installed on the box. It also has Windows 8.1 installed. I want to reinstall CentOS to version 7, but want to insure I don't wipe anything, and the bootloader remains as is, but includes the new CentOS installation. How do I go about... (2 Replies)
Discussion started by: Nvizn
2 Replies

2. Red Hat

Can we specify which grub.conf to use in grub-install.

Hi, Can we specify which grub.conf to use while installing grub on RHEL. We are working on application which requires different grub configurations needed, depending on certain criteria we need to update grub with correct grub.conf. Can we use grub-install for this purpose? (4 Replies)
Discussion started by: successlin
4 Replies

3. Ubuntu

grub problem - unable to boot

I am not able to boot into my ubuntu. Grub gives me this message How do I boot linux? (6 Replies)
Discussion started by: locoroco
6 Replies

4. Ubuntu

Grub rescue problem after installing ubuntu 10.04 amd64 after i386

Hi all, I have Windows XP dual boot with Ubuntu 8.10 on my system. I brought in a portable HDD on which I installed Ubuntu 10.04 32-bit. The grub boot loader was installed along with this and to boot windows, I've had to plug in the HDD (with lucid install) everytime. It had been working fine.... (0 Replies)
Discussion started by: morningSunshine
0 Replies

5. Solaris

Problem at GRUB prompt

Hi, I have a SUNFIRE V40Z server with Solaris 10 i86pc platform. I am experiencing probkem at GRUB prompt. I have restarted my server thrice but it is getting stuck at GRUB. Moreover it is not accepting any key stroke from my keyboard. I am able to enter BIOS and navigate around. Please... (7 Replies)
Discussion started by: EmbedUX
7 Replies

6. Solaris

grub problem

hi , was using solaris in dual boot with xp , then I ' ve installed ubuntu too . The solaris grub has been in some way damaged , maybe because during the linux installation i've delete an old partition that I was not using by some months. It's normal that the solaris grub has been overriden by... (7 Replies)
Discussion started by: freeware
7 Replies

7. Linux

Bootloader problem Grub.

Hello, I have some questions about my Mandriva Linux. My father died last year and so I got automatically forced to use Linux (master computer). I have become a little bit known with it, had to reset the root password via command lines etc. But I have some problems I can't solve on my own. In... (0 Replies)
Discussion started by: blabla9002
0 Replies

8. Solaris

Grub problem

Hi friends, i am using inter pc i am using windows as well as unix in 2 different HDD when i restart from windows to unix my grup got some problem, Grub loading, please wait Error 22 (and hang here is there any way to recover my grup please.) (2 Replies)
Discussion started by: kurva
2 Replies

9. Solaris

grub problem

hi to all ,pls help me i am using p4 intel machine while trying new things my image of solaris boot have been deleted from grub now i want to boot solaris 10 from the grub command line but i don't know the command for this .please help me as i want to know solution for... (8 Replies)
Discussion started by: tiwsaj
8 Replies

10. UNIX for Dummies Questions & Answers

grub problem- keeps rebooting as soon as it tries to do grub

Hi, I installed solaris 10 a few weeks ago. It was working fine during the past two weeks. However, now when I start to load to the drive, I get this problem: The BIOS screen comes up like normal, then screen goes blank and a message "Grub loading stage 2" flashes real quick then the computer... (1 Reply)
Discussion started by: moesays
1 Replies

Featured Tech Videos