binary-images hdd does not work
Hi everybody, I just tried building an hdd image, as explained on the manual : http://debian-live.alioth.debian.org/live-manual/stable/manual/html/live-manual.en.html#232 The script works, and at the end, I have no .img file. The end of the script gives: === 0+0 enregistrements lus 0+0 enregistrements écrits 0 octet (0 B) copié, 0,000541969 s, 0,0 kB/s !!! The following error/warning messages can be ignored !!! P: Mounting /dev/loop1 with offset 0 Warning: The resulting partition is not properly aligned for best performance. dd: impossible d'ouvrir « chroot/usr/lib/syslinux/mbr.bin »: Aucun fichier ou dossier de ce type P: Begin unmounting filesystems... P: Saving caches... Reading package lists... Done Building dependency tree Reading state information... Done === I am using Debian 8.4 and live-build 4.0.3-1. Thank you for the help -- ~~Jannik Laval~~ Enseignant-chercheur Responsable Pédagogique Licence Coordonnateur de Projet en Système d'Information IUT Lumière, Université Lyon Lumière laboratoire DISP http://www.jannik-laval.eu http://www.phratch.com http://www.approchealpes.info
Re: live-build to specific revision of wheezy
Hi All, Anything higher than 7.6 is not an option due to my customer requirements (red tape within banking institution) I really need an exact copy of an existing server using the bootstrap --copy option Each time I try to run it I get the following: debadmin@debtest1:~$ lb config --bootstrap copy --debian-installer true [2016-04-24 11:00:32] lb config --bootstrap copy --debian-installer true P: Creating config tree for a debian/wheezy/i386 system debadmin@debtest1:~$ lb build [2016-04-24 11:00:35] lb build [2016-04-24 11:00:35] lb bootstrap P: Setting up cleanup function [2016-04-24 11:00:35] lb bootstrap_cache restore P: Restoring bootstrap stage from cache... [2016-04-24 11:00:35] lb bootstrap_cdebootstrap [2016-04-24 11:00:35] lb bootstrap_debootstrap [2016-04-24 11:00:35] lb bootstrap_archive-keys /usr/lib/live/build/bootstrap_archive-keys: 31: /usr/lib/live/build/bootstrap_archive-keys: chroot: not found P: Begin unmounting filesystems... P: Saving caches... /usr/lib/live/build/bootstrap: 31: /usr/lib/live/build/bootstrap: chroot: not found Melanie Stewart melanie.stew...@gmail.com cell: 919.809.4277 On Wed, Apr 20, 2016 at 5:55 PM, Ozi Traveller wrote: > Hi Melanie > > I agree with Michal Suchanek answer. The repo for old stable (wheezy) will > contain all the latest packages, which is 7.10. > > I have some 7.6 iso's I can upload if that would help. > > Just curious, why you need to go back so far? > > Cheers > Ozi > > On Thu, Apr 21, 2016 at 2:10 AM, Melanie > wrote: > >> Hi All, >> >> I've been testing builds for days now and I cannot figure out the >> parameter or option to specify a specific revision of Debian to use as the >> base build. >> >> I need to build from Debian Wheezy Update 6 (7.6) - Is there a way to do >> this? >> >> I have also tried doing '--bootstrap copy' but it results in the chroot >> directory missing. >> >> I'm open to alternative suggestions as well to create the build, but it >> has to be 7.6 or a copy of my current running install. >> >> >> Thanks, >> >> Melanie >> > >
Re: live-build to specific revision of wheezy
Also - just to update - I tried as root and verified path is set, still getting chroot not found I can compensate for any valuable help provided - thanks root@debtest1:/home/debadmin/testISO# lb build [2016-04-24 11:27:44] lb build [2016-04-24 11:27:44] lb bootstrap P: Setting up cleanup function [2016-04-24 11:27:44] lb bootstrap_cache restore P: Restoring bootstrap stage from cache... [2016-04-24 11:27:44] lb bootstrap_cdebootstrap [2016-04-24 11:27:44] lb bootstrap_debootstrap [2016-04-24 11:27:44] lb bootstrap_archive-keys chroot: cannot change root directory to chroot: No such file or directory P: Begin unmounting filesystems... P: Saving caches... chroot: cannot change root directory to chroot: No such file or directory root@debtest1:/home/debadmin/testISO# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin root@debtest1:/home/debadmin/testISO# whereis chroot chroot: /usr/sbin/chroot /usr/share/man/man2/chroot.2.gz /usr/share/man/man8/chroot.8.gz root@debtest1:/home/debadmin/testISO# Melanie Stewart melanie.stew...@gmail.com cell: 919.809.4277 On Sun, Apr 24, 2016 at 11:03 AM, Melanie wrote: > Hi All, > > Anything higher than 7.6 is not an option due to my customer requirements > (red tape within banking institution) > > I really need an exact copy of an existing server using the bootstrap > --copy option > > Each time I try to run it I get the following: > > debadmin@debtest1:~$ lb config --bootstrap copy --debian-installer true > [2016-04-24 11:00:32] lb config --bootstrap copy --debian-installer true > P: Creating config tree for a debian/wheezy/i386 system > debadmin@debtest1:~$ lb build > [2016-04-24 11:00:35] lb build > [2016-04-24 11:00:35] lb bootstrap > P: Setting up cleanup function > [2016-04-24 11:00:35] lb bootstrap_cache restore > P: Restoring bootstrap stage from cache... > [2016-04-24 11:00:35] lb bootstrap_cdebootstrap > [2016-04-24 11:00:35] lb bootstrap_debootstrap > [2016-04-24 11:00:35] lb bootstrap_archive-keys > /usr/lib/live/build/bootstrap_archive-keys: 31: > /usr/lib/live/build/bootstrap_archive-keys: chroot: not found > P: Begin unmounting filesystems... > P: Saving caches... > /usr/lib/live/build/bootstrap: 31: /usr/lib/live/build/bootstrap: chroot: > not found > > > Melanie Stewart > melanie.stew...@gmail.com > cell: 919.809.4277 > > On Wed, Apr 20, 2016 at 5:55 PM, Ozi Traveller > wrote: > >> Hi Melanie >> >> I agree with Michal Suchanek answer. The repo for old stable (wheezy) >> will contain all the latest packages, which is 7.10. >> >> I have some 7.6 iso's I can upload if that would help. >> >> Just curious, why you need to go back so far? >> >> Cheers >> Ozi >> >> On Thu, Apr 21, 2016 at 2:10 AM, Melanie >> wrote: >> >>> Hi All, >>> >>> I've been testing builds for days now and I cannot figure out the >>> parameter or option to specify a specific revision of Debian to use as the >>> base build. >>> >>> I need to build from Debian Wheezy Update 6 (7.6) - Is there a way to do >>> this? >>> >>> I have also tried doing '--bootstrap copy' but it results in the chroot >>> directory missing. >>> >>> I'm open to alternative suggestions as well to create the build, but it >>> has to be 7.6 or a copy of my current running install. >>> >>> >>> Thanks, >>> >>> Melanie >>> >> >> >
Re: live-build to specific revision of wheezy
On 04/20/2016 09:10 AM, Melanie wrote: I've been testing builds for days now and I cannot figure out the parameter or option to specify a specific revision of Debian to use as the base build. I need to build from Debian Wheezy Update 6 (7.6) - Is there a way to do this? I have also tried doing '--bootstrap copy' but it results in the chroot directory missing. I'm open to alternative suggestions as well to create the build, but it has to be 7.6 or a copy of my current running install. How about downloading 7.6 installation media, installing without an update mirror (air-wall the machine just in case), installing the live-build suite, and doing a build? http://cdimage.debian.org/cdimage/archive/7.6.0/ On 04/24/2016 08:03 AM, Melanie wrote: I really need an exact copy of an existing server using the bootstrap --copy option It sounds like you need to figure out what additional packages are installed on your existing server and add them to the live build (?). David
Re: live-build to specific revision of wheezy
On 04/24/2016 08:03 AM, Melanie wrote: I really need an exact copy of an existing server using the bootstrap --copy option Alternatively -- if you want to clone the server, use 'dd' to take a binary image of the system drive (similar to Norton Ghost, etc.). David
Re: live-build to specific revision of wheezy
David, If I clone the server with dd is there a way to create an installable ISO from the binary image? On Sun, Apr 24, 2016 at 12:43 PM, David Christensen < dpchr...@holgerdanske.com> wrote: > On 04/24/2016 08:03 AM, Melanie wrote: > >> I really need an exact copy of an existing server using the bootstrap >> --copy option >> > > Alternatively -- if you want to clone the server, use 'dd' to take a > binary image of the system drive (similar to Norton Ghost, etc.). > > > David > > >
Re: live-build to specific revision of wheezy
Clonezilla can do that very easy and compressed, and create a hybrid iso of the cloned system. Em 24/04/2016 17:50, "Melanie" escreveu: > David, If I clone the server with dd is there a way to create an > installable ISO from the binary image? > > > > On Sun, Apr 24, 2016 at 12:43 PM, David Christensen < > dpchr...@holgerdanske.com> wrote: > >> On 04/24/2016 08:03 AM, Melanie wrote: >> >>> I really need an exact copy of an existing server using the bootstrap >>> --copy option >>> >> >> Alternatively -- if you want to clone the server, use 'dd' to take a >> binary image of the system drive (similar to Norton Ghost, etc.). >> >> >> David >> >> >> >
Re: live-build to specific revision of wheezy
On 04/24/2016 09:50 AM, Melanie wrote: David, If I clone the server with dd is there a way to create an installable ISO from the binary image? I typically boot a Debian installation CD or USB flash drive, go into rescue mode, and use command line tools -- lsblk, parted, dd, md5sum, shasum, touch, etc.. The advantage is that I am using readily available, lowest common denominator tools and apply the KISS principle, so that I will know how to use the images if/when I need them. The disadvantage is risk of typographical errors and inconsistencies in invocation. On 04/24/2016 10:42 AM, Rui Miguel P. Bernardo wrote: Clonezilla can do that very easy and compressed, and create a hybrid iso of the cloned system. I've heard good things about Clonezilla. If I did a lot of imaging, I'd probably learn it. David