CentOS 5 :: Unable To Boot After Fixing Partition Order In Fdisk - Grub Fails
Apr 29, 2009
It seemed that it would be simple enough: take the 'f' option in the expert menu of fdisk to put partitions in order after a gap had been created by a deleted partition and then make corresponding changes in /boot/grub/grub.conf because the root partition was shifted.
Well, it didn't work out that way. No matter what I try, I either see the error 15 at Stage1.5 or the error 28, which is even stranger (file does not fit into memory). All this before I even see a grub menu. It just does not get that far.
Does anyone want to take as stab at guessing what might have happened here and whether I have a chance at recovering without having to reinstall? I can provide concrete data, if anyone would be kind to give it a try. Hoping that this is a known problem and something can be guessed from what I stated here but I can be as specific as needed, just don't want to generate noise if there are no takers.
View 3 Replies
ADVERTISEMENT
Feb 11, 2010
I clone an drive with CentOs 5.3 from a drive connected to ATA0 device 0 of an ATA controller to an identical drive connected to the same ATA contoller ATA1 device 0. No matter what I do it boots from ATA1 device 0 and I need to be able to control which one it is booted from. When I have puppy linux on one drive and CentOs on the other drive I can control the boot thru the system BIOS either way no matter if puppy is in ATA 0 or 1. So its not a BIOS issue. It appears (to me) to be a grub configuration issue. Since the 2 drives are clones they both have VolGroup00. I think grub loads from the last VolGroup00 found.
Here is my grub.conf file:
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
# boot=/dev/hde
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-128.el5.img
Here is the Device.map:
# this device map was generated by anaconda
(hd0) /dev/hde
View 3 Replies
View Related
Nov 29, 2010
i am trying to change the boot order on the GRUB menu so that the countdown automatically starts on an older kernel. From what i can see all the solutions on the web want me to edit the /boot/grub/menu.lst file. The problem is that i don't have one. Someone also mentioned that if i don't have a menu.lst file then i should look for the grub.conf file. I don't have on of those either. The closest thing in /boot/grub is grub.cfg but that looks nothing like the descriptions i have heard of /boot/grub/menu.lst file
View 5 Replies
View Related
Sep 19, 2010
3 partitions (in order): Windows 7, CentOS and shared data partition.
I need to increase the size of the Windows 7 partition (c:windowswinsxs seems to be something not easily remedied).
GParted didn't work in moving things around (bad sector) so I wiped out its partition (# 2 out of 3) and I was able to increase the size of the Windows 7 partition (I can reinstall CentOS easily and not much work lost).
Except ... no more grub menu (unsurprising). This incantation does allow me to boot into Windows 7.
Is there any way of rebuilding the grub menu short of reinstalling CentOS (5.5)?
View 2 Replies
View Related
May 8, 2010
I have installed ubuntu 10.04 and kubuntu 10.04 on different partition (same hard drive). and window 7 on a different hard drive.
The boot menu order now is 1. kubuntu 2. memtest 3. window 7 4. ubuntu 10.04 kernel 2.6.32.22
I want to change to Code:
1. ubuntu 10.04 kernel 2.6.32.22 2. window 7 3. kubuntu 4. memtest
These are the files in my ubuntu /etc/grub.d:
Code:
/etc/grub.d$ ls
00_header* 10_linux* 30_os-prober* README
05_debian_theme* 20_memtest86+* 40_custom*
View 2 Replies
View Related
Jul 13, 2010
I want to change the default boot from Ubuntu to windows xp. What file do I need to edit to make that change? In other distros the file is grub.lst but I can not locate that file name in Ubuntu.
I can find the file /boot/grub/grub.cfg that looks like what I need but has a warning "DO NOT EDIT",
View 5 Replies
View Related
Mar 18, 2011
I am trying to change the default gnu grub boot order to first go to windows 7. I entered gksudo gedit /boot/grub/menu.lst and it opened up the file but the file was blank.It didn't show me the 5 or 6 possible choices.
View 8 Replies
View Related
Aug 4, 2010
I just installed Ubuntu 10.04 onto my toshiba C655 iCeleron 900 2.20ghz 1GB RAM. I have win7 and I have a 4GB swap partition. How Do I change the Boot order in Grub? I saw instructions somewhere else to type sudo, etc in the command line and was getting access denies...
View 5 Replies
View Related
Feb 21, 2011
I'm working my way through my Linux self-education and I'm hitting a slight road block. After consulting forum posts here and elsewhere, I have tried to alter my grub boot order by editing my menu.lst file found in /boot/grub. I don't seem to be having any luck. Changing the default [value] doesn't seem to work, nor does the savedefault. Below is a copy of my file.
Code:
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
default 4
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
# examples
# titleWindows 95/98/NT/2000
# root(hd0,0)
# makeactive
# chainloader+1
# titleLinux
# root(hd0,1)
# kernel/vmlinuz root=/dev/hda2 ro
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=18250e14-e47e-4bf9-a927-6456120575f8 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=18250e14-e47e-4bf9-a927-6456120575f8
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=0x317 resume=/dev/hda5
# defoptions=vga=0x317
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
splashimage=18250e14-e47e-4bf9-a927-6456120575f8/boot/grub/splash.xpm.gz
titleBackTrack 4 R2, kernel 2.6.35.8
uuid18250e14-e47e-4bf9-a927-6456120575f8
kernel/boot/vmlinuz-2.6.35.8 root=UUID=18250e14-e47e-4bf9-a927-6456120575f8 ro quiet splash
initrd/boot/initrd.img-2.6.35.8
quiet
titleBackTrack 4 R2, kernel 2.6.35.8 (recovery mode)
uuid18250e14-e47e-4bf9-a927-6456120575f8
kernel/boot/vmlinuz-2.6.35.8 root=UUID=18250e14-e47e-4bf9-a927-6456120575f8 ro single
initrd/boot/initrd.img-2.6.35.8
titleBackTrack 4 R2, memtest86+
uuid18250e14-e47e-4bf9-a927-6456120575f8
kernel/boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
titleOther operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
titleWindows Vista/Longhorn (loader)
root(hd0,0)
savedefault
makeactive
chainloader+1
View 2 Replies
View Related
May 12, 2011
I wanna change the boot order, right now Linux starts first, and I wanna configure GRUB to make Windows start first, how can I do this?
View 13 Replies
View Related
Jan 27, 2011
I recently installed Ubuntu on one of my partitoins. Sinec I am new, I formatted that partition to install a different type. Now when I boot my machine, instead of booting to my Windows partitoin, it boots to my blank Linux partition and gives me a Linux prompt.
I can boot from the Ubuntu DVD, by changing it in my BIOS, but I can't change the boot partition order within Linux (that I know of).
View 3 Replies
View Related
Apr 1, 2010
I tried looking this up. It seems that in Ubuntu, you need to edit /boot/grub/menu.lst. I tried that, and the file is not present in Debian "Squeeze". (Just trying it out on a different PC, In case you are confused by my other thread regarding Lenny) So what do I need to do to change the default OS to boot?
View 3 Replies
View Related
Jul 31, 2010
I'm trying to change the boot order in grub (menu.lst) but does not working.
My menu.lst:
# Modified by YaST2. Last modification on Qua Jul 28 22:45:21 BRT 2010
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader
[Code].....
View 9 Replies
View Related
Jan 21, 2011
I am trying to change the default boot in grub to the last OS, and cannot find the menu.lst file under the /boot/grub directory.
I have tried to use the locate command to find the menu.lst file, but it doesn't exist. I have grub 1.98 installed and was wondering if the file I need to edit might be under a different name.
I recently updated Ubuntu to 10.04 (lucid) Kernel linux 2.6.32-27-generic gnome 2.30.2
View 2 Replies
View Related
Jun 18, 2011
Just installed 11.04 and do not know how to change the boot order in the new grub.
View 3 Replies
View Related
Aug 15, 2011
I have ubuntu 11.04 and windows vista installed on my pc. I have already set windows vista as my default os, but I'd like to put it at the top of the boot menu (currently it's in 4th).
View 2 Replies
View Related
Jan 31, 2010
I am upgrading a system to have encrypted disks, it's a two disk system, so I want the BIOS to look at /dev/hdb first to unlock it, then it should reboot, see that isn't a system disk and try to boot /dev/hda. Then that gets unlocked, and the system boots. After unlocking hdb I get a Grub error 17. I can't edit Grub to look at hda as on normal boot it hasn't been unlocked yet, so it can't see the file system at that point. I reformatted an old XP disk as hdb, and it worked fine, but I'd rather not install windows every time, just to reformat it as ext3. Is there a simple way of clearing the boot sector of hdb?
View 4 Replies
View Related
Feb 13, 2010
I am a linux noob and that is the reason I want to boot my windows xp by default. Now kubuntu boots first. I've googled how to do this but the topics of other people with the same 'problem' were old or maybe incorrect. Because the official GRUB Ubuntu wiki says you should not change the /boot/grub/grub.cfg file manually. The first line on the .cfg file is also a warning: Do not edit this file. So it continued looking for a proper way to change the boot order. Then I found something about etc/grub.d and also etc/default/grub. The problem is I don't understand how to change the boot order using this.
View 9 Replies
View Related
Feb 3, 2010
I've seen many, many different solutions for how to change the GRUB boot order. Search no more. This is by far the easiest, safest way to do that.
Open your terminal and type in the following:
sudo apt-get install startupmanager
When that is done go to your control panel and you'll have a new icon that says Startup Manager. Every thing you'll need work with your GRUB menu.
View 1 Replies
View Related
Sep 19, 2011
I am using disk utility to partition an external hard disk. My intention is to boot linux off of the partition. However, I am unsure of which format to make the partition. Disk Utility in OS X only allows Mac OS X Journaled, Mac OS X, FAT, exFAT, and free space. Which one should I use?
View 2 Replies
View Related
Mar 25, 2010
I have Ubuntu 9.10 64 Bit, and I also have Windows 7, and I want to make Win7 boot first and without having to manually choose it every time I restart, for my non-linux using family. I have tried the guides where it says you have to edit the "menu.lfg(or whatever it is)" and I don't have that file. I have looked, it's not there, the closest I found was "grub.cfg" and I can't make any sense out of it. I'm not unfamiliar with computers, I'm just relatively new to Ubuntu, and want to make the best out of it I can, I love it. I've tried going into GRUB, and and editing the Win7 Loader, but it doesn't work.
View 4 Replies
View Related
Dec 18, 2009
Is there some workaround by changing grub settings other than rewiring the hard disks or changing in bios..
1. my bios is getting reset (low battery)
2. my hard disks are sata and ide, so the ide one is loaded as hd1 by default, cudn't find any way to change that..
View 3 Replies
View Related
May 5, 2009
I'm trying to install a dual booting machine with OpenSUSE v11.1 32bit and CentOS v5.2 64bit. I installed OpenSUSE first and allowed it to install and configure grub in the MBR and after that I wanted to proceed with CentOS v5.2. The installation went fine with two notable exceptions:- when I had to configure grub installation parameters, CentOS offered me only 2 solutions: either install it on the MBR of the first hard disk or not installing it at all. Other distributions are more flexible allowing you to install it in the boot sector of the root partition for example. Because I didn't want to ruin the existent grub onfiguration, I reluctantly accepted not to install it for CentOS assuming that I could manually configure the entry later in grub's menu.lst file.
- when I was presented with the options for software components installation, I've clicked on virtualization category/function because I intend to use the machine as a VMware host. There was no guidance on screen at that point and I blindly assumed that by choosing the virtualization function I would get necessary tools and drivers that will help me further on. It seems that this was a wrong move as you can see it below.
After completing the installation, I tried to search for a template or guiding on how the menu entry in menu.lst should look like but the grub directory was empty, not surprisingly because I've told CentOS earlier not to install it. Using the files in the /boot directory from the CentOS installation I tried to improvise a menu entry but it's not working. The boot stops with famous Error 13: Invalid or unsupported executable format. Using the file command to check what kind of files I'm trying to load as kernels I'm getting :
marte:~ # file /mnt/vmlinuz-2.6.18-92.el5xen
/mnt/vmlinuz-2.6.18-92.el5xen: gzip compressed data, from Unix, last modified: Tue Jun 10 19:20:51 2008, max compression
[code]....
View 2 Replies
View Related
Mar 3, 2009
I recently installed a 64-bit version of centOS 5 alongside a 32-bit version, which I use. Turns out the 64-bit version absolutely will not boot and I'm stuck with it as my default boot option. Since the grub being used resides on the 64-bit half, I cant edit the menu file but I know theres a way to do this without it, through grub itself. I have about 29 render nodes now with this problem, and whenever they need to be rebooted I have to hook a monitor up to each one and hold its hand through the boot process. How to change the grub menu through grub itself, basically just change the default boot option and then have it stay that way?
View 5 Replies
View Related
Aug 13, 2010
I recently upgraded to Ubuntu 10.04 from earlier versions. I have a dual boot system with Windows 7. Grub was set to boot Windows by default Things were working fine. I decided to upgrade to Grub2. It seemed like a good idea at the time. Now when booting up,the name at the top of the Grub menu is 1.98, which is Grub 2. When I run grub-install -v, it comes back grub-install (GNU GRUB 0.97) which is not Grub2. Now when I boot up, Ubuntu 10.04 is the default. I have to manually choose Windows if I want to use that system. I have been unable to change the boot order following instructions from this site. Any Way changing the boot order to make Windows 7 the default. I am using a Toshiba Satellite.
View 5 Replies
View Related
Aug 25, 2009
I am unable to start apache on my linux machine with following errors Starting httpd: Syntax error on line 117 of /etc/httpd/conf/httpd.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration I am using CentOS5 with apache version httpd-2.2.13
View 99 Replies
View Related
Jul 18, 2011
I just installed ubuntu via the windows executable and I couldn't mount my NTFS partition. I found this a little odd and I checked fdisk and it seems to think I don't have an ext4 partition as my entire internal HD is displayed as NTFS.
Here's the fdisk output:
When i try to mount the NTFS partition /dev/sda2 i get the following output:
I can't make heads or tails out of this. Anyone know what's going on here?
Windows recognizes that 30GB were taken from the NTFS partition for my linux install. It reads the max partition size as 465GB. fstab reports the NTFS partition size as 488GB.
View 2 Replies
View Related
Mar 11, 2010
I have an old Dell Dimension 4500 that, until recently, had 2 hard drives. One drive is running Xubuntu Koala and the other was running XP. I had set up Xubuntu to run LVM.
After needing XP again for a small project I tried reinstalling XP, got disk errors, took the drive out to just have Xubuntu, and now when I boot I get "Error loading operating system".
I have tried restoring GRUB from a Live CD with no help. Everyplace I look on the net talks about restoring GRUB after installing Windows on another drive. I'm trying to get GRUB working again after removing the XP drive.
View 9 Replies
View Related
Jul 2, 2011
i had installed fedora 14 into my new hardisk(1500gb) as new server the problem is how can i use the fdisk to partition the hardisk into two partition.
View 10 Replies
View Related
Aug 4, 2011
I wonder whether to place swap partition on LVM or on standard fdisk partition which will not be in LVM.What is better and more often used on production ?
View 4 Replies
View Related