Re: grub problem
1) grub's kernel/linux line, the root=/dev/[is_incorrect] parameter 2) fstab's: [is_incorrect] / root line Kernel may panic if it can't find its system in (1) Kernel may find (1), but (2) is wrong (1) and (2) can even be different if the kernel can use it. okay is there any other 64 bit boot loader that i can use instead of grub2? i have tried: installed kernel with every single thing with a * changing my device map to (sd0) /dev/sda rebooted = error kernel panic reverted to snapshot. tried changing fstab in every variation i could think of. rebooted every time error kernel panic reverted to snapshot. changed the /boot/grub/grub.cfg and the fstab with every variation i could think of. rebooted every time error kernel panic reverted to snapshot. it must be grub2 that is the problem. is there anything i can do? Or do i have to wait until the LFS book for 64 bit with grub2 gets out? thank you for your help -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem
On 11/25/09, su.sinnes wrote: is there anything i can do? We've all been down this road before ... whatever we do, grub doesn't seem to work ... You have gotten grub to load a kernel ... that is getting close. The key marked PrtScr SysRq can stop the display from scrolling while booting -- you have to be quick. / CTRL-Q resume scolling Can you get with pencil and paper the messages that happen just before the pan ic. Does kernel config include CONFIG_EXT3_FS=y -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem
The key marked PrtScr SysRq can stop the display from scrolling while booting -- you have to be quick. / CTRL-Q resume scolling Can you get with pencil and paper the messages that happen just before the panic. it did not work i think it's because im on a laptop and i need to hold down the fn key to use prt sc and sysrq, and it is not supported. neither did ctrl + s Does kernel config include CONFIG_EXT3_FS=y vim /boot/config-2.6.31.6 CONFIG_EXT3_FS=y its on. also CONFIG_ETX2_FS=y CONFIG_ETX4_FS=y thanks -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem
2009/11/25 su.sinnes su.sin...@mail.com: 1) grub's kernel/linux line, the root=/dev/[is_incorrect] parameter 2) fstab's: [is_incorrect] / root line Kernel may panic if it can't find its system in (1) Kernel may find (1), but (2) is wrong (1) and (2) can even be different if the kernel can use it. okay is there any other 64 bit boot loader that i can use instead of grub2? Well, you could use lilo (which needs bin86) - see the clfs x86_64-64 book. But I don't think it will be an efficient way for you to proceed. If you get a kernel panic, that comes from linux - the bootloader has done it's job. In the parameters you give the bootloader, there is a line root=/dev/XYZ : you said you were using a SATA drive, sothe root would normally be on e.g. /dev/sda5. After that, it's down to the kernel's .config. Earlier, I think you said you were using vmware ? This is probably the key to the problem - I'm guessing it needs a specific disk driver, and perhaps that is not part of the linux kernel (because vmware is a proprietary product). Maybe there is a vmware support list or forum where you can ask for help ? ĸen -- After tragedy, and farce, OMG poneys! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem
On 11/25/09, su.sinnes wrote: The key marked PrtScr SysRq can stop the display from scrolling it did not work i think it's because im on a laptop and i need to hold down the fn key to use prt sc and sysrq, and it is not supported. neither did ctrl + s OOPS, I might have typed before I had my coffee ... I might have meant the Pause Break key ... let me try that. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem
Ken Moffat wrote: Earlier, I think you said you were using vmware ? This is probably the key to the problem - I'm guessing it needs a specific disk driver, and perhaps that is not part of the linux kernel (because vmware is a proprietary product). Maybe there is a vmware support list or forum where you can ask for help ? I did a vmware build a while ago (looks like 2 years ago) -- LFS 6.3. I didn't have any problems there. I don't recall anything special, but all the IDE configs are on and also CONFIG_SCSI_BUSLOGIC. The cdrom is /dev/hdc and I had configured it for two drives so I have sda and sdb. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem
On 11/23/09, su.sinnes su.sin...@mail.com wrote: Hi im stuck with grub, as soon as i restart i get into the grub shell I reserve the right to be wrong, but ... While you can't compile the old grub under 64bit, you could still use the old grub ... can't you? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem
What is the brand and model of the motherboard you are trying to use to boot this LFS system? It's rare but occasionally you need to compile some less than obvious drivers into the kernel to make the system boot properly. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem
su.sinnes wrote: What is the brand and model of the motherboard you are trying to use to boot this LFS system? I am using vmware Which file system are you using? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem
Which file system are you using? /dev/sda1 on /mnt/lfs type ext3 (rw) Thanks -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem
su.sinnes wrote: I put an * on everything with, SATA, and all filesystems, and a lot of other things for this recompilation. and i changed file under /boot/grub/device.map (hd0) /dev/sda to (sd0) /dev/sda then ran grub-mkconfig -o /boot/boot/grub/grub.cfg again. do you think its the kernel or is something in grub that seems to be the problem? If you are getting a kernel panic, it's not grub. Grub did it's job and loaded the kernel, then the kernel had a problem. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem
On 11/24/09, Bruce Dubbs wrote: If you are getting a kernel panic, it's not grub. Grub did it's job and loaded the kernel, then the kernel had a problem. Agree. But, there are 2 places that cause kernel panic: 1) grub's kernel/linux line, the root=/dev/[is_incorrect] parameter 2) fstab's: [is_incorrect] / root line Kernel may panic if it can't find its system in (1) Kernel may find (1), but (2) is wrong (1) and (2) can even be different if the kernel can use it. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem
On Monday 23 November 2009 21:27:37 su.sinnes wrote: Hi im stuck with grub, as soon as i restart i get into the grub shell and when i type boot it says no loaded kernel. but if i do: 1) made a file under /boot/grub/device.map as Bruce (hd0) /dev/sda 2) grub-install --root-directory=/boot/ /dev/sda 3) grub-mkconfig -o /boot/boot/grub/grub.cfg then it boots up and i get a kernel panic , not syncing:VFS:unable to mount root fs on unknown-block(2,0) i have recompiled the kernel 4 times now and i have selected all SATA drivers, and ext 2 filesystem. but no luck. Anyone got any ideas? Thank you. Can you show me the last few lines of the screen when the machine hangs? signature.asc Description: This is a digitally signed message part. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GRUB Problem
This is really maddening because I'm so close to finishing, I'm on section 8.4 of lfs 6.3, Making the LFS System Bootable and when I use grub it gives me Error 21: Selected disk does not exist. The host distribution is Ubuntu 7.10 and since I'm new to this I haven't deviated from the book. Thanks. Ben Without seeing your menu.lst file and what partition(s) you are using it's hard to comment. I assume that you are aware of the difference between the GRUB partition naming convention and that of Linux, e.g. (hd0,0) ==hda1. Also, I'm not sure what you mean by when I use GRUB; do you mean when you boot LFS? Richard Melville -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GRUB Problem
Sorry for being unclear, this error is occurring when I use the root (hd1,3) command in section 8.4 to make the system bootable. I am aware of the different naming scheme, lfs is on partition sdb4 which (I think) corresponds to hd1,3, although I don't think that is the problem because I get the same error when I root (hd0, TAB so it appears as if GRUB doesn't recognize that hard drive either. The partition set up sda1-Window sdb1-Data sdb2-Ubuntu sdb3-swap sdb4-LFS Sorry if this doesn't show up in the right thread location, I'm new at this. Ben On Thu, Mar 13, 2008 at 4:48 AM, Richard Melville [EMAIL PROTECTED] wrote: This is really maddening because I'm so close to finishing, I'm on section 8.4 of lfs 6.3, Making the LFS System Bootable and when I use grub it gives me Error 21: Selected disk does not exist. The host distribution is Ubuntu 7.10 and since I'm new to this I haven't deviated from the book. Thanks. Ben Without seeing your menu.lst file and what partition(s) you are using it's hard to comment. I assume that you are aware of the difference between the GRUB partition naming convention and that of Linux, e.g. (hd0,0) ==hda1. Also, I'm not sure what you mean by when I use GRUB; do you mean when you boot LFS? Richard Melville -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
RE: GRUB Problem
Sorry for being unclear, this error is occurring when I use the root (hd1,3) command in section 8.4 to make the system bootable. I am aware of the different naming scheme, lfs is on partition sdb4 which (I think) corresponds to hd1,3, although I don't think that is the problem because I get the same error when I root (hd0, TAB so it appears as if GRUB doesn't recognize that hard drive either. The partition set up sda1-Window sdb1-Data sdb2-Ubuntu sdb3-swap sdb4-LFS What are the contents of your /boot/grub/device.map? I can't remember how this distro does it, but you can use the grub shell to configure grub, which has smart tab completion- it may answer your questions about which drive it sees and how. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GRUB Problem
On Thu, 2008-03-13 at 10:46 -0700, Ben Feinberg wrote: Sorry for being unclear, this error is occurring when I use the root (hd1,3) command in section 8.4 to make the system bootable. I am aware of the different naming scheme, lfs is on partition sdb4 which (I think) corresponds to hd1,3, although I don't think that is the problem because I get the same error when I root (hd0, TAB so it appears as if GRUB doesn't recognize that hard drive either. The partition set up sda1-Window sdb1-Data sdb2-Ubuntu sdb3-swap sdb4-LFS Sorry if this doesn't show up in the right thread location, I'm new at this. Ben Ok what happens when you type grub you should see grub then type at the prompt root (hd1,3) It should say: Filesystem type is ext2fs, partition type 0x83 If that is working the grub can see and connect to your LFS partition. setup (hd,0) will then overwrite the first drive boot loader (Windows drive) From this point you will need to have the menu.lst file correct or you will only be able to boot LFS. Make sure that this is in your menu.lst title Windows rootnoverify (hd0,0) chainloader +1 You will need to copy the Ubuntu section from the menu.lst on /dev/sdb2 /boot filesystem or Ubuntu won't boot. I had similar trouble and I downloaded and burned the LFS Live CD and booted that. I then could install and setup grub, I just could not get it to work from host system or from chroot. After I installed and setup grub using the LFS LiveCD all was fine. Hope this helps. -- Tayo'y Mga Pinoy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GRUB problem
simply follow the chapter 8 instructions on making grub install itself back into the MBR I type in root(hd0,0) and it replys: Error 21: Selected disk does not exist So I just type in root to find out what does exist and it replys: (fd0): Filesystem type unknown, partition type 0x0 if i'm wrong, someone more knowledgeable than me please correct me. it sounds like you still need to load your devices, what was the command? udevstart, i think. also, as long as you point grub to the correct places, you should be able to install grub regardless of whether you've ran chroot. but for the disk does not exist issue, that sounds like you just forgot to populate /dev. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GRUB problem
Ellis Wilson wrote: Hey all, Finally finished my shiny new linux system, ran great, then went and wanted to install Win2Kpro on the third partition on my harddisk (1st is LFS, 2nd swap, 3rd Win2k). I put windows on and miraculously it treats my system like its the only OS on it. No big deal I think and put in the lfs disk I downloaded from the site and go back in, mount my system (which looks fine/untoutched), chroot in, and go into grub. Planning to simply follow the chapter 8 instructions on making grub install itself back into the MBR I type in root(hd0,0) and it replys: Error 21: Selected disk does not exist So I just type in root to find out what does exist and it replys: (fd0): Filesystem type unknown, partition type 0x0 I have no clue what to do and even when I try to root(fd0) it gives me the same (first) reply. Thanks all trying not to lose a weeks worth of learning linux and building my own system. Ellis You don't need to chroot to install grub. Just run grub directory from the livecd. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GRUB problem
Thanks worked perfect :D - Original Message - From: Chris Staub [EMAIL PROTECTED] Date: Monday, February 27, 2006 11:22 pm Subject: Re: GRUB problem Ellis Wilson wrote: Hey all, Finally finished my shiny new linux system, ran great, then went and wanted to install Win2Kpro on the third partition on my harddisk (1st is LFS, 2nd swap, 3rd Win2k). I put windows on and miraculously it treats my system like its the only OS on it. No big deal I think and put in the lfs disk I downloaded from the site and go back in, mount my system (which looks fine/untoutched), chroot in, and go into grub. Planning to simply follow the chapter 8 instructions on making grub install itself back into the MBR I type in root(hd0,0) and it replys: Error 21: Selected disk does not exist So I just type in root to find out what does exist and it replys: (fd0): Filesystem type unknown, partition type 0x0 I have no clue what to do and even when I try to root(fd0) it gives me the same (first) reply. Thanks all trying not to lose a weeks worth of learning linux and building my own system. Ellis You don't need to chroot to install grub. Just run grub directory from the livecd. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GRUB problem
Thanks a lot your tips worked perfect my linux system is up and running again and grub is fine. Take care and thanks again. - Original Message - From: Josh [EMAIL PROTECTED] Date: Monday, February 27, 2006 11:06 pm Subject: Re: GRUB problem simply follow the chapter 8 instructions on making grub install itself back into the MBR I type in root(hd0,0) and it replys: Error 21: Selected disk does not exist So I just type in root to find out what does exist and it replys: (fd0): Filesystem type unknown, partition type 0x0 if i'm wrong, someone more knowledgeable than me please correct me. it sounds like you still need to load your devices, what was the command? udevstart, i think. also, as long as you point grub to the correct places, you should be able to install grub regardless of whether you'veran chroot. but for the disk does not exist issue, that sounds like you just forgot to populate /dev. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GRUB problem
On 2/27/06, Ellis Wilson [EMAIL PROTECTED] wrote: Hey all, Finally finished my shiny new linux system, ran great, then went and wanted to install Win2Kpro on the third partition on my harddisk (1st is LFS, 2nd swap, 3rd Win2k). Yes, thanks to Microsoft for assuming that everyone wants their bootloader. In all the dual-boot docs I've ever read, they always say install Windows first for this very reason. Incidentally, a few weeks back I was installing FC4 as a test host, and found that it was pretty difficult to disable it from installing their GRUB. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: grub problem: LFS (v6.1.1) Sec 6.45 and 8.4
David J. Hong wrote: I successfully installed grub in section 6.45 and run grub shell in section 8.4, following error appears: grub root (hd0,7) Error 21: Selected disk does not exist snip When you are entering the grub shell in section 8.4 have you made sure that you have re-entered your chroot environment correctly and made sure that your /dev /proc /sys are mounted and that you have populated the /dev (in chroot) by running udevstart? This is normally what catches me out :-) Al -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page