Re: How to specify the binary.img size ?
El Tuesday 29 July 2008 23:48:05 David Hautbois va escriure: I found the tip here : http://pierrebauduin.blogspot.com/2008/03/plus-loin-dans-debian-live-sur-un e-clef.html it's a lot more easy mounting the usb image in a temporary directory and after copying the files to the USB partitions, # mount the image mkdir test sudo mount -o loop,offset=512 debian-live-40r0-rc1-i386-gnome-USB.img test ___ 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: 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
How to specify the binary.img size ?
Hi I'm building a live usb key. How to restore the variable sized binary.img in a fix sized partition ? My partition should be 1Gb sized. I can't restore the binary.img (700Mb) in this partition. Thanks. David. -- 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