lfs 6.4 live on usb flash
Hi I could install lfs-6.4 on my laptop and I'm really happy about my new lfs. Now I would like to put it on my USB-Flash drive. I checked on lfs and was googeling but could not find a really satisfiying answer. I'd like to have a very small (max. 500Mb) lfs distro on my usb and it should be as lfs-live. Any help? Rodolfo -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lfs 6.4 live on usb flash
On Wed, Sep 23, 2009 at 1:47 PM, Rodolfo Perez r-...@gmx.net wrote: I could install lfs-6.4 on my laptop and I'm really happy about my new lfs. Now I would like to put it on my USB-Flash drive. I checked on lfs and was googeling but could not find a really satisfiying answer. Good. Now, put LFS 6.5 on your system. Then, you are happy , ow. As for the second part, I don't know. Try Googling it. William -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lfs 6.4 live on usb flash
On Wed, Sep 23, 2009 at 1:54 PM, William Immendorf will.immend...@gmail.com wrote: Good. Now, put LFS 6.5 on your system. Then, you are happy , ow. I meant if you put LFS 6.5 on your system, you will be happy. William -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lfs 6.4 live on usb flash
Rodolfo Perez wrote: I could install lfs-6.4 on my laptop and I'm really happy about my new lfs. Now I would like to put it on my USB-Flash drive. I checked on lfs and was googeling but could not find a really satisfiying answer. I'd like to have a very small (max. 500Mb) lfs distro on my usb and it should be as lfs-live. Most systems recognize usb drives as just another drive. There is no reason why you can't set it up just like any other drive. There are only a couple of issues. First, the kernel must be able to support any devices on the system that you want to use. Second the system BIOS should be able to recognize and boot from the usb drive, usually from a keyboard prompt. Third, you have to set up grub so that the MBR is on the USB drive. Getting the distro down to 500M shouldn't be too hard. There are a lot of things in /usr/share that can be deleted. Also be sure to strip all the executables properly. If you aren't going to compile, you can even remove gcc and several other programs. You can also remove any static libraries that have been installed. -- Bruce P.S. Please ignore William. Most, but not all, of his posts are to satisfy his own ego. He is not a member of the LFS team. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lfs 6.4 live on usb flash
William Immendorf wrote: On Wed, Sep 23, 2009 at 1:54 PM, William Immendorf will.immend...@gmail.com wrote: Good. Now, put LFS 6.5 on your system. Then, you are happy , ow. I meant if you put LFS 6.5 on your system, you will be happy. William haven't looked into livecd(although there was discussion) if you just want a quick transfer just: tar -pczf some_name.tar.gz bin boot etc home (and the rest of dirs) then unpack on the usb. as for the 500 mb that's depending on what you as the builder decides. keep in mind there probably is better ways of doing this. Justin P. Mattock -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lfs 6.4 live on usb flash
On Wed, Sep 23, 2009 at 2:24 PM, Bruce Dubbs bruce.du...@gmail.com wrote: P.S. Please ignore William. Most, but not all, of his posts are to satisfy his own ego. He is not a member of the LFS team. That's called a insult, and you'll be sorry for that. All I was doing is trying to help them. William -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lfs 6.4 live on usb flash
Thanks for the VERY quick reply that is really a excellent support !!! Well, sorry I'm not really an expert in creating my own distro I have a USB stick with different distros (Puppy, dreamlinux) and they come with only a few files (vmlinuz, ...xx.img etc) I can boot this distro from my USB-Stick, so that works fine. So I would love to have my lfs on the USB-Stick in a few files too. Not to install it, just like the others as a live-distro... but I'dont know where to start: After all: How do I do a .img file of my lfs? Thanks anyway Rodolfo On Wed, 2009-09-23 at 14:24 -0500, Bruce Dubbs wrote: Rodolfo Perez wrote: I could install lfs-6.4 on my laptop and I'm really happy about my new lfs. Now I would like to put it on my USB-Flash drive. I checked on lfs and was googeling but could not find a really satisfiying answer. I'd like to have a very small (max. 500Mb) lfs distro on my usb and it should be as lfs-live. Most systems recognize usb drives as just another drive. There is no reason why you can't set it up just like any other drive. There are only a couple of issues. First, the kernel must be able to support any devices on the system that you want to use. Second the system BIOS should be able to recognize and boot from the usb drive, usually from a keyboard prompt. Third, you have to set up grub so that the MBR is on the USB drive. Getting the distro down to 500M shouldn't be too hard. There are a lot of things in /usr/share that can be deleted. Also be sure to strip all the executables properly. If you aren't going to compile, you can even remove gcc and several other programs. You can also remove any static libraries that have been installed. -- Bruce P.S. Please ignore William. Most, but not all, of his posts are to satisfy his own ego. He is not a member of the LFS team. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lfs 6.4 live on usb flash
Rodolfo Perez wrote: Thanks for the VERY quick reply that is really a excellent support !!! Well, sorry I'm not really an expert in creating my own distro I have a USB stick with different distros (Puppy, dreamlinux) and they come with only a few files (vmlinuz, ...xx.img etc) I can boot this distro from my USB-Stick, so that works fine. So I would love to have my lfs on the USB-Stick in a few files too. Not to install it, just like the others as a live-distro... but I'dont know where to start: After all: How do I do a .img file of my lfs? Just use fdisk to partition the usb-stick, mkfs the new partition, and cp -a the files from the hard disk to the new partition. Then it's just a matter of setting up grub. You may need to change fstab, and the network parameters for the new setup. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lfs 6.4 live on usb flash
Am Mittwoch, 23. September 2009 21:31 schrieb William Immendorf: On Wed, Sep 23, 2009 at 2:24 PM, Bruce Dubbs bruce.du...@gmail.com wrote: P.S. Please ignore William. Most, but not all, of his posts are to satisfy his own ego. He is not a member of the LFS team. That's called a insult, and you'll be sorry for that. All I was doing is trying to help them. William Would you please take note of my insult too? I do promise, i'll never in my life br sorry of that. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lfs 6.4 live on usb flash
Rodolfo Perez wrote: Hi I could install lfs-6.4 on my laptop and I'm really happy about my new lfs. Now I would like to put it on my USB-Flash drive. I checked on lfs and was googeling but could not find a really satisfiying answer. I'd like to have a very small (max. 500Mb) lfs distro on my usb and it should be as lfs-live. Any help? Rodolfo I have just completed installing my LFS-6.5 (newly built) to a USB drive. What follows is how I was successful to make a bootable LFS USB drive.. I suggest you complete what Bruce suggests then: Try this 1. prepare the USB drive by partitioning and formatting, I chose ext2 file system. 2. mount the USB drive, example: /mnt/usb 3. copy LFS from the hard drive to the USB drive use a live CD or another install of linux, do not try to copy the LFS system if you are running it as /dev/ will give you trouble rsync -var source-LFS-location/* USB mount point or cp -var source-LFS-location/* USB mount point example: rsync -var /mnt/lfs/* /mnt/usb or cp -var /mnt/lfs/* /mnt/usb 4. Install grub. create menu.lst something like this and copy to /boot/grub/ # Config file for GRUB - The GNU GRand Unified Bootloader # /boot/grub/menu.lst timeout 5 default 0 color light-blue/black light-cyan/blue title LFS 6.5 - USB root (hd0,0) kernel /boot/lfskernel-2.6.30.2 root=/dev/disk/by-uuid/03e82132-a199-4601-a20e-106c444a2c5a ro quite # EOF The root (hd0,0) is correct, the USB drive will be hd0,0 at boot (you may have to change the last 0) if you copied LFS to a partition other than 1 (the first) The kernel line should use the disk-by uuid...keeps one sane :) to find the uuid type at a CLI (terminal) blkid /dev/sdx - where sdx is the USB device example from my install: blkid /dev/sdd1 /dev/sdd1: UUID=03e82132-a199-4601-a20e-106c444a2c5a TYPE=ext2 Now at a root CLI prompt grub root (hdx,x) setup (hdx) The root line will vary according to the USB device is /dev/sdd1 is root (hd3,0), setup (hd3) 5.Fixup /etc/fstab example: # Begin /etc/fstab # file system mount-point type optionsdump fsck # order /dev/disk/by-uuid/03e82132-a199-4601-a20e-106c444a2c5a / ext2 defaults 1 1 #/dev/xxx swap swap pri=1 0 0 proc /procproc defaults 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 # End /etc/fstab Again use disk/by-uuid with the uuid from the previous step Reboot to the USB drive. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
LFS 6.4 man-db-2.5.2 make problems.
I can't get the make to work on this package. I get errors. I can do a make on the host system but not under the LFS enviornment. Below are the errrors. man.c: In function 'make_roff_command': man.c:1446: error: 'TROFF' undeclared (first use in this function) man.c:1446: error: (Each undeclared identifier is reported only once man.c:1446: error: for each function it appears in.) man.c:1449: error: 'NROFF' undeclared (first use in this function) man.c:1488: error: 'gxditview' undeclared (first use in this function) man.c: In function 'format_display': man.c:1950: warning: unused variable 'htmlfile' man.c:1950: warning: unused variable 'htmldir' man.c:1949: warning: unused variable 'old_cwd' man.c:1946: warning: unused parameter 'man_file' man.c: At top level: security.h:29: warning: inline function 'regain_effective_privs' declared but never defined security.h:28: warning: inline function 'drop_effective_privs' declared but never defined ../libdb/db_storage.h:91: warning: inline function 'infoalloc' declared but never defined ../libdb/db_storage.h:89: warning: inline function 'gripe_corrupt_data' declared but never defined ../libdb/db_storage.h:88: warning: inline function 'gripe_lock' declared but never defined ../libdb/db_storage.h:76: warning: inline function 'dblookup_exact' declared but never defined ../libdb/db_storage.h:73: warning: inline function 'dblookup_all' declared but never defined ../libdb/mydbm.h:143: warning: inline function 'btree_nextkeydata' declared but never defined ../libdb/mydbm.h:142: warning: inline function 'btree_replace' declared but never defined ../libdb/mydbm.h:141: warning: inline function 'btree_nextkey' declared but never defined ../libdb/mydbm.h:140: warning: inline function 'btree_firstkey' declared but never defined ../libdb/mydbm.h:138: warning: inline function 'btree_fetch' declared but never defined ../libdb/mydbm.h:137: warning: inline function 'btree_exists' declared but never defined ../libdb/mydbm.h:136: warning: inline function 'btree_close' declared but never defined make[2]: *** [man.o] Error 1 make[2]: Leaving directory `/sources/man-db-2.5.2/src' make[1]: *** [all-recursive] Error 1 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lfs 6.4 live on usb flash
William Immendorf wrote: On Wed, Sep 23, 2009 at 2:24 PM, Bruce Dubbs bruce.du...@gmail.com wrote: P.S. Please ignore William. Most, but not all, of his posts are to satisfy his own ego. He is not a member of the LFS team. That's called a insult, and you'll be sorry for that. All I was doing is trying to help them. What you wrote sounds like a threat, which is usually considered worse than an insult. Usually, insults are just that, while threats may be crimes. I'd like to have a little more congenial atmosphere. Could we all please keep personal comments off the list? 'Preciate it. Mike -- 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