Re: Problems with Grub
Hi all, probably you know that my GRUB problem was RESOLVED. Your suggestions were very important. I hope I'm not becoming tedious, but, while running along BLFS avenue, I encountered a big problem: I don't succeed in installing GPM-1.20.1. I followed LFS-Book-6.8 and now BLFS-Book-6.3. I always get the errors here reported: make[1]: Leaving directory `/home/giocitta/BLFS-Sources/gpm-1.20.1/src' make[1]: Entering directory `/home/giocitta/BLFS-Sources/gpm-1.20.1/src' gcc -I/home/giocitta/BLFS-Sources/gpm-1.20.1/src -DHAVE_CONFIG_H -include headers/config.h -Wall -DSYSCONFDIR=\/etc\ -DSBINDIR=\/usr/sbin\ -g -O2 $ gpm.c: In function ‘getMouseData’: gpm.c:335:16: warning: pointer targets in initialization differ in signedness gpm.c:354:10: warning: pointer targets in return differ in signedness gpm.c:385:4: warning: pointer targets in return differ in signedness gpm.c: In function ‘processMouse’: gpm.c:437:13: warning: pointer targets in passing argument 2 of ‘which_mouse-m_type-fun’ differ in signedness gpm.c:437:13: note: expected ‘unsigned char *’ but argument is of type ‘char *’ gpm.c: In function ‘processConn’: gpm.c:813:20: error: storage size of ‘sucred’ isn’t known gpm.c:814:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct ucred’ gpm.c:813:20: warning: unused variable ‘sucred’ gpm.c: In function ‘old_main’: gpm.c:1077:16: warning: value computed is not used make[1]: *** [gpm.o] Errore 1 make[1]: Leaving directory `/home/giocitta/BLFS-Sources/gpm-1.20.1/src' make: *** [do-all] Errore 1 Obviously, I made a long search work through google and BLFS reports, but no one worked for me. I think there will be a specific patch, but I don't succeed in understanding where. Have you any suggestion about what to do? Without GPM it is very hard to work in an OS using only the commad line. Please, accept my best regards. giocitta 2011/8/17 Andrew Benton b3n...@gmail.com: On Wed, 17 Aug 2011 08:31:06 +0200 Giorgio Cittadini gioci...@gmail.com wrote: (5) But also if I manually modify grub.cfg introducing the new menuentry (and, obviously, I don't use grub-mkconfig), nothing changes. Then you are not modifying the grub.cfg that grub (the one on the MBR) is using. You have several different distros installed, which grub.cfg is the one being used by grub (the one on the MBR)? Andy -- 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: Problems with Grub
On Thu, Aug 18, 2011 at 2:51 AM, Giorgio Cittadini gioci...@gmail.com wrote: I hope I'm not becoming tedious, but, while running along BLFS avenue, I encountered a big problem: I don't succeed in installing GPM-1.20.1. I followed LFS-Book-6.8 and now BLFS-Book-6.3. I always get the errors here reported: Please make sure you reply at the bottom, not at the top. Anyway, to make it very clear, DO NOT USE BLFS 6.3 WITH ANY LFS OTHER THAN 6.3. It's not recommended, and you are much, much better off using BLFS SVN with LFS 6.8. Yes, it's incomplete, but it's all we've got that's as up to date as that. -- William Immendorf The ultimate in free computing. Messages in plain text, please, no HTML. GPG key ID: 1697BE98 If it's not signed, it's not from me. -- Every nonfree program has a lord, a master -- and if you use the program, he is your master. Richard Stallman -- Are you a Gmail user? Please read this important notice: http://www.fsf.org/campaigns/jstrap/gmail?31450. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems with Grub
Thanks for your suggestion. I'll try in the next days and I'll keep you informed about the hoped success. Giorgio Cittadini 2011/8/18 William Immendorf will.immend...@gmail.com: On Thu, Aug 18, 2011 at 2:51 AM, Giorgio Cittadini gioci...@gmail.com wrote: I hope I'm not becoming tedious, but, while running along BLFS avenue, I encountered a big problem: I don't succeed in installing GPM-1.20.1. I followed LFS-Book-6.8 and now BLFS-Book-6.3. I always get the errors here reported: Please make sure you reply at the bottom, not at the top. Anyway, to make it very clear, DO NOT USE BLFS 6.3 WITH ANY LFS OTHER THAN 6.3. It's not recommended, and you are much, much better off using BLFS SVN with LFS 6.8. Yes, it's incomplete, but it's all we've got that's as up to date as that. -- William Immendorf The ultimate in free computing. Messages in plain text, please, no HTML. GPG key ID: 1697BE98 If it's not signed, it's not from me. -- Every nonfree program has a lord, a master -- and if you use the program, he is your master. Richard Stallman -- Are you a Gmail user? Please read this important notice: http://www.fsf.org/campaigns/jstrap/gmail?31450. -- 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: Problems with Grub
RESOLVED!!! The suggestion to use BLFS SVN as a progressive complement to LFS-6.8 has been successfull, at least as regards GPM 1.20.6, that could be installed without any patch (and actually works well). Thanks again. Giorgio Cittadini 2011/8/18 Giorgio Cittadini gioci...@gmail.com: Thanks for your suggestion. I'll try in the next days and I'll keep you informed about the hoped success. Giorgio Cittadini 2011/8/18 William Immendorf will.immend...@gmail.com: On Thu, Aug 18, 2011 at 2:51 AM, Giorgio Cittadini gioci...@gmail.com wrote: I hope I'm not becoming tedious, but, while running along BLFS avenue, I encountered a big problem: I don't succeed in installing GPM-1.20.1. I followed LFS-Book-6.8 and now BLFS-Book-6.3. I always get the errors here reported: Please make sure you reply at the bottom, not at the top. Anyway, to make it very clear, DO NOT USE BLFS 6.3 WITH ANY LFS OTHER THAN 6.3. It's not recommended, and you are much, much better off using BLFS SVN with LFS 6.8. Yes, it's incomplete, but it's all we've got that's as up to date as that. -- William Immendorf The ultimate in free computing. Messages in plain text, please, no HTML. GPG key ID: 1697BE98 If it's not signed, it's not from me. -- Every nonfree program has a lord, a master -- and if you use the program, he is your master. Richard Stallman -- Are you a Gmail user? Please read this important notice: http://www.fsf.org/campaigns/jstrap/gmail?31450. -- 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: Problems with Grub
To the attention of Andy and Mac (with many thanks for having considered my problem). This is how the things go. I installed LFS-6.8 on a notebook HP Pavilion dv6215ea with i386 dual core CPU. My situation at the moment is the following: (1) 500 GB HD partitioned so to have Windows 7 (reserved) in the first partition, Windows 7 (OS) in the second, LFS in the third, Ubuntu 11.4 in the fifth, ArchLinux in the sixth, and one 2 GB swap in the seventh; (2) ArchLinux and Ubuntu do have grub2 perfectly recognizing every OS I put in the HD, so that I can easily use the grub2 that, at the moment, is installed on the MBR, to boot also LFS; (3) On the contrary, LFS doesn't succeed to read any OS but itself; (4) According to your suggestions I added to /usr/etc/grub.d/40_custom the menuentry for Windows 7, but it is not recognized because I haven't any /usr/etc/default/grub file that grub-mkconfig requests to act on /usr/etc/grub.d/ files to generate /boot/grub/grub.cfg. This is the problem! (5) But also if I manually modify grub.cfg introducing the new menuentry (and, obviously, I don't use grub-mkconfig), nothing changes. Could there be a bug in the tarball of grub? I don't think it possible, since the other OSs do use grub2 successfully (one in the 1.98, the other in the 1.99 version). So I think I have mistaken some passage during LFS building. That is all. Again many thanks for your courtesy, kindness and tolerance towards a newbie. I do appreciate very much. giocitta 2011/8/17 Andrew Benton b3n...@gmail.com: On Tue, 16 Aug 2011 12:46:46 -0500 Mike McCarty mike.mcca...@sbcglobal.net wrote: Andrew Benton wrote: You don't need to reinstall grub. If it's working Ok and you can boot into LFS then just edit grub.cfg to make an entry for windows, something like this: menuentry Windows { set root=(hd0,1) chainloader +1 } Back when I was making a dual boot system, this didn't work for me. I had a machine which wanted the Windows Boot Manager to be in control of boot. Fortunately, the Windows Boot Manager is actually a reasonable piece of software, and I was able to configure it to load GRUB for me. What you suggest may work in most circumstances, and it's the solution I usually see, but it is not a universal solution. I didn't suggest it was a universal solution. Windows XP likes to be on the first partition of the first disk. On this computer I've set the BIOS with my linux disk as the first disk and Windows XP on the second disk. So to make windows think it's on the first disk I have to make grub lie to it ans tell windows that it's on the first disk so the windows entry in my grub.cfg looks like this: menuentry Windows XP { set root=(hd1,1) drivemap -s (hd0) ${root} chainloader +1 } However the original poster said he was using windows 7 which can be installed on any partition which is why I didn't put this in my original reply. Andy -- 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: Problems with Grub
RESOLVED!!! The error was that I wrote the new menuentries in grub.cfg under the voice ###BEGIN /usr/etc/grub.d/40_custom, while it was necessary to write them under the voice ###BEGIN /usr/etc/grub.d/10_linux. This recognized it was very easy to get a multiboot LFS | ArchLinux | Ubuntu-Plus-7 | Windows 7 choice. I understand that under LFS no role must be given to grub-mkconfig and /usr/etc/grub.d files: it's better to forget their existence and manually editing grub.cfg (saving it with wq!). I'm very happy and now I can begin BLFS. Again many thanks to all you. Giorgio Cittadini, aka giocitta 2011/8/17 Giorgio Cittadini gioci...@gmail.com: To the attention of Andy and Mac (with many thanks for having considered my problem). This is how the things go. I installed LFS-6.8 on a notebook HP Pavilion dv6215ea with i386 dual core CPU. My situation at the moment is the following: (1) 500 GB HD partitioned so to have Windows 7 (reserved) in the first partition, Windows 7 (OS) in the second, LFS in the third, Ubuntu 11.4 in the fifth, ArchLinux in the sixth, and one 2 GB swap in the seventh; (2) ArchLinux and Ubuntu do have grub2 perfectly recognizing every OS I put in the HD, so that I can easily use the grub2 that, at the moment, is installed on the MBR, to boot also LFS; (3) On the contrary, LFS doesn't succeed to read any OS but itself; (4) According to your suggestions I added to /usr/etc/grub.d/40_custom the menuentry for Windows 7, but it is not recognized because I haven't any /usr/etc/default/grub file that grub-mkconfig requests to act on /usr/etc/grub.d/ files to generate /boot/grub/grub.cfg. This is the problem! (5) But also if I manually modify grub.cfg introducing the new menuentry (and, obviously, I don't use grub-mkconfig), nothing changes. Could there be a bug in the tarball of grub? I don't think it possible, since the other OSs do use grub2 successfully (one in the 1.98, the other in the 1.99 version). So I think I have mistaken some passage during LFS building. That is all. Again many thanks for your courtesy, kindness and tolerance towards a newbie. I do appreciate very much. giocitta 2011/8/17 Andrew Benton b3n...@gmail.com: On Tue, 16 Aug 2011 12:46:46 -0500 Mike McCarty mike.mcca...@sbcglobal.net wrote: Andrew Benton wrote: You don't need to reinstall grub. If it's working Ok and you can boot into LFS then just edit grub.cfg to make an entry for windows, something like this: menuentry Windows { set root=(hd0,1) chainloader +1 } Back when I was making a dual boot system, this didn't work for me. I had a machine which wanted the Windows Boot Manager to be in control of boot. Fortunately, the Windows Boot Manager is actually a reasonable piece of software, and I was able to configure it to load GRUB for me. What you suggest may work in most circumstances, and it's the solution I usually see, but it is not a universal solution. I didn't suggest it was a universal solution. Windows XP likes to be on the first partition of the first disk. On this computer I've set the BIOS with my linux disk as the first disk and Windows XP on the second disk. So to make windows think it's on the first disk I have to make grub lie to it ans tell windows that it's on the first disk so the windows entry in my grub.cfg looks like this: menuentry Windows XP { set root=(hd1,1) drivemap -s (hd0) ${root} chainloader +1 } However the original poster said he was using windows 7 which can be installed on any partition which is why I didn't put this in my original reply. Andy -- 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: Problems with Grub
On Wed, 2011-08-17 at 08:31 +0200, Giorgio Cittadini wrote: Could there be a bug in the tarball of grub? I don't think it possible, since the other OSs do use grub2 successfully (one in the 1.98, the other in the 1.99 version). Not likely, since it's the same tarball that works fine for every other LFS user - more likely you've mistyped something in the install instruction (the /usr/etc bit suggests a missing configure option). If you haven't already, try rebuilding that package, checking the instructions carefully... Simon. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems with Grub
On Wed, 17 Aug 2011 08:31:06 +0200 Giorgio Cittadini gioci...@gmail.com wrote: (5) But also if I manually modify grub.cfg introducing the new menuentry (and, obviously, I don't use grub-mkconfig), nothing changes. Then you are not modifying the grub.cfg that grub (the one on the MBR) is using. You have several different distros installed, which grub.cfg is the one being used by grub (the one on the MBR)? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems with Grub
Giorgio Cittadini wrote: RESOLVED!!! Congratulations! And thanks for posting the fix. Mac -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems with Grub
On Tue, 16 Aug 2011 17:52:44 +0200 Giorgio Cittadini gioci...@gmail.com wrote: All is OK, but when I've booted the first time using Grub, I found only Linux 2.6.37-lfs-6.8 and its recovery mode. I tried to make recognizable the presence of Windows 7, but I got no success. When I control the structure of Grub directories and files, I see: (1) /boot/grub/grub.cfg is present and in the usual directory; (2) grub.d files are all in /usr/etc/ instead of /etc (their usual place in my other Linux distributions, but this probably is uninfluent); (3) the problem is that I don't have any /usr/etc/default/grub. If I introduce in /usr/etc/grub.d/40_custom the data on Windows 7, nothing changes: grub-mkconfig -o /boot/grub/grub.cfg finds always only linux-lfs. I created the /usr/etc/default dir, and the underlying grub file into which I manually introduced the usual configuration, but nothing changed. What to do? Could you suggest where I mistook? What to do now: remove (but how?) Grub and reinstall it? You don't need to reinstall grub. If it's working Ok and you can boot into LFS then just edit grub.cfg to make an entry for windows, something like this: menuentry Windows { set root=(hd0,1) chainloader +1 } (hd0,1) is the first partition on the first disk, /dev/sda1 on linux. If Windows is on the second hard disk change that to root=(hd1,1) Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems with Grub
Andrew Benton wrote: Giorgio gioci...@gmail.com wrote: [...] What to do? Could you suggest where I mistook? What to do now: remove (but how?) Grub and reinstall it? GRUB is not something to remove. If one no longer wants GRUB, then one simply overwrites it with something else. You don't need to reinstall grub. If it's working Ok and you can boot into LFS then just edit grub.cfg to make an entry for windows, something like this: menuentry Windows { set root=(hd0,1) chainloader +1 } Back when I was making a dual boot system, this didn't work for me. I had a machine which wanted the Windows Boot Manager to be in control of boot. Fortunately, the Windows Boot Manager is actually a reasonable piece of software, and I was able to configure it to load GRUB for me. What you suggest may work in most circumstances, and it's the solution I usually see, but it is not a universal solution. Mac -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems with Grub
On Tue, 16 Aug 2011 12:46:46 -0500 Mike McCarty mike.mcca...@sbcglobal.net wrote: Andrew Benton wrote: You don't need to reinstall grub. If it's working Ok and you can boot into LFS then just edit grub.cfg to make an entry for windows, something like this: menuentry Windows { set root=(hd0,1) chainloader +1 } Back when I was making a dual boot system, this didn't work for me. I had a machine which wanted the Windows Boot Manager to be in control of boot. Fortunately, the Windows Boot Manager is actually a reasonable piece of software, and I was able to configure it to load GRUB for me. What you suggest may work in most circumstances, and it's the solution I usually see, but it is not a universal solution. I didn't suggest it was a universal solution. Windows XP likes to be on the first partition of the first disk. On this computer I've set the BIOS with my linux disk as the first disk and Windows XP on the second disk. So to make windows think it's on the first disk I have to make grub lie to it ans tell windows that it's on the first disk so the windows entry in my grub.cfg looks like this: menuentry Windows XP { set root=(hd1,1) drivemap -s (hd0) ${root} chainloader +1 } However the original poster said he was using windows 7 which can be installed on any partition which is why I didn't put this in my original reply. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems with Grub
Andrew Benton wrote: On Tue, 16 Aug 2011 12:46:46 -0500 Mike McCarty mike.mcca...@sbcglobal.net wrote: Andrew Benton wrote: You don't need to reinstall grub. If it's working Ok and you can boot into LFS then just edit grub.cfg to make an entry for windows, something like this: menuentry Windows { set root=(hd0,1) chainloader +1 } Back when I was making a dual boot system, this didn't work for me. I had a machine which wanted the Windows Boot Manager to be in control of boot. Fortunately, the Windows Boot Manager is actually a reasonable piece of software, and I was able to configure it to load GRUB for me. What you suggest may work in most circumstances, and it's the solution I usually see, but it is not a universal solution. I didn't suggest it was a universal solution. Windows XP likes to be on No, no, I didn't mean to imply that you did. It was intended just to be a heads up that some computers don't like GRUB. Dell, Compaq, and some HP are like that, for example. The BIOS is Windows-Centric. the first partition of the first disk. On this computer I've set the This is also true, and something to watch for. Windows likes to be in charge. [...] However the original poster said he was using windows 7 which can be installed on any partition which is why I didn't put this in my original reply. Not what I was referring to. I was referring to machines which have a BIOS which doesn't like non-Windows boot loaders, and go into recovery mode when they don't detect the Windows Boot Manager. Mac -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page