Console application permitting the user to choose between several installed operating systems.

learn more… | top users | synonyms

45
votes
7answers
30k views

Headless Ubuntu server machine sometimes stuck at GRUB menu

I have Ubuntu 10.10 Server installed on a single-board machine in a semi-embedded environment; no keyboard or screen, just SSH access to it. So it's really frustrating when it occasionally boots up ...
29
votes
2answers
28k views

How do I tell if grub is installed on a device?

How can I tell if grub is installed on a disk, and if it is what settings it has (noteably, what it has for the root parameter) I need to check a lot of disks in software RAID1 arrays to make sure ...
27
votes
2answers
16k views

Damaged /vmlinuz and /initrd.img symbolic links after Kernel uninstall

OS: Ubuntu 8.04 LTS Server Edition We just rolled back an kernel update using the following command: sudo apt-get remove linux-image-2.6.24-24-server The uninstallation was successful, but it had ...
13
votes
2answers
919 views

Is there a way to create a “one-time” boot entry in grub?

I have the following issue: I have a small server (Debian based) to which I can connect remotely (VPN/SSH connection). Now I want to change some boot options (in fact I want to migrate my root file ...
11
votes
2answers
2k views

Anyway to get GRUB failsafe to timeout?

I've got a bunch of headless servers installed in random (remote) locations all running Ubuntu 11.04. Sometimes the boxes go down and never come back up, eventually someone goes out to check on them ...
7
votes
6answers
8k views

Install GRUB on NTFS

I would like to install 2 completely independent instances of Windows XP (no data should be shared) in my computer within 2 different primary partitions. I know that grub can handle booting them ...
7
votes
2answers
15k views

How do I set the default kernel parameters in CentOS for all existing and future kernels?

I'd like to remove the rhgb and quiet kernel parameters which are used by default when the kernel is booted in CentOS 6, but I want this to apply to all currently installed kernels as well as any ...
7
votes
3answers
138 views

How can I tell which of two very similar linux kernels I booted from?

I have recently compiled a new kernel for my linux server. It is almost identical with the previous kernel (I added cifs support). Because physical access to the server is limited, I configured grub ...
6
votes
2answers
7k views

mdadm raid 1 grub only on sda

I just finished setting up a CentOS 6.3 64bit server with mdadm however a lightbulb went on and I realised grub would only be installed on the first drive which is about as much use and an ashtray on ...
6
votes
3answers
177 views

Modifying grub.conf file in linux

I edited the 'grub.conf' file of my linux system and changed the 'timeout' value in it and added some other line so as to solve the timeout issue of 'xm console guest' command. I was fool to assume ...
6
votes
1answer
2k views

How Do You Non-Destructively Check if grub2 is Installed in The Boot Sector or is Being Chain-Loaded by grub1, Without Rebooting?

We're upgrading several systems from Debian Lenny to Squeeze and I'd like to ensure that I haven't missed any grub2 installations. By default, Squeeze chain-boot-loads from grub1 and you have to run ...
5
votes
4answers
453 views

Linux/Windows dual boot

I have a system running Ubuntu 9 and would like to install Windows 7 RC on it in a dual-boot configuration. Is there a way to make Windows play nice with grub or am I going to have to install Ubuntu ...
5
votes
4answers
1k views

The Gentoo live-cd shows my drives as “hda”, but booting into my own kernel shows “sda” (therefore, boot fails). What should I do?

The Gentoo live-cd shows my drives as "hda", so I followed the Gentoo handbook and configured my partitions as "hda". However, the boot failed because, when booting into my kernel, it wanted to refer ...
5
votes
2answers
216 views

Moving an existing Linux into an LVM

We have a server with an existing Linux installation (CentOS 6) + boot partition on disk 1, and an empty disk 2. What we'd like to setup is this: One disk (1 or 2, doesn't matter): The main system ...
5
votes
1answer
6k views

Cannot install grub to RAID1 (md0)

I have a RAID1 array on my Ubuntu 12.04 LTS and my /sda HDD has been replaced several days ago. I use this commands to replace: # go to superuser sudo bash # see RAID state mdadm -Q -D /dev/md0 # ...
5
votes
2answers
6k views

X86 Solaris boot failure

We had a power outage last weekend that seems to have done some very bad things to one of our x86 Solaris machines. It is refusing to boot, and dropping me to the "grub>" prompt when started. I can ...
4
votes
4answers
18k views

Debian boot to single-user mode

I forgot my root password and am attempting to change it by booting into single-user mode, however when booting I get this screen: Then I press "e" to edit the boot configuration and I get this ...
4
votes
2answers
3k views

How do I redirect the kernel console output on Ubuntu 10.04

When I reboot my Ubuntu 10.04 nodes, I'd like to be able to see the kernel boot messages when connecting to the IPMI interfaces using Serial Over LAN mode (ttyS0). What do I need to do to be able to ...
4
votes
3answers
24k views

How do I chain boot from grub to syslinux?

I am expanding my rescue usb flash disk. The USB's partition is bootable, and I have installed GRUB to the MBR of the jump drive. It works pretty well - I can boot Freedos and run some utilities,and I ...
4
votes
3answers
197 views

Modifying kernel cmdline in Ubuntu

I have a number of systems on which I need to modify the kernel cmdline, adding a few options. At the moment I do it using the following procedure: Open /etc/default/grub Modify ...
4
votes
1answer
2k views

How to configure GRUB loader after apt-get upgrade on Ubuntu 12.04

I have a box with Ubuntu 12.04, and just did a apt-get upgrade. I'm presented with a dialogue to update my GRUB bootloader, but with the following message: The GRUB boot loader was previously ...
4
votes
1answer
287 views

Grub 1.99 default?

I have been running into an issue. I have my grub set to run the only OS on power on, and the BIOS to automatically restart the machine if it dies. The issue is that if the machine dies (from say a ...
4
votes
1answer
1k views

Linux server not booting after rebuilding software RAID

I have a dedicated server at 1and1 with a software RAID. I believe it's running CentOS. The hardware team at 1and1 replaced the secondary hard drive (sdb) and then I followed these instructions to ...
4
votes
3answers
903 views

how to get a linux image and restore it on another computer

I am trying to use dd command to accomplish complete restore of a linux image on a new computer. I have two partitions sda1(main) and sda2(extended), I took a backup of mbr image using: dd ...
4
votes
2answers
1k views

Setting up Linux softRAID10 so it can boot after a drive failure

I would like my RAID10 to survive the failure of the bootdisk. I want to write grub to the MBR of each disk in the array so that in the case of a failure the array will still boot on the remaining ...
4
votes
1answer
1k views

Booting Nexenta root mirror results in GRUB error “Filesystem type unknown, partition type 0xbf”

I have a Nexenta system that's been running fine for the last few years. Recently one of the system disks failed --- the syspool was part of a ZFS mirror. If I configure the system's BIOS to boot ...
4
votes
2answers
3k views

Enabling AHCI in RHEL5 post-install

I have two servers running RHEL 5.4 quite happily. However, through simple oversight, AHCI/hotswap support was not enabled in BIOS at install time and is now needed. The machines are running ICH10R ...
4
votes
1answer
1k views

Cannot install grub, segmentation fault, unable to identify filesystem, superfluous RAID member, found two disks with same index — Debian 7

A server was recently transported from location A to B, a long journey that took six months. Things have gone wrong due to nothing being labeled prior to shipment. Yes, I know --- it was done by ...
4
votes
3answers
3k views

Use GRUB/GRUB2 to PXE boot OS image

Asked this in stackoverflow but they recommended I post this here: Here is the situation I am in: I currently have a Windows drive that boots XP. The BIOS does not support PXE booting so this is out ...
3
votes
2answers
3k views

Linux RAID 1: How to make a secondary HD boot?

I have the following RAID 1 on a Centos 6.5 server: # cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sdb1[3] 974713720 blocks super 1.0 [2/1] [_U] bitmap: 7/8 pages [28KB], ...
3
votes
3answers
4k views

how to force grub to boot (no human input) regardless previous booting failure

When previous boot was failed. (because of power failure, hardware failure) booting will hang at the grub menu for human prompt. Can you set option to force boot up no matter what happened?
3
votes
4answers
4k views

GRUB “Some modules may be missing from core image” Error

one HDD crashed from my RAID and I added a new HDD. Now I wanted to install GRUB to the new HDD: with grub-install /dev/sdb. I get these errors: Installing for i386-pc platform. grub-install: ...
3
votes
1answer
102 views

How to keep specific old kernels around after a yum update

I know that in CentOS 6.x, you can put the following line in /etc/yum.conf which tells yum to keep the last N kernels (by default this is set to five): installonly_limit=5 However, there are cases ...
3
votes
1answer
1k views

EC2 issue using PV-Grub and custom kernel: error 21 selected disk does not exist

Over on EC2 I am trying to setup AMI's for PLD-Linux that use the new features that allow running custom kernels from inside the AMI using PV-Grub. I've setup custom AMI's many times before but can't ...
3
votes
3answers
3k views

How to install grub on multiple disks?

I have weird situation - order of disks as reported by BIOS, is different than order of disks that Linux sees. Which makes for problematic run - grub installs to sda, but bios boots from sdd or ...
3
votes
1answer
2k views

Unattended grub-pc update

I would like to know how to update grub-pc on a ubuntu 10.04 derivative distro without the configure grub-pc ncurses based dialog. I have tried examining debconf-get-selections before and after as ...
3
votes
1answer
2k views

Grub2 reports physical volume pv0 not found when probing/installing

I upgraded a Ubuntu Maverick to Precise server but I get the following error while updating grub: error: physical volume pv0 not found. Now, for my system I have /dev/sda through /dev/sde ...
3
votes
1answer
954 views

Why does 'aptitude safe-upgrade' cause Ubuntu's boot to hang on “Waiting for root file system”?

I launched an Ubuntu EBS instance on Amazon EC2 using the Ubuntu's very own latest AMI for 10.04 Lucid, ami-ad36fbc4` After getting the instance up, I ran the command sudo aptitude safe-upgrade ...
2
votes
2answers
5k views

Run fsck -y everytime at startup on my main partition Linux

I have an embedded linux system. I use grub2 for the boot loader. I would like to run an fsck -y /dev/sda on /dev/sda every time it boots--even when the system had a power loss and the reboot command ...
2
votes
2answers
2k views

Kernel Upgrade - Grub default

I'm planning on compiling my own kernel, which I've done many times before but as always there's still a chance this could go wrong and the machine could fail to reboot. This machine is within a ...
2
votes
2answers
3k views

What is the correct way to install software RAID 1 in CentOS 6.4?

I'm going to install CentOS 6.4 on HP ProLiant ML310e Gen8 server. This server has fakeraid controller so i decided to use software raid. The problem is that i don't know how to correctly install GRUB ...
2
votes
1answer
2k views

How to boot after RAID failure (software RAID)?

Previously I had a software raid set up using (mdadm) of drives sda and sdb. sdb failed and the only way to reboot the system was by unplugging the second hard drive. Now I've added fresh sdb and sdc ...
2
votes
2answers
667 views

Time drift in Cloud Server - need to mainpulate GRUB config

We are hosting a VPS on a popular host and are experiencing a regular time drift of several minutes a day forward (approx 7). Linux Kernel: 2.6.18-164.11.1.el5 GNU/Linux Distro: CentOS release 5.4 ...
2
votes
1answer
543 views

Can't install grub, missing sda?

all. I've been struggling with this for a few hours. Can't seem to be able to install GRUB. I'm on a VPS, and what's in /dev looks weird to me: drwxr-xr-x 7 root root 1920 Sep 3 11:51 . ...
2
votes
3answers
600 views

Linux RAID1 Software - grub resync after fail

I've a linux server with 2 IDE HD & Raid (hda - hdb) I've changed the "BAD" hdb with a new: mdadm --fail /dev/md2 /dev/hdb3 mdadm --fail /dev/md0 /dev/hdb2 mdadm --fail /dev/md1 /dev/hdb1 ...
2
votes
5answers
815 views

Help fixing GRUB for linux/winxp dual boot scenario

a long story here, but basically I had windows xp on sda1 aka (hd0,0) and ubuntu on sdb5 aka (hd1,4) and they were booting fine. Something messed up with ubuntu, I reinstalled, and tried to fix grub.. ...
2
votes
3answers
1k views

Debian boot problems

I've got Debian server with one disk. No dual boot or anything fancy. Just Debian 6.0 (Squeeze). I rebooted the server today and now it doesn't boot. I get the following (from GRUB): error: ...
2
votes
3answers
1k views

Why is GRUB drive enumeration different before and after boot?

I'm looking at a system with Debian/Lenny on a couple of old IDE PATA drives (several RAID-1 partitions including /boot) and a relatively recently added SATA drive. The system works fine but I've ...
2
votes
2answers
2k views

How to boot GRUB2 so it mounts “root” on a different drive (remote server without kvm switch)

Summary: I created a copy of the root file system on a raid array (with one disk on it), and im trying to get the system to boot off that newly copied drive. Background: 2 disks of same size in ...
2
votes
1answer
4k views

How do I mount a raid disk

So I screwed up my grub.conf file on a CentOS system and I'm in recovery right now (it's only a test dedicated server). My disks are /dev/sda1 and /dev/sdb1 (RAID 1). Now I need to mount /dev/sda1 and ...