Re: booting LFS from usb-external disk
Dr. Edgar Alwers schrieb: Hi, I am trying to boot my ( perfect working) blfs-system, which I copied to an external disk, also from this disk. My kernel is 2.6.23.1, the bios recognises the usb-disk and is prepared to boot. My problem: I copied menu.lst and stage1 and stage2 to the boot partition /dev/sda5. When I call grub (sd0,4) with the help of a rescue cd, in order to put a MBR on the external disk, I get a parsing error. What is wrong ? Thank you very much in advance Edgar Hi Edgar, calling grub with a disk option is not the right way, i hope it was a typo. In grub, every disk is a HD, therefore is your disk a hd0. The correct command sequence for sda5 (hd0,4) is: # sh grub # grub root (hd0,4) # grub setup (hd0,4) # grub quit ... # sh reboot # and enjoy Heinrich -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: How to use blfs-tool and BLFS
TheOldFellow schrieb: On Sun, 25 Nov 2007 02:01:02 +0100 Heinrich Tomanek [EMAIL PROTECTED] wrote: Hi all, my 1st LFS using jhalfs (LFS 6.3 / LiveCD r2130) is working fine. Now I trying to do the next step: using blf-tools and BLFS. But I think, I did not understand the idea behind these tools. To build LFS with blfs-tool support seems not enough. After reboot, installing of BLFS packages fails because some system tools like sudo etc. are not installed. Have I to install needed tool manually? Before reboot? Should I build BLFS packages before reboot, directly after building LFS? What is the right path? Thanks a lot. Heinrich Bearing in mind that the whole idea behind LFS is to educate people in building and using Linux, it's a pity that the documentation for the jhalfs tool, like nalfs before it, is so poor. However the lead developer's first language is not English, so he can be forgiven (and even the original developer was American ;-). You'll need to look at the actual scripts to understand how they work Heinrich. Then, once you've worked it all out, write us a jhalfs howto :-) As Randy says, they are not newbie tools. But as I once said to my programmers: a program without user documentation is not a program at all. But I was paying them, and no one pays the jhalfs team! BLFS is a 'dip in and build the bits you want' book, the blfs-tool is more a: dependency management tool with a package builder on the back, than a blfs automated machine. Its job is to examine the blfs book and build a set of scripts to build the dependencies of the target as well as the target itself. You then have to edit the scripts to make something useful. It isn't an automated build system, like, say, portage. Best of luck, R. The documentation is really poor, but it seems to be enough. I tried the whole procedure from scratch :) and … it works. Now, using LFS + jhalfs, BLFS with blfs_tool and my own tools, I am able to build a completely new system in 2 to 4 hours, depending on how much time I spend to the kernel configuration and how many BLFS packages should be compiled. The procedure is not fully automated, but it is what I am looking for – a defined bundle of commands. I will try to write down my results later. Many thanks to everyone, especially to the xLFS Team for the great job Heinrich -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: booting LFS from usb-external disk
Dr. Edgar Alwers schrieb: Hi, I am trying to boot my ( perfect working) blfs-system, which I copied to an external disk, also from this disk. My kernel is 2.6.23.1, the bios recognises the usb-disk and is prepared to boot. My problem: I copied menu.lst and stage1 and stage2 to the boot partition /dev/sda5. When I call grub (sd0,4) with the help of a rescue cd, in order to put a MBR on the external disk, I get a parsing error. What is wrong ? Thank you very much in advance Edgar Hi Edgar, calling grub with a disk option is not the right way, i hope it was a typo. In grub, every disk is a HD, therefore is your disk a hd0. The correct command sequence for sda5 (hd0,4) is: # sh grub # grub root (hd0,4) # grub setup (hd0,4) # grub quit ... # sh reboot # and enjoy Before doing that, be sure to check hd0 isn't your main HD, by writing root(hd and pressing tab twice.. Lauri -- ___ Surf the Web in a faster, safer and easier way: Download Opera 9 at http://www.opera.com Powered by Outblaze -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: booting LFS from usb-external disk
On Tuesday 27 November 2007 09:39, Heinrich Tomanek wrote: calling grub with a disk option is not the right way, i hope it was a typo. In grub, every disk is a HD, therefore is your disk a hd0. Not at all a typo. Lack of knowledge ! The correct command sequence for sda5 (hd0,4) is: # sh grub # grub root (hd0,4) # grub setup (hd0,4) # grub quit ... # sh reboot # and enjoy Well, this for sure will install in the main /dev/hda5, which I can not hide during this process. The point is, I am trying to install really to /dev/sda5, which should be something like grub root ( sda0,4). Any way to perform this ? Thank you very much for the help, as well as to Lauri's comment. Regards, Edgar -- - Dr.-Ing. Edgar Alwers Weinheim -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: booting LFS from usb-external disk
On Nov 27, 2007 1:29 PM, Dr. Edgar Alwers [EMAIL PROTECTED] wrote: On Tuesday 27 November 2007 09:39, Heinrich Tomanek wrote: calling grub with a disk option is not the right way, i hope it was a typo. In grub, every disk is a HD, therefore is your disk a hd0. Not at all a typo. Lack of knowledge ! The correct command sequence for sda5 (hd0,4) is: # sh grub # grub root (hd0,4) # grub setup (hd0,4) # grub quit ... # sh reboot # and enjoy Well, this for sure will install in the main /dev/hda5, which I can not hide during this process. The point is, I am trying to install really to /dev/sda5, which should be something like grub root ( sda0,4). Any way to perform this ? Thank you very much for the help, as well as to Lauri's comment. Look in /boot/grub/device.map to see how grub interprets your drives. If it doesn't exist yet, run this command: echo quit | grub --batch --device-map=/boot/grub/device.map -- Dan -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page