Sponsored Content
Full Discussion: Bootloader problem Grub.
Operating Systems Linux Bootloader problem Grub. Post 302356133 by blabla9002 on Thursday 24th of September 2009 03:18:20 PM
Old 09-24-2009
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 Smilie), 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:
Image
Image

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...
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. UNIX for Dummies Questions & Answers

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... (11 Replies)
Discussion started by: blabla9002
11 Replies

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Bootloader::Core::GRUB(3)				User Contributed Perl Documentation				 Bootloader::Core::GRUB(3)

NAME
Bootlader::Core::GRUB - GRUB library for bootloader configuration PREFACE
This package is the GRUB library of the bootloader configuration SYNOPSIS
use Bootloader::Core::GRUB; "$obj_ref = Bootloader::Core::GRUB->new ();" "$unquoted = Bootloader::Core::GRUB->Unquote ($text);" "$quoted = Bootloader::Core::GRUB->Quote ($text, $when);" "$unix_dev = Bootloader::Core::GRUB->GrubDev2UnixDev ($grub_dev);" "$grub_dev = Bootloader::Core::GRUB->UnixDev2GrubDev ($unix_dev);" "$unix_path = Bootloader::Core::GRUB->GrubPath2UnixPath ($grub_path, $grub_dev_prefix);" "$grub_path = Bootloader::Core::GRUB->UnixPath2GrubPath ($unix_path, $grub_dev_prefix);" "$grub_conf_line_ref = Bootloader::Core::GRUB->CreateGrubConfLine ($target, $discswitch);" "$files_ref = Bootloader::Core::GRUB->ListFiles ();" "$status = Bootloader::Core::GRUB->ParseLines (\%files, $avoid_reading_device_map);" "$files_ref = Bootloader::Core::GRUB->CreateLines ();" "$dev = Bootloader::Core::GRUB->GetCommonDevice (@paths);" "$line = Bootloader::Core::GRUB->CreateKernelLine (\%sectingo, $grub_root);" "$line = Bootloader::Core::GRUB->CreateChainloaderLine (\%sectinfo, $grub_root);" "$disk = Bootloader::Core::GRUB->Partition2Disk ($partition);" "$sectin_info_ref = Bootloader::Core::GRUB->Section2Info (@section_lines);" "$lines_ref = Bootloader::Core::GRUB->Info2Section (\%section_info);" "$glob_info = $Bootloader::Core::GRUB->Global2Info (@glob_lines, @section_names);" "$lines_ref = Bootloader::Core::GRUB->Info2Global (\%section_info, @section_names);" "$settings_ref = Bootloader::Core::GRUB->GetSettings ();" "$status = Bootloader::Core::GRUB->SetSettings (\%settings);" "$status = Bootloader::Core::GRUB->InitializeBootloader ();" "$mountpoint = Bootloader::Core::GRUB->GrubDev2MountPoint ($grub_dev);" DESCRIPTION
"$obj_ref = Bootloader::Core::GRUB->new ();" Creates an instance of the Bootloader::Core::GRUB class. "$unquoted = Bootloader::Core::GRUB->Unquote ($text);" Just override of Bootloader::Core->Unquote function, returning the first parameter. "$quoted = Bootloader::Core::GRUB->Quote ($text, $when);" Just override of Bootloader::Core->Quote function, returning the first parameter. "$allow_afterline_empty = Bootloader::Core->AllowCommentAfterText();" checks if bootloader configuration allow comments after text on line, returns a scalar (1 if true, 0 otherwise). "$unix_dev = Bootloader::Core::GRUB->GrubDev2UnixDev ($grub_dev);" Translates the GRUB device (eg. '(hd0,0)') to UNIX device (eg. '/dev/hda1'). As argument takes the GRUB device, returns the UNIX device (both strings) or argument if translate fail. "$grub_dev = Bootloader::Core::GRUB->UnixDev2GrubDev ($unix_dev);" Translates the UNIX device (eg. '/dev/hda1') to GRUB device (eg. '(hd0,0)'). As argument takes the UNIX device, returns the GRUB device (both strings). "$unix_path = Bootloader::Core::GRUB->GrubPath2UnixPath ($grub_path, $grub_dev_prefix);" Translates the GRUB path (eg. '(hd0,0)/grub/device.map') to UNIX path (eg. '/boot/grub/device.map'). If the GRUB path does not contain the device, the one specified in the argument is used instead. As arguments, the function takes the GRUB path and the device to be used if not specified in the GRUB path, and returns the UNIX path (all strings). "$grub_path = Bootloader::Core::GRUB->UnixPath2GrubPath ($unix_path, $grub_dev_prefix);" Translates the UNIX path (eg. '/boot/grub/device.map') to GRUB path (eg. '(hd0,0)/grub/device.map'). If the device (as specified in GRUB configuration files via the 'root' option) is the same as the device in the resulting path, the resulting path does not contain the device. As arguments, the function takes the UNIX path and the device as specified via 'root' option, and returns the GRUB path (all strings). "$grub_conf_line_ref = Bootloader::Core::GRUB->CreateGrubConfLine ($target, $discswitch);" Creates a hash representing a line of /etc/grub.conf file. As arguments, it takes the device to install GRUB to, and the discswitch argument ('d' or ''). Returns a reference to a hash containing info about the 'install' line. "$files_ref = Bootloader::Core::GRUB->ListFiles ();" Returns the list of the configuration files of the bootloader Returns undef on fail "$status = Bootloader::Core::GRUB->ParseLines (\%files, $avoid_reading_device_map);" Parses the contents of all files and stores the settings in the internal structures. As first argument, it takes a hash reference, where keys are file names and values are references to lists, each member is one line of the file. As second argument, it takes a boolean flag that, if set to a true value, causes it to skip updating the internal device_map information. Returns undef on fail, defined nonzero value on success. "$files_ref = Bootloader::Core::GRUB->CreateLines ();" creates contents of all files from the internal structures. Returns a hash reference in the same format as argument of ParseLines on success, or undef on fail. "$sectin_info_ref = Bootloader::Core::GRUB->Section2Info (@section_lines);" Gets the information about the section. As argument, takes a reference to the list of lines building the section, returns a reference to a hash containing information about the section. "$dev = Bootloader::Core::GRUB->GetCommonDevice (@paths);" Checks all paths given as arguments if they are on the same device. If so, returns the common device, otherwise returns empty string. "$line = Bootloader::Core::GRUB->CreateKernelLine (\%sectingo, $grub_root);" Creates a line with the kernel command for GRUB's menu.lst. As arguments. it takes a hash containing information about the section and the root device specified by the GRUB's root command. Returns the line to be written to menu.lst (without the leading kernel keyword). "$line = Bootloader::Core::GRUB->CreateChainloaderLine (\%sectinfo, $grub_root);" Creates a line with the chainloader command for GRUB's menu.lst. As arguments. it takes a hash containing information about the section and the root device specified by the GRUB's root command. Returns the line to be written to menu.lst (without the leading chainloader keyword). "$disk = Bootloader::Core::Grub->Partition2Disk ($partition);" Gets the disk a partition resides on. As argument, it takes the partition device node (eg. '/dev/hda3'), returns the device node of the disk holding the partition (eg. "/dev/hda"), or undef if checking failed. "$lines_ref = Bootloader::Core::GRUB->Info2Section (\%section_info);" Takes the info about the section and uses it to construct the list of lines. The info about the section also contains the original lines. As parameter, takes the section info (reference to a hash), returns the lines (a list of hashes). "$glob_info = $Bootloader::Core::GRUB->Global2Info (@glob_lines, @section_names);" Gets the general information from the global section of the menu file. This information usually means the default section, graphical menu, timeout etc. As argument it takes a reference to the list of hashes representing lines of the section, returns a reference to a hash containing the important information. "$lines_ref = Bootloader::Core::GRUB->Info2Global (\%section_info, @section_names);" Takes the info about the global options and uses it to construct the list of lines. The info about global option also contains the original lines. As parameter, takes the section info (reference to a hash) and a list of sectino names, returns the lines (a list of hashes). "$settings_ref = Bootloader::Core::GRUB->GetSettings ();" returns the complete settings in a hash. Does not read the settings from the system, but returns internal structures. "$status = Bootloader::Core::GRUB->SetSettings (\%settings);" Stores the settings in the given parameter to the internal structures. Does not touch the system. Returns undef on fail, defined nonzero value on success. "$status = Bootloader::Core::GRUB->InitializeBootloader ();" Initializes the firmware to boot the bootloader. Returns undef on fail, defined nonzero value otherwise "$mountpoint = Bootloader::Core::GRUB->GrubDev2MountPoint ();" creates the mountpoint from a Grub Device (hdX,Y), be it a udev device, a udev link or a device mapper device returns the mountpoint or the grub device, if it couldn't be resolved POD ERRORS
Hey! The above document had some coding errors, which are explained below: Around line 461: =cut found outside a pod block. Skipping to next block. Around line 467: =cut found outside a pod block. Skipping to next block. perl v5.12.1 2010-05-25 Bootloader::Core::GRUB(3)
All times are GMT -4. The time now is 11:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy