LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-06-2010, 01:01 PM   #1
kat3c
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Rep: Reputation: 0
Can't boot Debian in triple boot


O.K., I'm a newbie, and I'm lost. After reading hours on GRUB and bootloaders, I still don't understand much. Here's my story:

I had (and still do) a working dual-boot XP/Karmic (GRUB version 1.97 beta4). I shrank the Ubuntu partition and set up partitions and installed Debian 5.04. When I got to the point of installing GRUB, I told Debian to install grub to MBR. On rebooting, Ubuntu was not an option on the NEW (looked different) grub menu. Maybe it was GRUB2? Could boot to either XP or Debian though.

Thought easiest thing was to reinstall Ubuntu since it seems to "see" other OS's more reliably. So I did, and installed GRUB again during its install to MBR. Then, all three were in the GRUB menu (version 1.97 beta4 again), but when tried booting to Debian, got an error (forget the wording), but think it was because the partitions got renumbered when installing Ubuntu.

SO, reinstalled Debian, reformatting the partitions but not deleting them first so the numbering stayed the same. When got to the part for installing GRUB, I told it to skip, hoping now the current GRUB would work.

Now, all three are on the GRUB menu, but when I try to boot Debian, I get "no such device" and a list of numbers/letters after it. And "press any key to continue", which takes you back to the GRUB menu (version 1.97 beta4, by the way).

What to do? Ideas? When I try booting from Super GRUB USB, it only sees the Windows (by name) OS, and then lists a stage 1 and stage 1_5? What's that?

Thanks for any help.
 
Old 03-06-2010, 01:19 PM   #2
kat3c
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Original Poster
Rep: Reputation: 0
sudo update-grub changes things, but not fixed....

O.K., did sudo update-grub in ubuntu and rebooted. Now, Debian 5.04 shows as last entry in GRUB, and choosing it starts a boot, which hangs at "Begin: Waiting for root file system....".

Ideas?
 
Old 03-06-2010, 01:56 PM   #3
kat3c
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Original Poster
Rep: Reputation: 0
One more update

One more piece of info. Waiting long enough at the "Waiting for root file system..." hang results in a series of notifications:

WARNING bootdevice may be renamed. Try root=dev/hda3
Gave up waiting for root device. Common problems:
-Boot args (cat /proc/cmdline)
-Check rootdelay= (did the system wait long enough?)
-Check root= (did the sytem wait for the right device?)
-Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/sda3 does not exist. Dropping to a shell!


In Gparted, the partition with Debian root is hdc3, although on the GRUB menu it's listed as /dev/sda3. However, in Gparted the Windows partition is hdc1 and on GRUB it's /dev/sda1, and it boots fine.....


Is my Debian install just borked? Did telling it to skip installing a bootloader (I got some kind of error that said "Install failed. This is a fatal error. You will have to boot with an external device..." ruin it?

If skipping the bootloader install did ruin it, how do you install Debian without borking your current GRUB? That's what happened the first time.
 
Old 03-06-2010, 04:33 PM   #4
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
Have you tried to change root partition for debian to root=/dev/hda3 as you where adviced?
Anyway the best way will be to use UUID of the disk. You can check it by blkid <name of device> command when you in Ubuntu, and then put it in grub.cfg as root=UUID=<founded uuid>
 
Old 03-06-2010, 04:41 PM   #5
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,359

Rep: Reputation: 184Reputation: 184
how about copying the debian entries from the menu.lst on the debian partiton to the menu.lst on the ubuntu partition
never mind didn't register that you reinstalled debian without running grub during the debian reinstall.

Last edited by colorpurple21859; 03-06-2010 at 04:48 PM.
 
Old 03-06-2010, 05:07 PM   #6
kat3c
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Boot Info Script

Below are the results of a Boot Info Script run. I highlighted/noted what I think is of interest, doesn't mean it is......Thanks.


Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #7 for /boot/grub.


sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

sda6: __________________________________________________ _______________________

File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

#Ubuntu root part#
sda7: __________________________________________________ _______________________

File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img


sda8: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

sda9: __________________________________________________ _______________________

File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

#Debian root part#
sda3: __________________________________________________ _______________________

File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Debian GNU/Linux 5.0
Boot files/dirs: /etc/fstab

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0e550e54

Partition Boot Start End Size Id System

/dev/sda1 63 129,596,354 129,596,292 7 HPFS/NTFS
/dev/sda2 147,171,465 234,436,544 87,265,080 5 Extended
/dev/sda5 147,171,591 151,460,819 4,289,229 82 Linux swap / Solaris
/dev/sda6 151,460,883 179,751,284 28,290,402 83 Linux
/dev/sda7 179,751,348 198,177,839 18,426,492 83 Linux
/dev/sda8 198,177,903 202,274,414 4,096,512 82 Linux swap / Solaris
/dev/sda9 202,274,478 234,436,544 32,162,067 83 Linux
/dev/sda3 129,596,355 147,171,464 17,575,110 83 Linux


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 56B09B48B09B2D8D ntfs New old Dell laptop

#Debian root part#
/dev/sda3 eb7d1b5b-9dae-414a-b77e-0cb6f3c0ff61 ext3 9.0 GB Filesyste

/dev/sda5 swap
/dev/sda6 37837804-fc55-4dbc-aa13-08b08bc89b79 ext3

#Ubuntu root part #
/dev/sda7 a3cc4cdd-c80d-48c0-be69-071e7366b6ef ext3 ubuntu root


/dev/sda8 b6a7e78e-5ddb-47da-b80c-8114b200d7e7 swap swap
/dev/sda9 b8cd9e96-901d-45c2-9f3a-0329b8b7babf ext3 ubuntu home

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda7 / ext3 (rw,errors=remount-ro)
/dev/sda9 /home ext3 (rw)


================================ sda1/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Micro soft Windows XP Professional" /fastdetect /NoExecute=OptIn

=========================== sda7/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set a3cc4cdd-c80d-48c0-be69-071e7366b6ef
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-20-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set a3cc4cdd-c80d-48c0-be69-071e7366b6ef
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=a3cc4cdd-c80d-48c0-be69-071e7366b6ef ro quiet splash
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set a3cc4cdd-c80d-48c0-be69-071e7366b6ef
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=a3cc4cdd-c80d-48c0-be69-071e7366b6ef ro single
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set a3cc4cdd-c80d-48c0-be69-071e7366b6ef
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=a3cc4cdd-c80d-48c0-be69-071e7366b6ef ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set a3cc4cdd-c80d-48c0-be69-071e7366b6ef
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=a3cc4cdd-c80d-48c0-be69-071e7366b6ef ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 56b09b48b09b2d8d
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Debian GNU/Linux (5.0.4) (on /dev/sda3)" {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set eb7d1b5b-9dae-414a-b77e-0cb6f3c0ff61
linux /boot/vmlinuz-2.6.26-2-686 root=/dev/sda3
initrd /boot/initrd.img-2.6.26-2-686
}
### END /etc/grub.d/30_os-prober ###


### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

=============================== sda7/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda7 during installation
UUID=a3cc4cdd-c80d-48c0-be69-071e7366b6ef / ext3 errors=remount-ro 0 1
# /home was on /dev/sda9 during installation
UUID=b8cd9e96-901d-45c2-9f3a-0329b8b7babf /home ext3 defaults 0 2
/dev/sda5 none swap sw 0 0
# swap was on /dev/sda8 during installation
UUID=b6a7e78e-5ddb-47da-b80c-8114b200d7e7 none swap sw 0 0

=================== sda7: Location of files loaded by Grub: ===================


99.8GB: boot/grub/core.img
99.8GB: boot/grub/grub.cfg
99.8GB: boot/initrd.img-2.6.31-14-generic
100.0GB: boot/initrd.img-2.6.31-20-generic
99.8GB: boot/vmlinuz-2.6.31-14-generic
100.0GB: boot/vmlinuz-2.6.31-20-generic
100.0GB: initrd.img
99.8GB: initrd.img.old
100.0GB: vmlinuz
99.8GB: vmlinuz.old

#Debian root part#
=============================== sda3/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdc3 / ext3 errors=remount-ro 0 1
/dev/hdc6 /home ext3 defaults 0 2
/dev/hdc5 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0

=================== sda3: Location of files loaded by Grub: ===================



66.9GB: boot/initrd.img-2.6.26-2-686
67.0GB: boot/initrd.img-2.6.26-2-686.bak
66.9GB: boot/vmlinuz-2.6.26-2-686
66.9GB: initrd.img
66.9GB: vmlinuz
 
Old 03-07-2010, 01:01 PM   #7
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
kat3c, try to change

menuentry "Debian GNU/Linux (5.0.4) (on /dev/sda3)" {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set eb7d1b5b-9dae-414a-b77e-0cb6f3c0ff61
linux /boot/vmlinuz-2.6.26-2-686 root=/dev/sda3
initrd /boot/initrd.img-2.6.26-2-686
}

to

menuentry "Debian GNU/Linux (5.0.4) (on /dev/sda3)" {
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set eb7d1b5b-9dae-414a-b77e-0cb6f3c0ff61
linux /boot/vmlinuz-2.6.26-2-686 root=UUID=eb7d1b5b-9dae-414a-b77e-0cb6f3c0ff61
initrd /boot/initrd.img-2.6.26-2-686
}

Should do the trick.
 
  


Reply

Tags
boot, debian, grub, triple, ubuntu, windows, xp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian on MacBook Pro in Triple Boot setup kamransoomro84 Debian 6 03-12-2008 09:20 PM
Installing goblinX in triple boot laptop... no boot in the other linux OS amalgam Linux - Newbie 2 02-14-2008 02:08 PM
from dual boot to triple and quadruple boot theory_prof Linux - Newbie 10 10-06-2005 02:28 PM
GRUB Triple Boot XP FC3 Debian/Knoppix HD Install boyfromthedwarf Linux - Software 4 12-02-2004 09:31 AM
triple boot system/boot disk noODle Linux - Software 4 12-23-2001 11:55 AM


All times are GMT -5. The time now is 10:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration