Re: How to change installer image?

2015-01-20 Thread Thomas Schmitt
Hi,

mrr wrote:
> Please skip reading my message below!

Too late. I already did. :))

It is not that bad. E.g. the question
"When you look inside the usb key, is everything alright?"
does hit the point. You'd just had to advise a run of
fdisk -l as additional means of looking. The lack of a
partition table would have shown that it is not alright.

The proposal "you could try to load your system in a virtual
machine (virtualbox, vmware ...) so you could follow step
by step the boot process" would be a great thing if this
is possible. (I'm way behind with VM equipment and experience.)
A decisive hint would have been to use the ISO as hard disk
(e.g. qemu -hdb) and not as optical device (e.g. qemu -cdrom).


Have a nice day :)

Thomas


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/1343538672358614...@scdbackup.webframe.org



Re: How to change installer image?

2015-01-20 Thread mrr

On 20/01/2015 10:00, Thomas Schmitt wrote:

Hi,

i forgot to point to
   http://www.syslinux.org/wiki/index.php/Isohybrid
for an overview of this SYSLINUX feature.

You do not need the mentioned post processing programs if
xorriso already added an isohybrid MBR to the ISO. But you
may beef up your genisoimage ISO if you use the same SYSLINUX
version as debian-cd does.
( strings /mnt/iso/isolinux/isolinux.bin | grep ISOLINUX
says:
   ISOLINUX 4.05 20121210
So i guess it is SYSLINUX 4.05 which you would to have to install.
)


Have a nice day :)

Thomas


Well Thomas, I'll keep your previous message for future reference, 
nicely done! And


Please skip reading my message below!


--
mrr


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: https://lists.debian.org/54be406e$0$2317$426a7...@news.free.fr



Re: How to change installer image?

2015-01-20 Thread Thomas Schmitt
Hi,

i forgot to point to
  http://www.syslinux.org/wiki/index.php/Isohybrid
for an overview of this SYSLINUX feature.

You do not need the mentioned post processing programs if
xorriso already added an isohybrid MBR to the ISO. But you
may beef up your genisoimage ISO if you use the same SYSLINUX
version as debian-cd does.
( strings /mnt/iso/isolinux/isolinux.bin | grep ISOLINUX
says:
  ISOLINUX 4.05 20121210 
So i guess it is SYSLINUX 4.05 which you would to have to install.
)


Have a nice day :)

Thomas


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/12165538655767513...@scdbackup.webframe.org



Re: How to change installer image?

2015-01-20 Thread Johannes Graumann
Hello,

Outstanding! Thank you, both Steve and Thomas! Based on Steve's hint I had 
it mostly right, but the isobybrid business was beyond my capabilities (and 
would have come to bite me once actually in front of the machine to be 
installed).

I'll report back once I got a chance to try the new image ...

Joh

Thomas Schmitt wrote:

> Hi,
> 
> Steve McIntyre wrote:
>> You'll also need to use xorriso rather than genisoimage.
> 
> Thank you for flying xorriso. :)
> 
> 
>> If you look in the
>> file .disk/mkisofs on the original CD, you'll see the exact command
>> that was used to make the original image,
> 
> .disk/mkisofs is one of my favorites. So i can see what Steve
> does with my program.
> One needs some background knowledge, though, to derive the options
> for a new run:
> 
> The option -isohybrid-mbr, which is essential for BIOS USB stick,
> needs an MBR input file, which has to stem from the same SYSLINUX
> version as isolinux/isolinux.bin in the ISO:
> 
>   -isohybrid-mbr syslinux/usr/lib/syslinux/isohdpfx.bin
> 
> The first 512 bytes of the original isohybrid ISO image
> are a harmlessly modified copy of the original input file.
> So one may retrieve the new isohybrid MBR template by:
> 
>   dd if=debian-7.8.0-i386-CD-1.iso bs=512 count=1 of=/tmp/isohdpfx.bin
> 
> and use it in the xorriso run as
> 
>   -isohybrid-mbr /tmp/isohdpfx.bin
> 
> 
> Further one may leave out the Jigdo producing options:
> 
>   -checksum_algorithm_iso md5,sha1,sha256,sha512
>   ...
>-jigdo-jigdo
>/org/cdbuilder.debian.org/dst/deb-cd/out/2amd64/debian-7.7.0-amd64-
NETINST-1.jigdo
>-jigdo-template
>/org/cdbuilder.debian.org/dst/deb-cd/out/2amd64/debian-7.7.0-amd64-
NETINST-1.template
>-jigdo-map Debian=/org/cdbuilder.debian.org/src/ftp/debian/
>-jigdo-exclude boot1 -md5-list
>/org/cdbuilder.debian.org/src/deb-cd/tmp/2amd64/wheezy/md5-check
>-jigdo-min-file-size 1024 -jigdo-exclude 'README*' -jigdo-exclude /doc/
>-jigdo-exclude /md5sum.txt -jigdo-exclude /.disk/ -jigdo-exclude /pics/
>-jigdo-exclude 'Release*' -jigdo-exclude 'Packages*' -jigdo-exclude
>'Sources*'
>   ...
> 
> 
> So i propose to do for an i386 ISO:
> 
>   dd if=debian-7.8.0-i386-CD-1.iso bs=512 count=1 of=/tmp/isohdpfx.bin
> 
>   xorriso -as mkisofs \
>  -r \
>  -V 'Debian 7.8.0 i386 1' \
>  -o debian-7.8.0-i386-CD-1-mod.iso \
>  -J \
>  -isohybrid-mbr /tmp/isohdpfx.bin \
>  -partition_offset 16 \
>  -joliet-long \
>  -cache-inodes \
>  -b isolinux/isolinux.bin \
>  -c isolinux/boot.cat \
>  -no-emul-boot \
>  -boot-load-size 4 \
>  -boot-info-table \
>  ./debian-7.8.0-i386-CD-1-mod/
> 
>rm /tmp/isohdpfx.bin
> 
> The amd64 ISOs get some extra options for EFI after -boot-info-table:
> 
>   -eltorito-alt-boot \
>   -e boot/grub/efi.img \
>   -no-emul-boot \
>   -isohybrid-gpt-basdat \
>   -isohybrid-apm-hfsplus \
> 
> The last option -isohybrid-apm-hfsplus is actually useless here,
> because no HFS+ flesystem tree gets produced.
> 
> 
> If you get xorriso-1.3.8 from http://www.gnu.org/software/xorriso
> then you can inspect the result's boot equipment:
> 
>   xorriso -indev debian-7.8.0-i386-CD-1-mod.iso \
>   -report_el_torito plain \
>   -report_system_area plain
> 
> My test (with debian-7.3.0-i386-netinst.iso) yields:
> 
>   El Torito catalog  : 1658  1
>   El Torito cat path : /isolinux/boot.cat
>   El Torito images   :   N  Pltf  B   Emul  Ld_seg  Hdpt  Ldsiz
>   LBA
>   El Torito boot img :   1  BIOS  y   none  0x  0x00  4   
>   1659
>   El Torito img path :   1  /isolinux/isolinux.bin
>   El Torito img opts :   1  boot-info-table isohybrid-suitable
>   System area options: 0x0102
>   System area summary: MBR isohybrid cyl-align-on
>   ISO image size/512 : 571392
>   Partition offset   : 16
>   MBR heads per cyl  : 64
>   MBR secs per head  : 32
>   MBR partition table:   N Status  TypeStart   Blocks
>   MBR partition  :   1   0x80  0x17   64   571328
> 
> Else have a look at the MBR partition table by fdisk :
> 
>   $ /sbin/fdisk -lu debian-7.8.0-i386-CD-1-mod.iso
>   ...
>   64 heads, 32 sectors/track, 0 cylinders, total 0 sectors
>   Units = sectors of 1 * 512 = 512 bytes
> 
>  Device Boot  Start End  Blocks  
>  Id  System
> debian-7.8.0-i386-CD-1-mod.iso1   *  64  571391  285664  
> 17  Hidden HPFS/NTFS
> 
> 
> Have a nice day :)
> 
> Thomas



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/m9l2cm$ngd$1...@ger.gmane.org



Re: How to change installer image?

2015-01-19 Thread Thomas Schmitt
Hi,

Steve McIntyre wrote:
> You'll also need to use xorriso rather than genisoimage.

Thank you for flying xorriso. :)


> If you look in the
> file .disk/mkisofs on the original CD, you'll see the exact command
> that was used to make the original image,

.disk/mkisofs is one of my favorites. So i can see what Steve
does with my program.
One needs some background knowledge, though, to derive the options
for a new run:

The option -isohybrid-mbr, which is essential for BIOS USB stick,
needs an MBR input file, which has to stem from the same SYSLINUX
version as isolinux/isolinux.bin in the ISO:

  -isohybrid-mbr syslinux/usr/lib/syslinux/isohdpfx.bin

The first 512 bytes of the original isohybrid ISO image
are a harmlessly modified copy of the original input file.
So one may retrieve the new isohybrid MBR template by:

  dd if=debian-7.8.0-i386-CD-1.iso bs=512 count=1 of=/tmp/isohdpfx.bin

and use it in the xorriso run as

  -isohybrid-mbr /tmp/isohdpfx.bin


Further one may leave out the Jigdo producing options:

  -checksum_algorithm_iso md5,sha1,sha256,sha512
  ...
   -jigdo-jigdo 
/org/cdbuilder.debian.org/dst/deb-cd/out/2amd64/debian-7.7.0-amd64-NETINST-1.jigdo
 -jigdo-template 
/org/cdbuilder.debian.org/dst/deb-cd/out/2amd64/debian-7.7.0-amd64-NETINST-1.template
 -jigdo-map Debian=/org/cdbuilder.debian.org/src/ftp/debian/ -jigdo-exclude 
boot1 -md5-list 
/org/cdbuilder.debian.org/src/deb-cd/tmp/2amd64/wheezy/md5-check 
-jigdo-min-file-size 1024 -jigdo-exclude 'README*' -jigdo-exclude /doc/ 
-jigdo-exclude /md5sum.txt -jigdo-exclude /.disk/ -jigdo-exclude /pics/ 
-jigdo-exclude 'Release*' -jigdo-exclude 'Packages*' -jigdo-exclude 'Sources*'
  ...


So i propose to do for an i386 ISO:

  dd if=debian-7.8.0-i386-CD-1.iso bs=512 count=1 of=/tmp/isohdpfx.bin

  xorriso -as mkisofs \
 -r \
 -V 'Debian 7.8.0 i386 1' \
 -o debian-7.8.0-i386-CD-1-mod.iso \
 -J \
 -isohybrid-mbr /tmp/isohdpfx.bin \
 -partition_offset 16 \
 -joliet-long \
 -cache-inodes \
 -b isolinux/isolinux.bin \
 -c isolinux/boot.cat \
 -no-emul-boot \
 -boot-load-size 4 \
 -boot-info-table \
 ./debian-7.8.0-i386-CD-1-mod/

   rm /tmp/isohdpfx.bin

The amd64 ISOs get some extra options for EFI after -boot-info-table:

  -eltorito-alt-boot \
  -e boot/grub/efi.img \
  -no-emul-boot \
  -isohybrid-gpt-basdat \
  -isohybrid-apm-hfsplus \

The last option -isohybrid-apm-hfsplus is actually useless here,
because no HFS+ flesystem tree gets produced.


If you get xorriso-1.3.8 from http://www.gnu.org/software/xorriso
then you can inspect the result's boot equipment:

  xorriso -indev debian-7.8.0-i386-CD-1-mod.iso \
  -report_el_torito plain \
  -report_system_area plain

My test (with debian-7.3.0-i386-netinst.iso) yields:

  El Torito catalog  : 1658  1
  El Torito cat path : /isolinux/boot.cat
  El Torito images   :   N  Pltf  B   Emul  Ld_seg  Hdpt  Ldsiz LBA
  El Torito boot img :   1  BIOS  y   none  0x  0x00  41659
  El Torito img path :   1  /isolinux/isolinux.bin
  El Torito img opts :   1  boot-info-table isohybrid-suitable
  System area options: 0x0102
  System area summary: MBR isohybrid cyl-align-on
  ISO image size/512 : 571392
  Partition offset   : 16
  MBR heads per cyl  : 64
  MBR secs per head  : 32
  MBR partition table:   N Status  TypeStart   Blocks
  MBR partition  :   1   0x80  0x17   64   571328

Else have a look at the MBR partition table by fdisk :

  $ /sbin/fdisk -lu debian-7.8.0-i386-CD-1-mod.iso
  ...
  64 heads, 32 sectors/track, 0 cylinders, total 0 sectors
  Units = sectors of 1 * 512 = 512 bytes

 Device Boot  Start End  Blocks   Id  
System
debian-7.8.0-i386-CD-1-mod.iso1   *  64  571391  285664   17  
Hidden HPFS/NTFS


Have a nice day :)

Thomas


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/23718538649569997...@scdbackup.webframe.org



Re: How to change installer image?

2015-01-19 Thread mrr

On 19/01/2015 20:30, Johannes Graumann wrote:


3) nano /tmp/debian-7.8.0-i386-CD-1-mod/isolinux/txt.cfg ...


I'm not sure about the mean of this step, is it to change the text 
printed at early boot time (a kind of menu?) ?

Anyway, make sure you don't have an error here.


4) genisoimage -o debian-7.8.0-i386-CD-1-mod.iso -r -J -no-emul-boot -boot-
load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat
./debian-7.8.0-i386-CD-1-mod/


When you look inside the usb key, is everything alright?
I mean do you have all files and folder in root directory?
Because I may have issued a slightly modified command line i.e.:

genisoimage -o debian-7.8.0-i386-CD-1-mod.iso -r -J -no-emul-boot -boot-
load-size 4 -boot-info-table -b isolinux/isolinux.bin -c 
isolinux/boot.cat ./debian-7.8.0-i386-CD-1-mod/*



5) dd if=debian-7.8.0-i386-CD-1-mod.iso of=/dev/ bs=4M; sync

Contrary to the original image, the resulting usb stick is NOT recognized as
bootable ...

What am I doing wrong?

Thank you for your time.

Sincerely, Joh




And last, I just had a weird idea (or not?) , you could try to load your 
system in a virtual machine (virtualbox, vmware ...) so you could follow 
step by step the boot process (from the outside I would say!).


--
mrr


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: https://lists.debian.org/54bda323$0$12774$426a7...@news.free.fr



Re: How to change installer image?

2015-01-19 Thread Steve McIntyre
johannes_graum...@web.de wrote:
>Hello,
>
>To fix some configurations needed to install via a serial connection, I 
>would like to edit txt.cfg in isolinux of the stable installation CD. 
>Following https://wiki.debian.org/DebianInstaller/Modify/CD I try:
>1) mkdir /tmp/debian-7.8.0-i386-CD-1-mod
>2) bsdtar -C /tmp/debian-7.8.0-i386-CD-1-mod -xf debian-7.8.0-i386-CD-1.iso
>3) nano /tmp/debian-7.8.0-i386-CD-1-mod/isolinux/txt.cfg ...
>4) genisoimage -o debian-7.8.0-i386-CD-1-mod.iso -r -J -no-emul-boot -boot-
>load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat 
>./debian-7.8.0-i386-CD-1-mod/
>5) dd if=debian-7.8.0-i386-CD-1-mod.iso of=/dev/ bs=4M; sync
>
>Contrary to the original image, the resulting usb stick is NOT recognized as 
>bootable ...
>
>What am I doing wrong?

Hi,

What you're missing is the extra commands needed to add isohybrid
options. I guess that wiki page is out of date. If you look in the
file .disk/mkisofs on the original CD, you'll see the exact command
that was used to make the original image, for reference in exactly
this type of situation. You'll also need to use xorriso rather than
genisoimage.

Hope that helps...

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
"...In the UNIX world, people tend to interpret `non-technical user'
 as meaning someone who's only ever written one device driver." -- Daniel Pead


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/e1ydmxk-0007t6...@mail.einval.com



How to change installer image?

2015-01-19 Thread Johannes Graumann
Hello,

To fix some configurations needed to install via a serial connection, I 
would like to edit txt.cfg in isolinux of the stable installation CD. 
Following https://wiki.debian.org/DebianInstaller/Modify/CD I try:
1) mkdir /tmp/debian-7.8.0-i386-CD-1-mod
2) bsdtar -C /tmp/debian-7.8.0-i386-CD-1-mod -xf debian-7.8.0-i386-CD-1.iso
3) nano /tmp/debian-7.8.0-i386-CD-1-mod/isolinux/txt.cfg ...
4) genisoimage -o debian-7.8.0-i386-CD-1-mod.iso -r -J -no-emul-boot -boot-
load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat 
./debian-7.8.0-i386-CD-1-mod/
5) dd if=debian-7.8.0-i386-CD-1-mod.iso of=/dev/ bs=4M; sync

Contrary to the original image, the resulting usb stick is NOT recognized as 
bootable ...

What am I doing wrong?

Thank you for your time.

Sincerely, Joh


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/m9jlda$83e$1...@ger.gmane.org