View previous topic :: View next topic |
Author |
Message |
thoughts Apprentice
Joined: 15 Apr 2004 Posts: 153 Location: Pennsylvania
|
Posted: Fri Aug 19, 2005 3:40 am Post subject: |
|
|
I just installed Gentoo 2005.1 on a single-partition system (not counting swap) using the x86 quick-install guide. But grub is giving me an error.
I have a single IDE disk with /dev/hda1 as the only partition (other than swap), i.e. it is the boot partition and the root partition.
I compiled my kernel (not genkernel) and then put this in /boot/grub/grub.conf:
Code: | title=Gentoo
root (hd0,0)
kernel /mykernel-image root=/dev/hda1 |
I do what the quick-install guide says: I copy /proc/mounts to /etc/mtab and then run grub-install /dev/hda. But it gives me this error:
Code: | Could not find device for /boot: Not found or not a block device. |
Also, it is possible to search this forum for phrases? I search for "not found or not a block device" and it returns >200 matches, almost none of which contain that phrase.
-Anthony DiSante
http://encodable.com/
http://nodivisions.com/ |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Fri Aug 19, 2005 10:33 am Post subject: |
|
|
xkalibur1554,
I have a very similar install, /boot raid1, swap, two identical partitions managed by the kernel, root raid 0, other partitions raid0.
Grub works fine here. I'm on an Athlon XP +3200.
With a raid1 boot, either grub or lilo should just work, since they will both ignore the raid bit. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Fri Aug 19, 2005 10:39 am Post subject: |
|
|
thoughts,
Two things.
grub-install is looking in /etc/fstab and finding an entry for /boot, then trying to mount it but of course, it can't.
Comment out the /boot entry here.
As you don't have a real /boot partition, you need to change this
Code: | kernel /mykernel-image root=/dev/hda1 | to
Code: | kernel /boot/mykernel-image root=/dev/hda1 | so grub looks in in your /boot directory.
Thats true for the splash line too. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
xkalibur1554 Apprentice
Joined: 31 Mar 2005 Posts: 206 Location: USA
|
Posted: Fri Aug 19, 2005 1:51 pm Post subject: |
|
|
neddy,
how did you install your gentoo system, with the raid 1 /boot, and raid 0 everything else? maybe if you give me a how to the way you did it from scratch, i will be able to do the same. thank you for all of your help so far.
john _________________ "Unthinking respect for authority is the greatest enemy of truth."
~Einstein |
|
Back to top |
|
|
xkalibur1554 Apprentice
Joined: 31 Mar 2005 Posts: 206 Location: USA
|
Posted: Fri Aug 19, 2005 2:04 pm Post subject: |
|
|
neddy,
when i manually install grub by,
Code: | grub
root (hd0,0)
setup (hd0)
quit |
do i want to install it hd0,0? my device.map shows up as hd0 being /dev/sda and hd1 being /dev/sdb. what is the ",0" for? because on each of the /dev/sda, the partitions are 1,2,3. where sda1 and sdb1 are the boot partitions and they are in the raid1. now when i install, no matter what number i put in (hd0,X) is comes up as an ext2fs. that is what i made the /dev/sda1 and /dev/sdb1, the /dev/sdb2 and /dev/sda2 is the swap, and sda3 and sdb3 are the ext3fs for root. now it says grub was installed fine. is that why I at least get the grub loading screen? if i go ahead and try lilo, what would a lilo configuration file look like for my setup?
thank you very much,
john _________________ "Unthinking respect for authority is the greatest enemy of truth."
~Einstein |
|
Back to top |
|
|
xkalibur1554 Apprentice
Joined: 31 Mar 2005 Posts: 206 Location: USA
|
Posted: Fri Aug 19, 2005 5:44 pm Post subject: |
|
|
neddy,
maybe this will help, when it says
Code: | GRUB Loading Stage 1.5.
GRUB loading, please wait...
_ |
the floppy light is always on, it seems like it is looking for something, but doesnt go to it.
does this make sense or help?
thank you,
john _________________ "Unthinking respect for authority is the greatest enemy of truth."
~Einstein |
|
Back to top |
|
|
thoughts Apprentice
Joined: 15 Apr 2004 Posts: 153 Location: Pennsylvania
|
Posted: Fri Aug 19, 2005 5:53 pm Post subject: |
|
|
NeddySeagoon wrote: | thoughts,
Two things.
grub-install is looking in /etc/fstab and finding an entry for /boot, then trying to mount it but of course, it can't.
Comment out the /boot entry here. |
Actually, I had already deleted the /boot line from my fstab file, so that's not the problem.
NeddySeagoon wrote: | As you don't have a real /boot partition, you need to change this
Code: | kernel /mykernel-image root=/dev/hda1 | to
Code: | kernel /boot/mykernel-image root=/dev/hda1 | so grub looks in in your /boot directory.
Thats true for the splash line too. |
I tried that as well, and it didn't make any difference: I got the exact same error message.
-Anthony DiSante
http://encodable.com/
http://nodivisions.com/ |
|
Back to top |
|
|
xkalibur1554 Apprentice
Joined: 31 Mar 2005 Posts: 206 Location: USA
|
Posted: Fri Aug 19, 2005 5:54 pm Post subject: |
|
|
does it matter that i have the promie fasttrack 378 controller, and that sets up the two sata drives in a 2+0 striped raid 0 before anything else happens? do i need to make it a raid 1 through there? the only place i created a raid 1, was on the drives through linux. in this promise controller, should i not have them raided in that? should i just have it set up as two disks? then linux can make the arrays instead of havving them already in arrays? _________________ "Unthinking respect for authority is the greatest enemy of truth."
~Einstein |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Fri Aug 19, 2005 6:28 pm Post subject: |
|
|
xkalibur1554,
Heres my RAID story, Once Upon a Time ... (sorry)
For a long time I had a single IDE drive install, then I fancied playing with raid, so I added two SATA drives,
partitioned them, put the partitions into raid sets (at this time all RAID 0) and made my filesystems. I had to add raid0 to my normal kernel, emerge raidtools along the way and create an /etc/raidtab.
I copied my working system over to the raid setup but left /boot on the single IDE so I could test. I only added an entry to grub.conf to point root to /dev/md1 so booting was still from the IDE drive but everything else was from the RAID0 on SATA.
With a half and half, I tried to install grub on my RAID0 /boot, only to find out you can't. Grub does not use the kernel and has no concept of raid chunk size, so after it reads the first chunk, it doesn't swap drives. I found a page (maybe even the gentoo handbook for version 1.4-rc4) that said to make /boot raid1 and all would be well.
I created my raid1 /boot in degraded mode, so it was a mirror with one working partition and one dud, made the ext2 filesystem. Then copied my IDE /boot to the degraded raid1 and installed grub to the working part of the raid.
At this time grub could see (hd0, my /dev/hda, (hd1, my /dev/sda and (hd2, my /dev/sdb, grub was only installed on the MBR of (hd0 and (hd1
To make sure I understood what was going on I created a number of grub.conf entries that all pointed to the same kernel using root=/dev/md1
Code: | title=boot from IDE using kernel on /dev/hda1
root (hd0,0)
kernel ....
title=boot from IDE using kernel on /dev/sda1
root (hd1,0)
kernel .... |
And tested with the BIOS booting off both the first and second drives. My raid /boot is still degraded at this time.
The bootloader part of grub comes in 3 parts.
Stage 1, goes into the MBR from the start of block 0 to the partition table, which starts at 0x1be
Stage 1.5 goes into the other sectors before the start of first partition.
Stage 2 is in /boot/grub
Booting works as follows. The BIOS reads stage 1, then stage 1 reads stage 1.5, stage 1.5 can read the filesystem to read stage 2, which shows you the menu and does the real work. Thats why there are so many stage 1.5 files. One per filesystem.
By swapping boot drives in the BIOS, I was using all the different combinations of stage 1, stage 1.5 and stage 2 files. By choosing different menu options, the kernel was being booted from different drives.
When I thought I understood what was going on, I raidhotadded the other half of the mirror and installed grub there too. Notice that grub stage 1 and grub stage 1.5 are outside the fiesystem, so not affected by the raidhotadd. At this point I removed the IDE drive and adjusted the (hdX entries in grub,conf so I can boot either drive in the mirror. Hence my /boot/grub/grub.conf (ignore the different kernel options)
Code: | default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
# 2.6.12-gentoo-r9
title=Kernel 2.6.12-gentoo-r9 Emulated SCSI (hd0)
root (hd0,0)
kernel (hd0,0)/2.6.12-gentoo-r9 root=/dev/md1 lapic hdc=ide-scsi hdd=ide-scsi
title=Kernel 2.6.12-gentoo-r9 ATAPI CD Writing (hd1)
root (hd1,0)
kernel (hd1,0)/2.6.12-gentoo-r9 root=/dev/md1 lapic nofb |
The root option in both cases points to /boot. /boot as seen by the kernel is the raid1 device /dev/md0.
/boot as seen by grub are the first partitions on each drive seperately. The raid is really on a convience to save copying the kernel once to each drive.
When you install grub you should go through the followining sequence.
Code: | grub
root (hd0,0)
setup (hd0)
quit
grub
root (hd1,0)
setup (hd1)
quit | This installs stage 1 on each MBR and the right stage 1.5 in the spare space before the first partition.
and it points stage 1.5 to the first partition on each drive as being your /boot
Of course if the first partition is not /boot, the root staements are wrong.
When grub uses the term root (hd... Its means grubs root, or your /boot partition, not the kernels / (root) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Fri Aug 19, 2005 6:33 pm Post subject: |
|
|
xkalibur1554,
Its trying to read stage 2 from the floppy - Oops
The manual grub install should fix that.
If not, try the --no-floppy option when you start grub to do the grub install
See _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
xkalibur1554 Apprentice
Joined: 31 Mar 2005 Posts: 206 Location: USA
|
Posted: Fri Aug 19, 2005 6:33 pm Post subject: |
|
|
i swear i have done the same as you in regards to setting up the raid 1 and 0. and i also did what you said for installing grub. the only difference is that my drives are raid 0 via bios, they are striped to begin with before i make the raid in linux, should i not have it like that? _________________ "Unthinking respect for authority is the greatest enemy of truth."
~Einstein |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Fri Aug 19, 2005 6:46 pm Post subject: |
|
|
xkalibur1554,
Ahh.
Linux supports three sorts of raid. Hardware raid, you don't have that.
BIOS software raid, or software raid on a plug in card. This is called dmraid and the dmraid module drives the BIOS like WIndows would. Thats thats the only reason for using this form of raid. With BIOS raid, you put the drives into a raid set, then make partitions on the raid set. All the partitions are the same raid class. Grub will not work with BIOS raid either.
Lastly there is kernel raid. Its not compatible with Windows. You partition your drives, put the partitions into raid sets. This means you can have different raid levels on the same drive. This is what I use. I have a SIL 3112 RAID controller that offers BIOS raid but I do not use that feature.
From your last post, you have a hybrid BIOS raid/kernel raid. You need to use the drives as independant drives.
Don't do anythis rash, like reinstalling just yet. there may well be some detials we have not communicated very well. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
xkalibur1554 Apprentice
Joined: 31 Mar 2005 Posts: 206 Location: USA
|
Posted: Fri Aug 19, 2005 6:54 pm Post subject: |
|
|
ok, i think i figured it out. i took off that crazy BIOS raid, and set them up as two independent sata drives, and i can say we made the most progress ever as of yet. it gets to the splash screen, and i can see the title and everything. the problem now is when you push enter to boot the system the screen just stays black. now i feel this may be due to the vesafb option in my grub.conf. i used that because i was following the amd64 install, but i did not use genkernel, and i do not think i compile frame buffer support in. i am not sure though. any tips from thsi point would be great. i am finally getting somewhere. thank you. _________________ "Unthinking respect for authority is the greatest enemy of truth."
~Einstein |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Fri Aug 19, 2005 7:23 pm Post subject: |
|
|
xkalibur1554,
Hmm. I'm not sure whats beneth your raid but the kernel should at least draw on the screen.
Do you get the Code: | Uncompressing kernel ... | message at the top of the screen before it goes black?
I have feeling that the kernel will just have ignored your BIOS software raid, so everything will be OK. It will have used the drives seperately.
There are two seperate console drivers in the kernel. Making one or the other ,or both is OK. Leaving them both out, while not a fault, is not what most people want.
If you have any display options on the end of your kernel line in grub.conf repalce them with , or add vga=ask if there is nothing there now. This will pause the boot sequence and display a menu of VGA display modes you can choose from. Try a few.
If that doesn't happen, you have left out both consolde drivers. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
gbuseman n00b
Joined: 06 Jun 2005 Posts: 5
|
Posted: Sat Aug 20, 2005 11:35 am Post subject: Grub Error |
|
|
Good Day to all,
I am building a new Gentoo, my previous one crashed. I have 2.6.12 load on an 80 ide in a IBM T41P.
I get this error at boot:
The root block device is unspecidied or not detected.
Please specify a device to boot, or "shell" for a shell...
if I enter /dev/hda3 at the boot () prompt the machine continues to boot.
I have tried changing the root (hd0,0) to (hd0,2) but no help.
Suggestions????? |
|
Back to top |
|
|
JanTheMan n00b
Joined: 20 Aug 2005 Posts: 26
|
Posted: Sat Aug 20, 2005 11:47 am Post subject: |
|
|
hi
i just have installed my gentoo 2005.1 but cant figure out how to change console resolution. it is fine with livecd but seems to be 600x400 when i load linux...tried few things but none of them worked... the last one ive tried was from http://gentoo-wiki.com/HOWTO_fbsplash#Configuring_Your_Bootloader but it says that initrd file cannot be found....(error 15)
my grub file is
Code: | default 0
timeout 20
splashimage=(hda0,0)/grub/splash.xmp.gz
title=Gentoo Linux 2.6.12
kernel (hd0,0)/kernel-2.6.12-gentoo-r6 quiet root=/dev/sda3 video=vesab:ywrap,mtrr,1280x1024-32@70 splash=silent,theme:emergency
initrd (hd0,0)/fbsplash-emergency-1280x1024
title=windows
.......
.......
.......
|
i have also tried to change things for video= and tried to put vga= instead of video with different values but nothing changes at all.. i am new to linux and have no idea how else to manage that thing..if it is all about framebuffer can u give me a good link for configuring it or an advice..any help appriciated |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sat Aug 20, 2005 12:16 pm Post subject: |
|
|
gbuseman,
It looks like you have an error in your grub.conf file.
The root (hdx,y) points to grubs root, not the kernels root filesystem.
Its grubspeak for your /boot.
Can you post your partition layout and your grub.conf please _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sat Aug 20, 2005 12:21 pm Post subject: |
|
|
JanTheMan,
You will only have an initrd if you used genkernel to make your kernel.
This needs to be one long line in grub.conf - is it?
Code: | kernel (hd0,0)/kernel-2.6.12-gentoo-r6 quiet root=/dev/sda3 video=vesab:ywrap,mtrr,1280x1024-32@70 splash=silent,theme:emergency |
Did you make the framebuffer console in the kernel, or the VGA one (or both)?
Try Code: | kernel (hd0,0)/kernel-2.6.12-gentoo-r6 root=/dev/sda3 vga=ask | to see if you gain a degree of control that way. You should get a new menu just at the start of the kernel boot _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
JanTheMan n00b
Joined: 20 Aug 2005 Posts: 26
|
Posted: Sat Aug 20, 2005 12:38 pm Post subject: |
|
|
NeddySeagoon
right..i had used genkernel as some of things wudnt work but ive figured it out and uninstalled genkernel.. i did everything exactly as it said on the link in prev message..configured my kernel manually and enabled:
Code: | Device Drivers > Graphics support:
[*] Support for frame buffer devices
<*> VESA VGA graphics support
VESA driver type (vesafb-tng) --->
(HRESxVRES@FREQ) VESA default mode # pick resolution@freq of your own here !
# 8pp is the only one supported for this time
# Ex: (1024x768@72)
Device Drivers > Graphics support > Console display driver support:
[*] Video mode selection support
<*> Framebuffer Console support
Device Drivers > Graphics support:
[*] Support for the framebuffer splash |
Quote: | Did you make the framebuffer console in the kernel, or the VGA one (or both)? |
I enabled framebuffer console but im not sure about VGA one..anyway everything ive selected is above..
just tried :
Code: | kernel (hd0,0)/kernel-2.6.12-gentoo-r6 root=/dev/sda3 vga=ask |
nothing happens again it just loads linux and thats it..
PS yes that one was 1 long line in grub.conf |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sat Aug 20, 2005 1:30 pm Post subject: |
|
|
JanTheMan,
Framebuffer Splash needs other things in an initrd to make it work.
Its worth selecting a Boot Logo under Graphics support -> Logo configuration.
If you are actually using the framebuffer consol, you will get a Penguin in the top left of the screen.
I think the next step is to remove Framebuffer Splash (just for now) and add in the boot logo, so we can see which console driver is actually being used. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
JanTheMan n00b
Joined: 20 Aug 2005 Posts: 26
|
Posted: Sat Aug 20, 2005 8:17 pm Post subject: |
|
|
NeddySeagoon,
i disabled support for the framebuffer splash and enabled logo configurationn (all logos with "*") as uve said, but nothing happend again...it just loads with fat letters and nothing else..no any logos or something else..i dont know how to check what console driver is used because im completely new to linux so if u can explain to me in more detail please but for some reason i believe that no drivers used at all
ive got ati x800 xt graphic card as lspci says..if it somehow helps.. thanx for ur help again |
|
Back to top |
|
|
mizpelled2becool n00b
Joined: 21 Aug 2005 Posts: 2 Location: NC
|
Posted: Sun Aug 21, 2005 4:55 am Post subject: Grub terminal after initial reboot. Kernel does not boot. |
|
|
Hi all,
Although I've used other Linux distros this is my first stab at Gentoo. I read and followed the install manual installing gentoo-sources manually and used grub-install to install grub. I setup the config file exactly like in the manual (except I subsistiuted in 2.6.12-r9) However once I finally got to the reboot step, when it comes back up I'm shown a grub terminal. I tried specifying the kernel and configfile by using the appropriate grub commands but no matter what I do, when I enter the 'boot' command my machine hangs. What could I have done so that it doesn't find the kernel I thought I specified im the config file? If I made an error to my grub config file, how do I get to it now to correct it?
Thanks. |
|
Back to top |
|
|
JanTheMan n00b
Joined: 20 Aug 2005 Posts: 26
|
Posted: Sun Aug 21, 2005 9:49 am Post subject: |
|
|
mizpelled2becool,
to get to ur grub.conf file use LiveCD or i think you can edit it in Grub when it loads if you have a dual boot (Linux and other OS like windows)...
For LiveCD:
Code: | # mount /dev/hda3 /mnt/gentoo
(For an ext3 partition:)
# mount -t ext3 /dev/hda3 /mnt/gentoo
# mount /dev/hda1 /mnt/gentoo/boot
# mount -t proc none /mnt/gentoo/proc
# chroot /mnt/gentoo /bin/bash
# env-update
* Caching service dependencies...
# source /etc/profile
nano /boot/grub/grub.conf |
thats all i can help you with, u can use a manual from the gentoo site if u didnt already
Configuring the Bootloader |
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Sun Aug 21, 2005 10:11 am Post subject: |
|
|
And once you've done all that, post it here so we can all have a chance to help ...
Also output of |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sun Aug 21, 2005 10:45 am Post subject: |
|
|
JanTheMan,
Do Code: | grep FB /usr/src/linux/.config | Your output needs to contain
Code: | CONFIG_FB=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SOFT_CURSOR=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_VESA=y
# CONFIG_FB_VESA_STD is not set
CONFIG_FB_VESA_TNG=y
CONFIG_FB_VESA_DEFAULT_MODE="1024x768@75"
| for a generic frambebuffer console. It may also contain some CONFIG_FB_<VENDOR> lines. They are harmless for the console but may cause problems when you come to run Xorg, which will not use the console driver anyway. The last line in my code snippet shows the defualt resolution I've compiled in. It can be changed with a parameter on the kernel line in grub.conf. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
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
|
|