Debian Installation :: Raid LVM Grub2 Will Not Install
Apr 20, 2015
I have created a system using four 2Tb hdd. Three are members of a soft-raid mirrored (RAID1) with a hot spare and the fourth hdd is a lvm hard drive separate from the RAID setup. All hdd are gpt partitioned.
The RAID is setup as /dev/md0 for mirrored /boot partations (non-lvm) and the /dev/md1 is lvm with various logical volumes within for swap space, root, home, etc.
When grub installs, it says it installed to /dev/sda but it will not reboot and complains that "No boot loader . . ."
I have used the supergrubdisk image to get the machine started and it finds the kernel but "grub-install /dev/sda" reports success and yet, computer will not start with "No boot loader . . ." (Currently, because it is running, I cannot restart to get the complete complaint phrase as md1 is syncing. Thought I'd let it finish the sync operation while I search for answers.)
I have installed and re-installed several times trying various settings. My question has become, when setting up gpt and reserving the first gigabyte for grub, users cannot set the boot flag for the partition. As I have tried gparted and well as the normal Debian partitioner, both will NOT let you set the "boot flag" to that partition. So, as a novice (to Debian) I am assuming that "boot flag" does not matter.
Other readings indicate that yes, you do not need a "boot flag" partition. "Boot flag" is only for a Windows partition. This is a Debian only server, no windows OS.
View 5 Replies
ADVERTISEMENT
Jun 2, 2011
I have a Dell PowerEdge SC1425 with two SCSI-disks, that I have tried installing Debian Squeeze on. This machine has previously been running Lenny (with grub 1), and the upgrade was done by booting a live-cd, mounting the root partition and moving everything in / to /oldroot/, then booting the netinstall (from USB), selecting expert install and setting up everything (not formatting the partition).
Both disks have identical partition tables:
/dev/sda1 7 56196 de Dell Utility
/dev/sda2 8 250 1951897+ fd Linux raid autodetect
/dev/sda3 * 251 9726 76115970 fd Linux raid autodetect
/dev/sda1 and /dev/sdb1 contain a Dell Utility, that I have left in place.
/dev/sda2 and /dev/sdb2 are members of a Raid-1 for swap.
/dev/sda3 and /dev/sdb3 are members of a Raid-1 for / formatted with reiserfs.
After installation, grub loads, but fails with the following message:
GRUB loading.
Welcome to GRUB!
error: no such disk.
Entering rescue mode...
grub rescue>
Doing "ls" shows:
(md0) (hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
I can do the following to get grub to boot:
set root=(hd0,3)
set prefix=(hd0,3)/boot/grub
insmod normal
normal
This will bring me to the grub menu, and the system boots.
It appears that grub has only found md0, which I believe is the swap partition, because ls (md0)/ returns error: unknown filesystem. I have installed grub to both sda, sdb and md1, and tried dpkg-reconfigure grub-pc and dpkg-reconfigure mdadm, as well as update-grub.
I manually added (md1) /dev/md1
to /boot/grub/device.map, but still no result.
I have run the boot_info_script.sh, but unfortunately I cannot attach the RESULTS.txt, because the forum aparently does not allow the txt-extension. Instead I have placed it here: [URL]. I am tempted to go back to grub-legacy, but it seems I am quite close to getting the system working with grub2.
View 6 Replies
View Related
Oct 26, 2010
I'm trying to install GRUB2 on root partition under RAID 5. I tried using the alternate CD, but installation failed. Now I'm trying under the live CD and grub-install ... but I'm being told it can't find the device even though /dev/sda2 (root partition) and /dev/sda are mounted.I have 4 discs, each with a swap partition (/dev/sdX1) and a root partition (/dev/sdX2).
View 9 Replies
View Related
Apr 30, 2011
GRUB2 / RAID 10.10 to 11.04 Upgrade Fail.....
View 9 Replies
View Related
Aug 9, 2015
I have a laptop with 2 HDDs, 1x SSD (/dev/sda, Windows 10 Pro x64) and 1x HDD (/dev/sdb, 3 primary partitions: boot, root, swap; 1 logical partition: home).I used the Debian Stretch Alpha D1 Netinstall ISO x64 by transfering it to a USB stick with DiskImage Writer.The installation went perfectly fine. I chose GRUB to be installed in the MBR of /dev/sdb, as I want all my Linux Stuff on that second disk. The plan is to boot the second disk manually through the BIOS whenever I want to work with Debian. My Windows disk is kept unaware of anything "linuxy".
After the install was complete and I booted my /dev/sdb through the BIOS, a blinking cursor on a black screen was the result. And I don't mean a GRUB Rescue prompt.IMHO, Grub appears to not have been installed, although I chose it to be installed in the MBR of /dev/sdb at the end of the installation.
I've been reading a little, searching for a bug in the installer, but I found only a vague mentioning of such an issue: Grub missing if Debian installed on a multi-hdd system through USB stick. The solution was to get Super Grub2 Disk, and use it to boot my Debian. It worked as expected and the system booted.
View 6 Replies
View Related
Dec 1, 2010
I performed an install using the 5.0.6 amd64 netinst cd on a dual opteron server with an Areca ARC-1110 4-port SATA hardware RAID card. I have 2 250GB drives set up as RAID 1. The debian install saw it as only one drive, just as it should. Install went smoothly, but on reboot, the system would not load.
I did some research and tried a couple of things with no luck. Like adding a delay in the grub command. It jus sits at loading system for a while then times out and loads busy box. Just to check things out, I booted into an Ubuntu live-cd and mounted the volume. The file system is there and all of the necessary files. How to use one of these cards successfully?
View 2 Replies
View Related
Mar 30, 2010
I finally took the plunge and let my debian squeeze install update from grub 1 to grub2. I am not sure if it is working correctly. When it first rebooted I saw it chain load from the grub 1. It went to another screen that said grub 2 and it hung there for awhile and then displayed "fd0 not found" or something like that. Then it jumped to the new grub2 menu screen and booted the os. I went ahead and ran the command "upgrade-from-grub-legacy" and choose all harddrives.
It displayed this:
GRUB Legacy has been removed, but its configuration files have been preserved, since this script cannot determine if they contain valuable information. If you would like to remove the configuration files as well, use the following command:
View 2 Replies
View Related
Feb 21, 2010
I have been using linux for a few years but I am merely an end-user and many things are still beyond me. I have a machine booting XP and Ubuntu 9.10 with grub2. I would like to try Debian as an installed os, and I have used the netinstall and put Debian on sda6.
During the installation I was asked where to put grub...as I did not want to mess up the mbr which has grub 2 I choose to install Debian's grub to itself on /dev/sda6 ...maybe because of the usb-netinstall menu.lst eneded up with (hd 1,5) I changed to 0,5.
Anyway the problem is...after running update-grub from Ubuntu's grub2, Debian shows up, but will not boot. It seems to go most of the way through loading the kernel then Hangs at, "Begin: waiting for root files..."
View 1 Replies
View Related
Mar 2, 2011
I got two harddisks, sda and sdb. Is it possible to install Debian root into software raid partitions sda2 and sdb1 leaving all other partitions 'normal' (not-raid)? do partitions sda2 and sdb1 need to be exact same size and position?
View 4 Replies
View Related
Apr 18, 2011
I have been running ONLY linux (ubuntu) on my computer for years now. However, a friend sucked me back into the world of MMO's (angry fist @ RIFT). So, I decided to pick up a new disc, slap windows 7 on it and now want to dual boot.Basically I had to do some disc juggling to get windows to play nice. So my windows drive is now first, then my Ubuntu drive second.Its been a while so I'm wondering how involved / what would be the steps to get grub2 to chainload into windows7 (in my head I want to say I'm going to boot into the live cd, mount the windows disc and reinstall the loader to the windows drive since its the first disc in the chain?)
View 1 Replies
View Related
Jun 27, 2010
I am going to setup a new Ubuntu 10.04 using RAID 1 soon. Installation will be via the alternate CD. Older distributions required manually installing Grub to the second drive, to boot if the first drive fails. I found different statements about how this is handled since 9.10.e.g.
Quote:
Install GRUB boot-loader on second drive (this step is not need if you use Ubuntu 9.10)
or
Quote:
installing GRUB to second hard drive depending on your distribution
> grub-install /dev/md0
or
> grub-install /dev/sda
> grub-install /dev/sdb
is Grub2 automatically installed in all RAID drives using alternate CD 10.04 like executing sort of "grub-nstall /dev/md0" during the installation ?
View 2 Replies
View Related
Feb 28, 2011
If I have a windows installed in raid-0, then install virtualbox and install all my linux os,s to virtualbox will they be a raid-0 install without needing to install raid drivers?
View 1 Replies
View Related
Nov 10, 2015
I installed Debian 8.2 first, then Windows 10 over it (I know, backwards, but I didn't wish to lose my customizations on Debian up to that point, and didn't realize until later that I wanted to Dual Boot). Running from a LiveCD of Debian 8.2:
Code: Select allsudo fdisk -l
Device - Start - End - Sectors - Size - Type
/dev/sda1 - 2048 - 116211711 - 116209664 - 55.4G - Linux filesystem
/dev/sda2Â - 116211712 - 116244479 - 32768 - 16M - Microsoft reserved
/dev/sda3Â - 116244480 - 232421375 - 116176896 - 55.4G - Microsoft basic data
/dev/sda4Â - 232421376 - 234440703 - 2019328 - 986M - EFI System
[code]...
That's where I am stuck. I'm a bit new to Debian & Linux still and I've never dabbled with Grub2, I imagine I can't mount /dev/sda4 because in chrooted into /dev/sda1 and it can't see /dev/sda4 at this point (what I'm thinking anyway). So I try:
Code: Select allroot@debian:/# fdisk -l
fdisk: cannot open /proc/partitions: No such file or directory/I imagine that's what it is, but I don't know a way around that. I want to dual boot Windows 10 & Debian 8.2 on a UEFI (or EFI?) system with a GPT Disk. No guide I have found for fixing Grub2 or getting Dual Booting working with Debian then Windows installed have covered both things at the same time. I just have to be special I guess.
View 1 Replies
View Related
Mar 7, 2010
i initilally installed ubuntu 9.10 then installed windows 7 ,then i recovered grub2 using livecd as told in the post [URL] i did "sudo update-grub" and got windows 7 menu entry but when i select that entry windows 7 does not load but the grub2 is reloaded again.
i cant boot to windows 7.
Windows 7 have 100 mb partition "System Reserved" the grub2 points to that partition but still windows 7 not loaded.
sudo fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3c3a81f5
[Code]....
View 3 Replies
View Related
May 17, 2010
I went through so many post but I haven't found the proper answer yet hope you have an Idea1. Grub2 saves only Linux OS as last selected no Windows OS2.It is possible to boot into a cdrom (drive)?
View 2 Replies
View Related
Sep 27, 2010
Right I had to uninstall windows xp and install windows 7 to play more games! I use windows to play games and that is it. I have restored grub before and I even double checked with this guide: [URL]
I have two hard drives
sda - 320gb with windows
sdb - 100gb /home
-12 gb /
-480gb (NTFS) shared
However after reinstalling grub it still boots into windows! I will boot into windows properly then shut it down cos its coming up with windows was not shut down properly and if that doesn't work it has then been shutdown properly and I will install grub again.
View 3 Replies
View Related
Aug 19, 2010
We've started using Debian based servers more and more in work and are getting the hang of it more and more every day. Right now I'm an ace at setting up partitions, software RAID and LVM volumes etc through the installer, but if I ever need to do the same thing once the system's up and running then I become unstuck.
Is there any way I can get to partman post-install, or any similar tools that do the same thing? Or failing that are there any simple guides to doing these things through the various command line tools?
View 4 Replies
View Related
Nov 14, 2010
I've installed a Squeeze-based distro - Crunchbang - with an encrypted root partition (no LVM), and it won't boot.
Here's what I get: Loading initial ramdisk. Loading, Gave up waiting for root device ALERT! /dev/mapper/hda5_crypt does not exist. Dropping to a shell!
Here's my partition table:
hda1 - Windows (Truecrypted)
hda2 - GRUB2
hda5 - /
hda6 - unused swap
[Code]...
What should I look for? Where do I go from the initramfs shell? Do I chroot? What then? This might be a Crunchbang issue (although others blame LVM which I didn't use, and it's the original Debian installer after all), but there's gotta be a reason it doesn't boot
View 1 Replies
View Related
Feb 7, 2011
The way I usually boot Linux distros, and this has worked for every distro I have tried up to Kubuntu 10.10, was to install Grub2 on an extended partition, run "dd if=/dev/sda5 of=linux.bin bs=512 count=1", and then adding that bin file to my Windows boot.ini. What usually happens after is that I get the Grub2 menu after selecting it from the Windows Bootloader.
The problem is, with the latest Squeeze AMD64, all I get when I do this is a static cursor and the computer is frozen and I have to hit the reset button.I mounted the Linux partition with Ext2IFS (mkfs.ext3 -I128 /dev/sda5 to get 128KB inodes), and I can see that the Squeeze installer did indeed install Grub2, because I can see the files in their respective directories.
View 10 Replies
View Related
Feb 28, 2011
Whenever I reboot, I get GRUB and the _ pinking, and that's it. With rescue cd I can have chroot shell, to troubleshoot I did the upgrade-from-grub-legacy and installed it to both /dev/sda and /dev/sdb In recovery I redid the upgrade-grub and grub-install commands but still have the same "GRUB and _ blinking".
Because the text "GRUB" and then nothing I didn't enouncter while googling, I need to ask here for further troubleshooting.
View 10 Replies
View Related
Jul 21, 2010
I just got a new hard drive and figured I might as well do an installation of Squeeze (and was previously using Lenny). That went fine, and then I decided that I should copy over my old Lenny installation to the new disk -- mostly to have a working backup without bothering to do a new installation on a partition of the new drive. My partition scheme was a smaller /boot partition and then a much larger / partition with everything else standard (and a much larger /data partition rather than storing everything under /home). So I copied /boot over to a new partition on the new disk, and the same with /. That was done from the Squeeze installation, so the Lenny install wasn't active at the time. I modified all the appropriate entries in /etc/fstab to use UUIDs rather than partition numbers and ran an update-grub.
It detected everything on the old and new disks without a problem. When I went to try and boot up the transferred Lenny installation, it hung on trying to activate the root file system (I've forgotten the exact messaging). Not entirely unexpected, mind you. I went and took a look at the grub.cfg file. It does list that the transferred Lenny is on partition sda8 (correct), it has the correct uuid for the boot partition... but it seems to be setting the root incorrectly. Specifically, the root is still set for the old disk (though in its new position of hd1 instead of hd0), and the "linux" line sets a root for the old device. Or more specifically, this is the menu entry I get, with a few // comments.
menuentry "Debian GNU/Linux, kernel 2.6.26-2-amd64 (on /dev/sda8)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos2)' // <------ This position is the *current* location of my old Lenny disk/partition
search --no-floppy --fs-uuid --set [the correct /boot UUID]
linux /vmlinuz-2.6.26-2-amd64 root=/dev/sda5 ro vga=795 // <----- that root=/dev/sda5 line is what it was on the old device.
initrd /initrd.img-2.6.26-2-amd64 }
The odd thing there is that it sets the root according to the *current* position of the old install disk (maybe some trickery with detecting the correct UUID before setting the root), but the "linux" line refers to the *old* partition. The two lines will never match up no matter what. Now if I edit grub.cfg manually, I can make it boot (and run) normally, as I've verified. For example, I made a couple manual changes to do this:
menuentry "Debian GNU/Linux, kernel 2.6.26-2-amd64 (on /dev/sda8)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)' // <----------- First hard drive, partition sda3 is where I put /boot
search --no-floppy --fs-uuid --set [the correct /boot UUID]
linux /vmlinuz-2.6.26-2-amd64 root=UUID=[the correct / UUID] ro vga=795 // <--- Changed it to the UUID here; could be /dev/sda8 instead
initrd /initrd.img-2.6.26-2-amd64 }
And that works perfectly, the installation works just fine. Of course, the problem is that those changes will/would be lost every time I run an update-grub. So my question, in a nutshell, is how can I configure things so that update-grub sets things properly to the new devices? Or in other words, where in the copied installation are the variables I need to change? I did note one thing odd -- the existence of a vga=795 line. For the new Squeeze installation, I'm using gfxpayload and there's no vga=anything line anywhere. My old installation, of course, had its own grub installation where I did use vga=795 to set the console resolution properly.
So my first guess was that update-grub (for Grub2) was pulling config information out of the Lenny /boot/grub folder (grub legacy). Unfortunately I tried several changes there and it made no difference. Then I deleted the entire /boot/grub folder entirely from the copied Lenny installation and ran update-grub again (the Squeeze grub version). It changed absolutely nothing. That's very confusing for me, since I have no clue where it could be getting vga=795 from, *except* the now-deleted Lenny /boot/grub folder. Where in the copied Lenny installation, I can change something to make it so that update-grub picks up the correct information?
View 4 Replies
View Related
Dec 13, 2010
I've been having issues with mythbuntu since the last few upgrades, so I decided to go for a fresh install. Since I had a free partition (from a deleted Windows install that I moved to a dedicated box), I decided to leave the old root partition as a backup and reinstall to the new partition.If it works, I may use dd in the future to clone the partition as an easy backup solution before upgrades.
The install went fine but now GRUB2 detects both the old (now non-functional) install, as well as the new functional install.More annoyingly than that, it shows the defunct install first in the list, with the correct install at the end. Even odder, the correct install is auto-named with the partition name (sda5) of the old install, even though it's the one booting to the new partition (sda3).How can I get Grub2 to ignore the old install (or to be precise, NOT auto-detect other OS)? Or at least show the functional install first.
View 2 Replies
View Related
Apr 26, 2011
I just installed lubuntu 10.10 onto my desktop and while on my first bootup I had the option to boot windows through grub, it's disappeared from the boot menu since then.When I installed I created a partition for lubuntu and installed onto that. I can still access and see my windows partition.
View 6 Replies
View Related
Sep 1, 2011
As I now have a 120Gb SSD in an efi-capable laptop, I'd like to re-install 11.04. I'd like to format the SSD as gpt and make it bootable with efi. And I'd like to use grub2 as the bootloader.
Can anybody walk me through this? I'm pretty new to Ubuntu, though I've used several other distros for a number of years. When I last installed 11.04, I don't remember seeing options for gpt, for example. And I don't know how get things booting with efi.
View 6 Replies
View Related
May 11, 2010
how to install a RAID 5 ?
I have 4 harddisks
View 4 Replies
View Related
Mar 1, 2011
Installing Ubuntu 10.10 desktop.on a Highpoint rocketraid 2642.Installing Ubuntu, it does not find the drive?How do I install the drivers to install and boot after the installation from the raid drives?
View 1 Replies
View Related
Mar 16, 2011
I have a dual boot system. I need dual boot as my dictation software is only available for Windows. In the future I am going to try a virtual machine, but dictation and audio did not work properly the last time I tried in VM. But unfortunately for now I have a dual boot machine with Vista and Debian 6. Unfortunately, I am going to have to reinstall Vista. Or to be more accurate I'm going to install the 64-bit version instead of the 32 bit that came with the computer. I have the 64-bit version that I no longer use from one of my other computers.
Anyway, I have to install Windows which will overwrite my grub2. Is there anyway I can make a backup or reinstall grub2 after I install Windows. I really don't want to reinstall Debian 6 squeeze. Can they make some sort of a backup of gurb2 before I do this. I checked out the Internet and I found something called Super Grub2. It apparently will allow me to boot back into Debain 6 so that I can install grub2 again. Assuming, Super Grub2 even works then how do I reinstall grub2 once a boot into Debian 6? Has anybody tried Super grub2, does it work? It's kind of hard to test it, with a working version of grub2.
View 3 Replies
View Related
Sep 21, 2010
How can I restore or reinstall GRUB2 from squeeze installation? I tried various suggestions from various online articles (most of them for ubuntu), but I couldn't find a solution. Is there any solution, specifically for Debian? GRUB reinstallation from install cd, didn't worked as well. Since I couldn't boot at all, I restored GRUB1 and I'm posting from Lenny, but I can't access Squeeze this way (probably because I have squeeze's partition, ext4 formatted).
View 5 Replies
View Related
Jan 8, 2011
I am looking to build a server with 3 drives in RAID 5. I have been told that GRUB can't boot if /boot is contained on a RAID arrary. Is that correct? I am talking about a fakeraid scenario. Is there anything I need to do to make it work, or do I need a separate /boot partition which isn't on the array?
View 3 Replies
View Related
Apr 25, 2010
I have converted snow leopard .dmg file to .img, and I can it mount, but I need know, if is there way to boot it from grub2
View 4 Replies
View Related