View previous topic :: View next topic |
Author |
Message |
Honselas n00b
Joined: 24 Mar 2011 Posts: 29
|
Posted: Thu Mar 24, 2011 3:35 am Post subject: [Solved] Unknown Partition type and other problems |
|
|
I just followed the handbook (3 times through it now actually) and I'm having a couple issues that I can't for the life of me get sorted. I just finished compiling kernel from source 2.6.38 using Pappy's seed. I included scsi/ext2/ext3 in the kernel. When I reboot I get:
Code: | Loading Grub stage 1.5
Loading grub |
It never goes past this but if I hit enter, it trys to boot my default kernel and I get unknown partition type and the display is graphically messed up, all black and white pixels can't hardly read the screen output. I dont' remember the exact 0x code.
I used the new Live DVD as a host to install. I'm using default/linux/amd64/10.0/no-multilib * with grub-static.
Code: |
(chroot) Gentoo-11 / # fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x010967f1
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 329154559 164576256 7 HPFS/NTFS
/dev/sda2 434383199 594535183 80075992+ 5 Extended
/dev/sda3 329154560 433885183 52365312 7 HPFS/NTFS
/dev/sda4 433885184 434383197 249007 83 Linux
/dev/sda5 434385247 435433822 524288 83 Linux
/dev/sda6 435435871 594535183 79549656+ 83 Linux
Partition table entries are not in disk order
Disk /dev/sdb: 2000 MB, 2000682496 bytes
64 heads, 63 sectors/track, 969 cylinders, total 3907583 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0da00ec3
Device Boot Start End Blocks Id System
/dev/sdb1 * 129 3907007 1953439+ 6 FAT16
|
Code: | /dev/sda4 /boot ext2 default,noatime 1 2
/dev/sda6 / ext3 noatime 0 1
/dev/sda5 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,user 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
kernel .config file: http://pastebin.com/YDZ4sf7r
Any idea what I'm missing?
Last edited by Honselas on Sun Mar 27, 2011 12:16 am; edited 1 time in total |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Thu Mar 24, 2011 4:16 am Post subject: |
|
|
Double check your grub.conf file and make sure the device specifications are all correct (especially check the root (hd?,?) part). Also, be sure to remember grub's drive and partition numbering starts at 0, so sda2 becomes (hd0,1)
I ran into this after I cloned a gentoo install to another system but the partition layout was different - I had to adjust the partition specifications in grub.conf.
The video messup seems to be a bug in grub where it doesn't work properly under certain errors (you can try commenting out the splashimage line to make it stay in normal text mode)
Last edited by BradN on Thu Mar 24, 2011 4:24 am; edited 1 time in total |
|
Back to top |
|
|
Honselas n00b
Joined: 24 Mar 2011 Posts: 29
|
Posted: Thu Mar 24, 2011 4:23 am Post subject: |
|
|
I meant to post this before.
Quote: |
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.38
root (hd0,0)
kernel /boot/kernel-2.6.38 root=/dev/sda6 video=uvesafb:mtrr:3,ywrap,1024x768-32@80 |
|
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Thu Mar 24, 2011 4:27 am Post subject: |
|
|
There's your problem - (hd0,0) refers to your NTFS partition, probably not what you want.
Without knowing which partition is which in your disk, I can't say for sure what you need to change those to, but it should be either (hd0,3) or (hd0,4) |
|
Back to top |
|
|
Honselas n00b
Joined: 24 Mar 2011 Posts: 29
|
Posted: Thu Mar 24, 2011 4:31 am Post subject: |
|
|
Thanks so much. sda4=boot and sda6=/
Point grub to boot? (hd0,3) ? |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Thu Mar 24, 2011 4:56 am Post subject: |
|
|
That should do it. Make sure to change both instances in the file - the first one is causing the graphical messups (actually this is a bug in grub - it should fall back to text only display without messing up if it can't load the splashimage), but the second one is preventing you from booting the system.
Good luck! |
|
Back to top |
|
|
Honselas n00b
Joined: 24 Mar 2011 Posts: 29
|
Posted: Thu Mar 24, 2011 5:47 am Post subject: |
|
|
I realized I didn't have my swap partition (/sda5) type right so I fixed that in fdisk.
Just so I understand. All the (hd0,x) need to point to my /boot partition? Or should some of them point to / ?
Thanks for the help btw. I've been banging my head against the wall for 2 days can't believe I missed that in grub. |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Thu Mar 24, 2011 7:10 am Post subject: |
|
|
To the boot partition if you have one, as that's where grub needs to go to load its files and the kernel.
Good luck with your new gentoo install! |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Thu Mar 24, 2011 8:41 am Post subject: |
|
|
For booting you need two locations, that of the grub partition and that of the root partition;
they may well be the same. If they aren't, then set grub.conf up with root as the the grub
partition, and add "real_root=/dev/XXX" to your kernel boot arguments to give grub the
location of the actual root partition.
After that, /etc/fstab takes over, so you need to keep it in sync with grub.
Will |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Fri Mar 25, 2011 12:15 am Post subject: |
|
|
real_root=/dev/XXX isn't for grub, it's for if you use an initrd, and according to his grub.conf, no initrd is loaded so root= specifies the actual root partition. His config should be fine just by changing the (hdx,x) parts. |
|
Back to top |
|
|
Honselas n00b
Joined: 24 Mar 2011 Posts: 29
|
Posted: Sun Mar 27, 2011 12:18 am Post subject: |
|
|
Thanks for the replies. After fixing the obvious (hd,x) errors in my grub.conf everything worked beautifully. Gotta say I'm really loving Gentoo so far. |
|
Back to top |
|
|
|