View previous topic :: View next topic |
Author |
Message |
sdousley n00b
Joined: 17 Feb 2005 Posts: 20 Location: UK
|
Posted: Tue Feb 22, 2005 4:50 pm Post subject: Problems booting kernel |
|
|
Hi, i am a member of linux forums, and i have been trying to solve my problem with booting gentoo. You can see the progress made so far here
For peopl ethat dont like looking at links, the problem is that when i choose gentoo from grub it says mouting partition failed, but if i use grub command line, inputting EXACTLY the same code seems to work.... it's confusing hell out of me! I want to get this going as gentoo seems to be REALLY good
Any help will be gratefully appreciated.
Steve _________________ "If something's hard to do then it's not worth doing" - Homer Simpson |
|
Back to top |
|
|
slam_head Guru
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Tue Feb 22, 2005 6:28 pm Post subject: |
|
|
It sounds like your grub.conf file is misconfugred. It looks like
conflicts with
Do you have seperate partitions for your root drive and your boot partition?
(hd0,10) is equal to /dev/hda11, not /dev/hda9
Your probably want to set something like this
Code: | kernel (hd0,10)/bzimage vga=792 video=vesafb:ywrap,pmipal,1024x768-32@85 |
|
|
Back to top |
|
|
sdousley n00b
Joined: 17 Feb 2005 Posts: 20 Location: UK
|
Posted: Tue Feb 22, 2005 6:54 pm Post subject: |
|
|
It's not that that's the issue, i have even tried
Code: | root(hd0,10)
kernel /bzImage |
in menu.lst file, and even that failed to boot with the same error. i CANNOT get gentoo to boot from grub AT ALL. :s _________________ "If something's hard to do then it's not worth doing" - Homer Simpson |
|
Back to top |
|
|
slam_head Guru
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Tue Feb 22, 2005 9:24 pm Post subject: |
|
|
Are you getting the grub menu at bootup? Did you install grub into the mbr? |
|
Back to top |
|
|
sdousley n00b
Joined: 17 Feb 2005 Posts: 20 Location: UK
|
Posted: Tue Feb 22, 2005 9:47 pm Post subject: |
|
|
Yeh, i get the proper grub menu at boot, i installed it into the MBR of hda, but as i say, i installed it in SuSE then edited the config to include the gentoo kernel _________________ "If something's hard to do then it's not worth doing" - Homer Simpson |
|
Back to top |
|
|
slam_head Guru
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Tue Feb 22, 2005 10:03 pm Post subject: |
|
|
So let's clear this up.
1) Which partition is your /boot located on?
2) Which partition is you / located on?
3 While your at it why not post a copy of your full grub.conf, fstab, and the output of fdisk -l. |
|
Back to top |
|
|
sdousley n00b
Joined: 17 Feb 2005 Posts: 20 Location: UK
|
Posted: Tue Feb 22, 2005 10:45 pm Post subject: |
|
|
ok
/boot is on /dev/hda11
/ is on /dev/hda9
my fstab:
Quote: | # /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
#manual fstab
/dev/hda9 / ext2 noatime,defaults 0 1
/dev/hda10 /home ext2 noatime,defaults,auto 1 2
/dev/hda11 /boot ext2 noatime,defaults 1 2
/dev/hda5 none swap sw 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs nodev,nosuid,noexec 0 0
#optical drives
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
/dev/dvd /mnt/dvd auto noauto,user 0 0
#windows drives
/dev/hda1 /mnt/win/c vfat umask=0222,dmask=0000,uid=0002,gid=users 0 0
/dev/hda2 /mnt/win/d vfat umask=0222,dmask=0000,uid=0002,gid=users 0 0
/dev/hdc5 /mnt/win/e vfat umask=0222,dmask=0000,uid=0002,gid=users 0 0
/dev/hda4 /mnt/win/f vfat umask=0222,dmask=0000,uid=0002,gid=users 0 0
/dev/hdc6 /mnt/win/g vfat umask=0222,dmask=0000,uid=0002,gid=users 0 0
/dev/hdc7 /mnt/win/h vfat umask=0222,dmask=0000,uid=0002,gid=users 0 0
/dev/hdc8 /mnt/win/z vfat umask=0222,dmask=0000,uid=0002,gid=users 0 0
|
fdisk -l
Code: |
Disk /dev/hda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 510 4096543+ b W95 FAT32
/dev/hda2 511 1784 10233405 c W95 FAT32 (LBA)
/dev/hda3 2039 19929 143709457+ f W95 Ext'd (LBA)
/dev/hda4 1785 2038 2040255 c W95 FAT32 (LBA)
/dev/hda5 2039 2102 514048+ 82 Linux swap / Solaris
/dev/hda6 2103 3408 10490413+ 83 Linux
/dev/hda7 3409 8629 41937651 83 Linux
/dev/hda8 8630 8634 40131 83 Linux
/dev/hda9 8635 9850 9767488+ 83 Linux
/dev/hda10 9851 19917 80863146 83 Linux
/dev/hda11 * 19918 19929 96358+ 83 Linux
Partition table entries are not in disk order
Disk /dev/hdc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 2 11473 92148840 f W95 Ext'd (LBA)
/dev/hdc5 2 2550 20474811 b W95 FAT32
/dev/hdc6 2551 5099 20474811 b W95 FAT32
/dev/hdc7 5100 8286 25599546 b W95 FAT32
/dev/hdc8 8287 11473 25599546 b W95 FAT32
|
menu.lst (SuSE's grub.conf)
Code: |
# Modified by YaST2. Last modification on Sat Feb 19 01:41:45 2005
color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,7)/message
###Don't change this comment - YaST2 identifier: Original name: linux###
title=SUSE LINUX 9.2
kernel (hd0,7)/vmlinuz root=/dev/hda6 vga=0x31a selinux=0 splash=silent resume=/dev/hda5 desktop elevator=as showopts
initrd (hd0,7)/initrd
title=Gentoo Linux - Kernel 2.6.10-r6
root(hd0,10)
kernel /bzImage
###Don't change this comment - YaST2 identifier: Original name: windows###
title=Windows XP
root (hd0,0)
chainloader +1
###Don't change this comment - YaST2 identifier: Original name: floppy###
title=Floppy
root (fd0)
chainloader +1
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title=Failsafe -- SUSE LINUX 9.2
kernel (hd0,7)/vmlinuz root=/dev/hda6 showopts ide=nodma apm=off acpi=off vga=normal noresume selinux=0 barrier=off nosmp noapic maxcpus=0 3
initrd (hd0,7)/initrd
|
_________________ "If something's hard to do then it's not worth doing" - Homer Simpson |
|
Back to top |
|
|
slam_head Guru
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Wed Feb 23, 2005 2:41 am Post subject: |
|
|
In your menu.lst, I would change
Quote: | title=Gentoo Linux - Kernel 2.6.10-r6
root(hd0,10)
kernel /bzImage |
to
Quote: | title=Gentoo Linux - Kernel 2.6.10-r6
root(hd0,10)
kernel (hd0,12)/bzimage |
Hopefully that should do the trick. Good luck! |
|
Back to top |
|
|
sdousley n00b
Joined: 17 Feb 2005 Posts: 20 Location: UK
|
Posted: Wed Feb 23, 2005 7:00 am Post subject: |
|
|
where dod the (hd0,12) come from?
I have sorted it now anyway, it's one SMALL thing that you have not noticed in the menu.lst file.
i had
this is essentially correct EXCEPT for the lack of a space between root and (hd0,10)
WHY do i always miss such small things?! _________________ "If something's hard to do then it's not worth doing" - Homer Simpson |
|
Back to top |
|
|
slam_head Guru
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Wed Feb 23, 2005 3:56 pm Post subject: |
|
|
Quote: | where dod the (hd0,12) come from? |
Quote: | /dev/hda11 /boot ext2 noatime,defaults 1 2 |
/dev/hda11 is (hd0,12) |
|
Back to top |
|
|
sdousley n00b
Joined: 17 Feb 2005 Posts: 20 Location: UK
|
Posted: Wed Feb 23, 2005 10:52 pm Post subject: |
|
|
slam_head wrote: |
/dev/hda11 is (hd0,12) |
/dev/hda11 is (hd0,10) Grub starts one number lower than /dev does.
Anyway, as i say, it's working now _________________ "If something's hard to do then it's not worth doing" - Homer Simpson |
|
Back to top |
|
|
slam_head Guru
Joined: 06 Jan 2003 Posts: 449 Location: New York City
|
Posted: Thu Feb 24, 2005 12:09 am Post subject: |
|
|
Sorry, my bad I only had 2 cups of coffee today, once I have another 2 I'll be alright. |
|
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
|
|