Re: putting d-i on the CD = 2 d-i kernels
maybeway36 wrote: In the current version of live-helper it seems that when you use live-installer on the CD, the same kernel is put in /installer and /installer/gtk. The initrds are different, but the kernels the same, so removing one could save ~1.3MB of space. I've implemented this is my local git tree, but I haven't tested it yet due to a lack of a local mirror (I just moved). Thanks for the suggestion! Regards, -- Chris Lamb, UK [EMAIL PROTECTED] GPG: 0x634F9A20 signature.asc Description: PGP signature ___ debian-live-devel mailing list debian-live-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel
Re: How to specify the binary.img size ?
On Tue, 29 Jul 2008 12:00:24 +0100 Chris Lamb [EMAIL PROTECTED] wrote: (I'm confused about a few things here; why do you need it to be a fixed size? Also, why do you need it to be 1G?) The binary.img already contains partitioning information; you just need to dd it directly onto the target rather than fitting it on an existing peratition. The problem is that will write a short partition table to the key. It would be nice to automatically fix up the partition table after copying to free up the extra space (or else operate on the key directly, copying the live partition over and setting up the partition table with the correct geometry to begin with). This extra space is useful for other things, e.g. persistence. Ben -- ,-. nSLUGhttp://www.nslug.ns.ca [EMAIL PROTECTED] \`' Debian http://www.debian.org[EMAIL PROTECTED] ` [ gpg 395C F3A4 35D3 D247 1387 2D9E 5A94 F3CA 0B27 13C8 ] [ pgp 7F DA 09 4B BA 2C 0D E0 1B B1 31 ED C6 A9 39 4F ] ___ debian-live-devel mailing list debian-live-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel
Re: How to specify the binary.img size ?
Hi I would like to have a fat32 partition for the datas (when I have to work on friends w$ computers) method 1 (2 partitions) - better w$ only mount the first partition So sdb1 - data sdb2 - live how to restore binary.ing to sdb2 ? I can keep free space after the first partition. method 2 (1big partition) restore binary.img (400Mb) to the whole space (8Gb) Because the live partition is fat32. dd creates a partition with the same size of binary.img. Nobody needed to use his stick like this ? Thanks David. Ben Armstrong wrote: On Tue, 29 Jul 2008 12:00:24 +0100 Chris Lamb [EMAIL PROTECTED] wrote: (I'm confused about a few things here; why do you need it to be a fixed size? Also, why do you need it to be 1G?) The binary.img already contains partitioning information; you just need to dd it directly onto the target rather than fitting it on an existing peratition. The problem is that will write a short partition table to the key. It would be nice to automatically fix up the partition table after copying to free up the extra space (or else operate on the key directly, copying the live partition over and setting up the partition table with the correct geometry to begin with). This extra space is useful for other things, e.g. persistence. Ben -- ,-. nSLUGhttp://www.nslug.ns.ca [EMAIL PROTECTED] \`' Debian http://www.debian.org[EMAIL PROTECTED] ` [ gpg 395C F3A4 35D3 D247 1387 2D9E 5A94 F3CA 0B27 13C8 ] [ pgp 7F DA 09 4B BA 2C 0D E0 1B B1 31 ED C6 A9 39 4F ] ___ debian-live-devel mailing list debian-live-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel -- Web site : http://david.hautbois.free.fr Tablet users map : http://david.hautbois.free.fr/maps/index.php ___ debian-live-devel mailing list debian-live-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel
Re: How to specify the binary.img size ?
El Tuesday 29 July 2008 18:58:38 David Hautbois va escriure: Hi I would like to have a fat32 partition for the datas (when I have to work on friends w$ computers) Hello, Sometimes ago I wrote this tutorial, http://wiki.debian.org/DebianLive/Howto/Custom_Install look also: http://wiki.debian.org/DebianLive/Howto/USB $ mkdir test $ sudo mount -o loop,offset=512 debian-live-40r0-rc1-i386-gnome-USB.img test $ ls test/ Regards, Jordi Pujol ___ debian-live-devel mailing list debian-live-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel
Re: How to specify the binary.img size ?
David Hautbois wrote: (Please don't CC me, I am subscribed to the list) method 1 (2 partitions) - better w$ only mount the first partition So sdb1 - data sdb2 - live I'm not sure this is possible with syslinux, and might involve chainloading two syslinux instances. (What is w$?) method 2 (1big partition) restore binary.img (400Mb) to the whole space (8Gb) dd creates a partition with the same size of binary.img. There are at least two ways of doing this: * Modify lh_binary_usb-hdd and override ${REAL_DIM} before dd is called to be the size of the target disk. The units are in multiples of 1024k. A patch that turned this into a real LH_ config variable (which defaulted to autodetected or something) would be interesting to see. * Create the partition, mount the binary.img loopback and copy the contents to the partition. Make sure the partition is bootable and lba is off. Then run: cat /usr/lib/syslinux/mbr.bin /dev/XXX where XXX is the name of the raw block device (minus any partition numbers). Regards, -- Chris Lamb, UK [EMAIL PROTECTED] GPG: 0x634F9A20 signature.asc Description: PGP signature ___ debian-live-devel mailing list debian-live-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel
Re: wrong package list
[EMAIL PROTECTED] wrote: I am using version 1.0~a48-1 of live-helper with a personalized list of packages in /usr/share/live-helper/lists/. It works well unless I put a wrong package name in the file. In this case, all the process stops with the message like NO BINARY FILE FOUND, but I can't see the wrong package name in the errors. The only solution I found is to try and try untill I find the guilty package and this cost a lot of time. Is there a better way to fix a wrong package list ? Firstly, using aptitude in LH_APT will mean that missing packages does not result in a broken build. This might result in strange behaviour however - for example, when Xfce was broken in Debian, building an xfce image with LH_APT=aptitude resulted in a GNOME image. To fix your package list, we can use the fact that live-helper builds up a list of packages to install in file chroot/root/chroot_packages before installing them. Edit your lh_chroot_install-packages and add a call to Breakpoint ${0} before the packages are installed and then start a new build. When the build says Waiting at.., start a new terminal and view the chroot/root/chroot_packages file - you could probably script the checking with: for PKG in $(cat chroot/root/chroot-packages) do if ! apt-cache show ${PKG} /dev/null 21 then echo W: Package ${PKG} does not exist fi done This assumes you are running the same distribution as your target distribution. Good luck :) Regards, -- Chris Lamb, UK Thank you for your precise answer. I just found an another way: aptitude --simulate install `cat my_liste_of_packages` Thanks again. Jean-Louis ___ debian-live-devel mailing list debian-live-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel
Re: How to specify the binary.img size ?
I found the tip here : http://pierrebauduin.blogspot.com/2008/03/plus-loin-dans-debian-live-sur-une-clef.html Translation (with my so bad english): # with fdisk, note the count of cylinder of /dev/sdb1 # create /dev/sdb2 type 0x83 with the same count of cylinders at the end of the free space # save the partition table # Copy the partition : dd if=/dev/sdb1 of=/dev/sdb2 # remove sdb1 # with cfdisk create again the first partition /dev/sdb1 de type 0x0b (FAT32) usinf the whole free space # enable the bootable flag for /dev/sdb2 # save and quit # format the first partition: mkfs.vfat -F 32 -n DOCUMENTS /dev/sdb1 Now the first partition (data) can be written with : windows (w$ :-) ) linux debian live I've override ${REAL_DIM} So I can add or remove packages, the image size should be always the same. (I'm working on this) So, I hope to update my usb stick without erasing all the partitions David. Chris Lamb wrote: David Hautbois wrote: (Please don't CC me, I am subscribed to the list) method 1 (2 partitions) - better w$ only mount the first partition So sdb1 - data sdb2 - live I'm not sure this is possible with syslinux, and might involve chainloading two syslinux instances. (What is w$?) method 2 (1big partition) restore binary.img (400Mb) to the whole space (8Gb) dd creates a partition with the same size of binary.img. There are at least two ways of doing this: * Modify lh_binary_usb-hdd and override ${REAL_DIM} before dd is called to be the size of the target disk. The units are in multiples of 1024k. A patch that turned this into a real LH_ config variable (which defaulted to autodetected or something) would be interesting to see. * Create the partition, mount the binary.img loopback and copy the contents to the partition. Make sure the partition is bootable and lba is off. Then run: cat /usr/lib/syslinux/mbr.bin /dev/XXX where XXX is the name of the raw block device (minus any partition numbers). Regards, ___ debian-live-devel mailing list debian-live-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel -- Web site : http://david.hautbois.free.fr Tablet users map : http://david.hautbois.free.fr/maps/index.php ___ debian-live-devel mailing list debian-live-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel