View previous topic :: View next topic |
Author |
Message |
Fred Krogh Veteran
Joined: 07 Feb 2005 Posts: 1036 Location: Tujunga, CA
|
Posted: Sun Jun 24, 2007 7:32 pm Post subject: SOLVED -- Problems with dual boot on an HP Pavilion Laptop |
|
|
The particular model number is well disguised, but it is an Intel Centrino duo. This is a used system which had windows working at one time I've tried to follow instructions for resizing the windows partition, but after doing this windows would not boot. Moving on, I'm trying to get Linux working before working on the Windows part of the problem. I should mention that the bios on this machine only allows booting from the first hard drive!
At the moment I'm suspecting that I may be missing a SATA driver in the kernel configuration, but if so I have no idea what to choose.
When booting: Quote: | root((hd0,3)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/kernel-2.6-20-r8 root=/dev/sdb2
Error 15: File not found | fdisk has this to say about my partitions Quote: | Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 8000 64259999+ 7 HPFS/NTFS
/dev/sda2 8607 9598 7968240 c W95 FAT32 (LBA)
/dev/sda3 9599 9729 1052257+ d7 Unknown
/dev/sda4 * 8001 8606 4867695 83 Linux
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 63 506047 82 Linux swap / Solaris
/dev/sdb2 64 9729 77642145 83 Linux
| lspci describes what it knows about the system as Quote: | 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce Go 7600] (rev a1)
06:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)
08:06.0 CardBus bridge: Texas Instruments Unknown device 8039
08:06.1 FireWire (IEEE 1394): Texas Instruments Unknown device 803a
08:06.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
08:06.3 Class 0805: Texas Instruments Unknown device 803c
08:08.0 Ethernet controller: Intel Corporation Intel(R) PRO/100 VE Network Connection (rev 01)/dev/sda1 /win ntfs noauto,noatime 0 0
/dev/sda4 /boot ext2 noauto,noatime 1 2
/dev/sdb2 / ext3 noatime 0 1
/dev/sdb1 none swap sw 0 0
/dev/cdrom /mnt/cdrom audo noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
proc /proc proc nodev,nosuid,noexec 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
[/quote]/etc/fstab has Quote: | /dev/sda1 /win ntfs noauto,noatime 0 0
/dev/sda4 /boot ext2 noauto,noatime 1 2
/dev/sdb2 / ext3 noatime 0 1
/dev/sdb1 none swap sw 0 0
/dev/cdrom /mnt/cdrom audo noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
proc /proc proc nodev,nosuid,noexec 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 | In grub.conf Code: | # For booting GNU/Linux
title=Gentoo-Linux-2.6.20-r8
root (hd0,3)
kernel /boot/kernel-2.6-20-r8 root=/dev/sdb2
#initrd /initrd.img
# For booting Windows NT or Windows95
title Windows XP boot menu
rootnoverify (hd0,0)
makeactive
chainloader +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos
# For installing GRUB into the hard disk
title Install GRUB into the hard disk
root (hd0,3)
setup (hd0)
| And finally this is the output obtained when setting up grub Quote: | GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd0,3)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"... failed (this is not fatal)
Running "embed /grub/e2fs_stage1_5 (hd0,3)"... failed (this is not fatal)
Running "install /grub/stage1 (hd0) /grub/stage2 p /grub/menu.lst "... succeeded
Done.
| Many thanks to any who would care to offer suggestions as to what might be done. More outputs from whatever, I'd be happy to supply.
Fred
Last edited by Fred Krogh on Mon Jun 25, 2007 4:20 am; edited 1 time in total |
|
Back to top |
|
|
ecosta Guru
Joined: 09 May 2003 Posts: 477 Location: Brussels,BE
|
Posted: Sun Jun 24, 2007 8:45 pm Post subject: |
|
|
Hi Fred,
From what I can see you are trying to boot linux on the wrong disk
In grub hd0 is sda and hd1 is sdb so you should have
Code: |
# For booting GNU/Linux
title=Gentoo-Linux-2.6.20-r8
root (hd1,1)
kernel /boot/kernel-2.6-20-r8 root=/dev/sdb2
|
If you ran grub on hd0 you probably overwrote the windows MBR which would explain why you can't boot into it anymore.
I hope this helps.
-Ed _________________ Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB. |
|
Back to top |
|
|
Fred Krogh Veteran
Joined: 07 Feb 2005 Posts: 1036 Location: Tujunga, CA
|
Posted: Sun Jun 24, 2007 8:48 pm Post subject: |
|
|
It wasn't booting windows prior to running grub. But at the moment I'm more concerned about getting Linux working. Thanks,
Fred |
|
Back to top |
|
|
Fred Krogh Veteran
Joined: 07 Feb 2005 Posts: 1036 Location: Tujunga, CA
|
Posted: Sun Jun 24, 2007 8:54 pm Post subject: |
|
|
Sorry I missed the first part of your post. I thought root was supposed to point where /boot/kernel was to be found and that would be (hd0,3) I believe.
I'll go have another look at the grub documentation. Thanks,
Fred |
|
Back to top |
|
|
Fred Krogh Veteran
Joined: 07 Feb 2005 Posts: 1036 Location: Tujunga, CA
|
Posted: Sun Jun 24, 2007 9:07 pm Post subject: |
|
|
I don't find the documentation all that clear. But since /boot/kernel... is on /dev/sda4, I don't see how it has a chance of booting it I don't tell it where that is, and it seems to me that would be (hd0,3). Am I really that confused?? Thanks,
Fred |
|
Back to top |
|
|
bjacobt n00b
Joined: 10 Oct 2004 Posts: 35 Location: Dallas, TX
|
Posted: Sun Jun 24, 2007 10:40 pm Post subject: |
|
|
You grub.conf looks okay. Between do you have the right filename for the kernel in grub.conf |
|
Back to top |
|
|
Fred Krogh Veteran
Joined: 07 Feb 2005 Posts: 1036 Location: Tujunga, CA
|
Posted: Sun Jun 24, 2007 10:49 pm Post subject: |
|
|
A reasonable guess. I had been careful about this, but checked this again. Names do match. Thanks,
Fred |
|
Back to top |
|
|
bjacobt n00b
Joined: 10 Oct 2004 Posts: 35 Location: Dallas, TX
|
Posted: Sun Jun 24, 2007 10:59 pm Post subject: |
|
|
what about the directory?
could you post the directory listing for /dev/sda4
or you could try
manually booting grub
hit e, when you see the grub
type
root(hd0,3)
kernel /boot/kernel-2.6-20-r8 root=/dev/sdb2
boot
all these 3 command in different lines
you should be able to boot |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sun Jun 24, 2007 11:12 pm Post subject: |
|
|
GRUB's tab-completion is very handy when you are booting manually.
You can get a list of what files are available in your /boot partition like this.
Code: | root (hd0,3)
kernel /<press tab> |
|
|
Back to top |
|
|
Fred Krogh Veteran
Joined: 07 Feb 2005 Posts: 1036 Location: Tujunga, CA
|
Posted: Sun Jun 24, 2007 11:15 pm Post subject: |
|
|
I didn't bother posting my /boot directory as I think what you (bjacobt) suggested enabled me to get unstuck. Doing what you suggested I tried various combinations and found that what I needed was Quote: | kernel /kernel-2.6-20-r8 root=/dev/sdb2 | This got the system to boot and I think it is safe to assume that changing grub.conf will have me back in business. I'll probably be asking questions about getting windows working again as some (quite a bit later) point. Many thanks,
Fred |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|