Re: Problem creating iso for a USB stick

2014-01-20 Thread Thomas Schmitt
Hi,

Stelian Iancu wrote:
 Today once I got back to work I wanted to recreate the bad iso for you to
 test. So I have created a new fresh VM with Debian 7.3.0 (and xorriso 1.2.2)
 and this time it worked flawlessly.

That's much better than if it would work for me but not for you.

Note (again), this is good only for booting PC-BIOS but not
for EFI firmware (some hardware for amd64 has it).


 I took your advice and I took the -isohybrid-mbr template from the original
 ISO image as well. Could it be that? Before I used to take the one that
 comes with the syslinux package.

It could. But it would not explain why you succeeded with
your xorriso-1.3.4 experiment.


It was a bit sloppy by me to use all the first 32768 bytes of
the original image, because now we have copied a wrong GPT
partition table into the new image. PC-BIOS should not care.
EFI or partition editors might take offense.

More neat is to cut out only the first 512 bytes of the image
so that it has the same size as the MBR template isohdpfx.bin
from a locally installed SYSLINUX:

  dd if=/root/debian/debian-7.3.0-amd64-netinst.iso \
 bs=512 count=1 \
 of=/root/debian/debian-7.3.0-amd64-netinst.mbr

  xorriso -as mkisofs ... \
 -isohybrid-mbr /root/debian/debian-7.3.0-amd64-netinst.mbr \
 ...

This is only a problem, because we did not prepare the image
for EFI booting by the omitted (non-jigdo) options.
With those options, the GPT would be updated to match the
new ISO image size and position of the EFI boot image.


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: http://lists.debian.org/1068264540584255...@scdbackup.webframe.org



Re: Problem creating iso for a USB stick

2014-01-17 Thread Stelian Iancu
On Thu, Jan 16, 2014 at 4:55 PM, Brian a...@cityscape.co.uk wrote:

 On Thu 16 Jan 2014 at 16:02:00 +0100, Stelian Iancu wrote:

  I am trying to create a USB stick with Wheezy which would auto-install.
  I've managed to create the iso successfully following the instructions
  here: https://wiki.debian.org/DebianInstaller/Preseed/EditIso
 
  I've checked the resulting iso with vmware fusion on my mac and it works,
  i.e. it auto-installs Debian successfull.
 
  However, after writing it to a USB stick, it doesn't boot, and I don't
 know
  why.

 What is the output of

fdisk -l your_ISO ?


It is this:

fdisk -l test.iso
GNU Fdisk 1.2.4
Copyright (C) 1998 - 2006 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.


Disk /root/debian/test.iso: 263 MB, 263192576 bytes
64 heads, 32 sectors/track, 251 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot  Start End  Blocks   Id  System
/root/debian/test.iso1   *   1 251  257008   17  Hidd
HPFS/NTFS

I have no idea why it's HPFS/NTFS.


  The command I used to create the iso is as follows:
 
  xorriso -as mkisofs -D -r -J -joliet-long -L -A Custom Install CD -b
  isolinux/isolinux.bin -c isolinux/boot.cat -iso-level 3 -no-emul-boot
  -partition_offset 16 -boot-load-size 4 -boot-info-table -o ../test.iso
  -isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin ../cd
 
  Any ideas what I might be doing wrong?

 Not really (learning to use xorriso is on my to-do list) but the Debian
 images have the command used for their creation in the mkisofs file in
 .disk. You could also try the isohybrid command, which comes with the
 syslinux package.


I just tried the isohybrid command and it didn't help. After dd'ing the
resulting iso to the USB drive, it still won't boot.

It's funny you mention the mkisofs from .disk. By some sort of a miracle,
I've found it as well. It looks like this:

/home/93sam/xorriso -as mkisofs -r -checksum_algorithm_iso
md5,sha1,sha256,sha512 -V 'Debian 7.3.0 amd64 1' -o /org/
cdbuilder.debian.org/dst/deb-cd/out/2amd64/debian-7.3.0-amd64-NETINST-1.iso-jigdo-jigdo
/org/
cdbuilder.debian.org/dst/deb-cd/out/2amd64/debian-7.3.0-amd64-NETINST-1.jigdo-jigdo-template
/org/
cdbuilder.debian.org/dst/deb-cd/out/2amd64/debian-7.3.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*' -J -isohybrid-mbr syslinux/usr/lib/syslinux/isohdpfx.bin -J
-joliet-long -cache-inodes -b isolinux/isolinux.bin -c
isolinux/boot.cat-no-emul-boot -boot-load-size 4 -boot-info-table
-eltorito-alt-boot -e
boot/grub/efi.img -no-emul-boot -isohybrid-gpt-basdat
-isohybrid-apm-hfsplus boot1 CD1

After removing all the jigdo related options, I've tried the resulting
command and it didn't work. It gave me an error related to
-isohybrid-gpt-basdat. Upon further investigation, I found out that the
version of xorriso that is in Wheezy is older (1.2.2) and apparently
doesn't support this option. The current version is 1.3.4. Also, as you can
see, they use a manually compiled xorriso, I would assume:
/home/93sam/xorriso.

So I guess I will try to compile xorriso manually and try, again, with the
Debian command (without the jigdo options).




 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/16012014154903.4110dd4a0...@desktop.copernicus.demon.co.uk




Re: Problem creating iso for a USB stick

2014-01-17 Thread Stelian Iancu
On Thu, Jan 16, 2014 at 6:23 PM, Thomas Schmitt scdbac...@gmx.net wrote:

 Hi,


Hi, please see below.



 i am the developer of xorriso and always interested
 in learning about problems.

  However, after writing it to a USB stick, it doesn't boot,
  and I don't know why.

 What kind of machine do you use ?


It is a regular PC with a Intel i7 processor.


 What kind of firmware does it have: PC-BIOS , UEFI, ... ?


PC bios.



 How far does it get with booting ?


Not very far. The machine starts and the USB stick flashes briefly. Then
the initial screen (with details about the BIOS, hard drives, memory, etc.)
is displayed then a black screen with a blinking cursor and that's it.


 Does the USB stick make any difference when plugged in
 or is it just ignored ?


No it doesn't make any difference. With or without it, the behavior is the
same (see above).



 How did you put the result onto USB stick ?


I tried three different methods:

1. I've done it in MacOSX with the method described here:
http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
2. I've done it in Linux (Debian, the same machine I used to create it) by
dd'ing the contents of the iso to the USB stick.
3. Again, in Linux (same machine) by copying the iso directly to /dev/sdm
and then doing sync.




  I've checked the resulting iso with vmware fusion on my mac and it works,

 Did you submit it as emulated hard disk (rather than as CD-ROM) ?
 BIOS treats both device classes very different. (MBR vs. El Torito.)
 An USB stick would be treated by real BIOS as hard disk.


Umm ... don't know for sure, when you create a new virtual machine, it asks
for a image. And there I selected it. It seems to me it is a CD-ROM. I
should note that, before finding out about xorriso, I tried to create the
iso using genisoimage and that one worked as well with vmware in exactly
the same way. Which leads me to believe that it is seeing it as a CD-ROM.




  xorriso -as mkisofs -D -r -J -joliet-long -L -A Custom Install CD
  -b isolinux/isolinux.bin -c isolinux/boot.cat -iso-level 3 -no-emul-boot
  -partition_offset 16 -boot-load-size 4 -boot-info-table -o ../test.iso
  -isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin ../cd

 This looks ok as far as PC-BIOS booting from USB stick is
 concerned. It should work on i386 and amd64 processors.

 You may leave out -partition_offset 16 and check whether this
 changes anything with bootability. Some machines demand it, some
 hate it. Most work with both variants.

 (If you want to see Custom Install CD as name of the filesystem
  then you should use -V rather than -A.)


As I said in my previous mail in the thread, I've tried to use the
official xorriso command that the Debian devs used to generate the
netinst image. However, it fails because of -isohybrid-gpt-basdat (I guess
because xorriso in Wheezy is 1.2.2 and this option was added later).

Would it be possible for you to make a deb for Wheezy with the latest
version of xorriso or do I have to compile it by hand?


 Have a nice day :)


You too and thanks a lot for your help, it is greatly appreciated!



 Thomas




Re: Problem creating iso for a USB stick

2014-01-17 Thread Stelian Iancu
On Fri, Jan 17, 2014 at 10:59 AM, Stelian Iancu stel...@iancu.ch wrote:




 On Thu, Jan 16, 2014 at 6:23 PM, Thomas Schmitt scdbac...@gmx.net wrote:

 Hi,


 Hi, please see below.



 i am the developer of xorriso and always interested
 in learning about problems.

  However, after writing it to a USB stick, it doesn't boot,
  and I don't know why.

 What kind of machine do you use ?


 It is a regular PC with a Intel i7 processor.


 What kind of firmware does it have: PC-BIOS , UEFI, ... ?


 PC bios.



 How far does it get with booting ?


 Not very far. The machine starts and the USB stick flashes briefly. Then
 the initial screen (with details about the BIOS, hard drives, memory, etc.)
 is displayed then a black screen with a blinking cursor and that's it.


 Does the USB stick make any difference when plugged in
 or is it just ignored ?


 No it doesn't make any difference. With or without it, the behavior is the
 same (see above).



 How did you put the result onto USB stick ?


 I tried three different methods:

 1. I've done it in MacOSX with the method described here:
 http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx
 2. I've done it in Linux (Debian, the same machine I used to create it) by
 dd'ing the contents of the iso to the USB stick.
 3. Again, in Linux (same machine) by copying the iso directly to /dev/sdm
 and then doing sync.




  I've checked the resulting iso with vmware fusion on my mac and it
 works,

 Did you submit it as emulated hard disk (rather than as CD-ROM) ?
 BIOS treats both device classes very different. (MBR vs. El Torito.)
 An USB stick would be treated by real BIOS as hard disk.


 Umm ... don't know for sure, when you create a new virtual machine, it
 asks for a image. And there I selected it. It seems to me it is a CD-ROM. I
 should note that, before finding out about xorriso, I tried to create the
 iso using genisoimage and that one worked as well with vmware in exactly
 the same way. Which leads me to believe that it is seeing it as a CD-ROM.




  xorriso -as mkisofs -D -r -J -joliet-long -L -A Custom Install CD
  -b isolinux/isolinux.bin -c isolinux/boot.cat -iso-level 3
 -no-emul-boot
  -partition_offset 16 -boot-load-size 4 -boot-info-table -o ../test.iso
  -isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin ../cd

 This looks ok as far as PC-BIOS booting from USB stick is
 concerned. It should work on i386 and amd64 processors.

 You may leave out -partition_offset 16 and check whether this
 changes anything with bootability. Some machines demand it, some
 hate it. Most work with both variants.

 (If you want to see Custom Install CD as name of the filesystem
  then you should use -V rather than -A.)


 As I said in my previous mail in the thread, I've tried to use the
 official xorriso command that the Debian devs used to generate the
 netinst image. However, it fails because of -isohybrid-gpt-basdat (I guess
 because xorriso in Wheezy is 1.2.2 and this option was added later).

 Would it be possible for you to make a deb for Wheezy with the latest
 version of xorriso or do I have to compile it by hand?


 Have a nice day :)


 You too and thanks a lot for your help, it is greatly appreciated!



 Thomas




In the end, I went ahead and manually compiled xorriso 1.3.4 and with this
one and the command that Debian itself uses to create the netinst iso it
worked (without the jigdo stuff). The resulting iso is bootable from the
USB key.

Thanks a lot to everybody for their help!


Re: Problem creating iso for a USB stick

2014-01-17 Thread Thomas Schmitt
Hi,

first question because i am lacking other valid ideas:

Does your machine boot the original netinst ISO from USB stick ?

Second question:

How large is your result image ? Can you upload it to a place
from where i could get it for inspection ?


For the details:

 /root/debian/test.iso1 *  1 251 257008  17 Hidd HPFS/NTFS

 I have no idea why it's HPFS/NTFS

That's just the default type as proposed by H. Peter Anvin,
the author of SYSLINUX/ISOLINUX. 
debian-7.3.0-i386-netinst.iso has the same partition type.


 [xorriso with arguments from Debian 7.3 amd64]
 It gave me an error related to -isohybrid-gpt-basdat

You'd need xorriso-1.2.4 for -isohybrid-gpt-basdat.
But you do not need that option for booting via BIOS.
Only if you boot via EFI and have included a properly
equipped FAT filesystem image as file /boot/grub/efi.img.


 Also, as you can see, they use a manually compiled xorriso, I would
 assume: /home/93sam/xorriso

Telling from the output of
  xorriso -indev debian-7.3.0-i386-netinst.iso -pvd_info
debian-cd used xorriso-1.2.6 for production of its 7.3 ISOs.
Probably compiled from the GNU xorriso tarball, not from
Debian library packages:
  http://www.gnu.org/software/xorriso/xorriso-1.2.6.tar.gz

I would nevertheless prefer if you make experiments with
the current release:
  http://www.gnu.org/software/xorriso/xorriso-1.3.4.tar.gz

To avoid conflicts with the installed Debian packages, you
may omit make install and use xorriso-1.3.4 as

  /...some.path.../xorriso-1.3.4/xorriso/xorriso -as mkisofs ...


  Does the USB stick make any difference when plugged in
  or is it just ignored ?

 No it doesn't make any difference. With or without it, the behavior
 is the same (see above).

So the system does not have any other bootable disk attached,
which would step in when the USB stick is missing ?

Thus my first question above.


 1. I've done it in MacOSX with the method described
 here:http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx

Step 3 looks suspicious. Afterwards the ISO might not be an
ISO any more.


 2. I've done it in Linux (Debian, the same machine I used to create
 it) by dd'ing the contents of the iso to the USB stick.

Onto e.g. /dev/sdb would be right, onto e.g. /dev/sdb1 would
be wrong.

 3. Again, in Linux (same machine) by copying the iso directly to
 /dev/sdm and then doing sync.

/dev/sdm ... Lots of disk devices attached ?

What was the difference between dd'ing the contents of the iso
and copying the iso directly ?
Just the use of command dd versus command cp ?
Both should have the same effect with a block device as target.
Both should be ok.

The fdisk output looks plausible.
Option -lu rather than -l would show more exact block addresses
rather than cylinder addresses. But the type Hidden NTFS alone
indicates that the partition table of the image found its right
place on the USB stick.


  Did you submit it as emulated hard disk (rather than as CD-ROM) ?
 Umm ... don't know for sure, when you create a new virtual machine,
 it asks for a image.

These are the hardships of GUI operation. With a qemu command
line one could tell whether you used -hda or -cdrom to submit
the image file.


 Would it be possible for you to make a deb for Wheezy with the latest
 version of xorriso or do I have to compile it by hand?

I am not a Debian regular. You would need three new library
packages and one application package.
The GNU xorriso tarball is intended to ease this plight:

  tar xzf xorriso-1.3.4.tar.gz
  cd xorriso-1.3.4  ./configure  make

If all went well, then

  ./xorriso/xorriso -version

should tell some lines about xorriso and its supporing libraries.
As said above, you may use this program without make install.

Alternatively, Debian testing currently provides xorriso-1.3.2
and the necessary library packages.


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: http://lists.debian.org/9899645669021282...@scdbackup.webframe.org



Re: Problem creating iso for a USB stick

2014-01-17 Thread Stelian Iancu
On Fri, Jan 17, 2014 at 11:53 AM, Thomas Schmitt scdbac...@gmx.net wrote:

 Hi,


Hi Thomas,

See my previous mail. Made it work with xorriso 1.3.4. Do you still want me
to go ahead and do what you wrote below?

Thanks!

S.



 first question because i am lacking other valid ideas:

 Does your machine boot the original netinst ISO from USB stick ?

 Second question:

 How large is your result image ? Can you upload it to a place
 from where i could get it for inspection ?


 For the details:

  /root/debian/test.iso1 *  1 251 257008  17 Hidd HPFS/NTFS

  I have no idea why it's HPFS/NTFS

 That's just the default type as proposed by H. Peter Anvin,
 the author of SYSLINUX/ISOLINUX.
 debian-7.3.0-i386-netinst.iso has the same partition type.


  [xorriso with arguments from Debian 7.3 amd64]
  It gave me an error related to -isohybrid-gpt-basdat

 You'd need xorriso-1.2.4 for -isohybrid-gpt-basdat.
 But you do not need that option for booting via BIOS.
 Only if you boot via EFI and have included a properly
 equipped FAT filesystem image as file /boot/grub/efi.img.


  Also, as you can see, they use a manually compiled xorriso, I would
  assume: /home/93sam/xorriso

 Telling from the output of
   xorriso -indev debian-7.3.0-i386-netinst.iso -pvd_info
 debian-cd used xorriso-1.2.6 for production of its 7.3 ISOs.
 Probably compiled from the GNU xorriso tarball, not from
 Debian library packages:
   http://www.gnu.org/software/xorriso/xorriso-1.2.6.tar.gz

 I would nevertheless prefer if you make experiments with
 the current release:
   http://www.gnu.org/software/xorriso/xorriso-1.3.4.tar.gz

 To avoid conflicts with the installed Debian packages, you
 may omit make install and use xorriso-1.3.4 as

   /...some.path.../xorriso-1.3.4/xorriso/xorriso -as mkisofs ...


   Does the USB stick make any difference when plugged in
   or is it just ignored ?

  No it doesn't make any difference. With or without it, the behavior
  is the same (see above).

 So the system does not have any other bootable disk attached,
 which would step in when the USB stick is missing ?

 Thus my first question above.


  1. I've done it in MacOSX with the method described
  here:
 http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx

 Step 3 looks suspicious. Afterwards the ISO might not be an
 ISO any more.


  2. I've done it in Linux (Debian, the same machine I used to create
  it) by dd'ing the contents of the iso to the USB stick.

 Onto e.g. /dev/sdb would be right, onto e.g. /dev/sdb1 would
 be wrong.

  3. Again, in Linux (same machine) by copying the iso directly to
  /dev/sdm and then doing sync.

 /dev/sdm ... Lots of disk devices attached ?

 What was the difference between dd'ing the contents of the iso
 and copying the iso directly ?
 Just the use of command dd versus command cp ?
 Both should have the same effect with a block device as target.
 Both should be ok.

 The fdisk output looks plausible.
 Option -lu rather than -l would show more exact block addresses
 rather than cylinder addresses. But the type Hidden NTFS alone
 indicates that the partition table of the image found its right
 place on the USB stick.


   Did you submit it as emulated hard disk (rather than as CD-ROM) ?
  Umm ... don't know for sure, when you create a new virtual machine,
  it asks for a image.

 These are the hardships of GUI operation. With a qemu command
 line one could tell whether you used -hda or -cdrom to submit
 the image file.


  Would it be possible for you to make a deb for Wheezy with the latest
  version of xorriso or do I have to compile it by hand?

 I am not a Debian regular. You would need three new library
 packages and one application package.
 The GNU xorriso tarball is intended to ease this plight:

   tar xzf xorriso-1.3.4.tar.gz
   cd xorriso-1.3.4  ./configure  make

 If all went well, then

   ./xorriso/xorriso -version

 should tell some lines about xorriso and its supporing libraries.
 As said above, you may use this program without make install.

 Alternatively, Debian testing currently provides xorriso-1.3.2
 and the necessary library packages.


 Have a nice day :)

 Thomas




Re: Problem creating iso for a USB stick

2014-01-17 Thread Thomas Schmitt
Hi,

 In the end, I went ahead and manually compiled xorriso 1.3.4 and with
 this one and the command that Debian itself uses to create the
 netinst iso it worked (without the jigdo stuff). The resulting iso is
 bootable from the USB key.

From my remote position i would say that your firmware wanted
to see the GPT rather than an MBR partition table.
So it would be EFI and not BIOS.

Whatever, congrats to your success.


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: http://lists.debian.org/3972645670369242...@scdbackup.webframe.org



Re: Problem creating iso for a USB stick

2014-01-17 Thread Stelian Iancu
On Fri, Jan 17, 2014 at 12:07 PM, Thomas Schmitt scdbac...@gmx.net wrote:

 Hi,

  In the end, I went ahead and manually compiled xorriso 1.3.4 and with
  this one and the command that Debian itself uses to create the
  netinst iso it worked (without the jigdo stuff). The resulting iso is
  bootable from the USB key.

 From my remote position i would say that your firmware wanted
 to see the GPT rather than an MBR partition table.
 So it would be EFI and not BIOS.

 Whatever, congrats to your success.


I would guess you're right :-). It's weird though, because the actual
installation seems to fail afterwards (the partitioning complains about
something related to EFI, I would need to double check). But that's another
issue.

Thanks again for your help!




 Have a nice day :)

 Thomas




Re: Problem creating iso for a USB stick

2014-01-17 Thread Thomas Schmitt
Hi,

 See my previous mail. Made it work with xorriso 1.3.4. Do you still
 want me to go ahead and do what you wrote below?

We could be curious and leave out the options

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

If my theory about the need for GPT and EFI is correct,
then the resulting image should fail to boot.

If it does boot too, then one should file a bug report and
ask for an update of xorriso in the stable release.
In this case it would help to test again with the xorriso-1.3.2
package from Debian testing. This one would be more
acceptable than a freshly uploaded 1.3.4, because it is
longer tested and would be less work for the Debian people.


 It's weird though, because the actual
 installation seems to fail afterwards (the partitioning complains
 about something related to EFI, I would need to double check). But
 that's another issue.

If you get to the Debian installer menu, then the firmware, xorriso
and the bootloader (SYSLINUX for BIOS or GRUB2 for EFI) have done
their job properly.

Any further failure would be an issue for the debian-installer
people, i assume. I would advise to first test with the original
netinst ISO, because they might not feel in charge for your
altered one.
Either you will find that the original works and possibly learn
what you did wrong during modification, or it wont't work and
is worth a bug report then.

One possible pitfall with your new image could be the Volume Id,
which is supposed to show up in the booted system underneath
directory /dev/disk/by-label.
If the Debian installer looks for its own name, it will find
ISOIMAGE instead, unless you used the original option:
  -V 'Debian 7.3.0 amd64 1'


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: http://lists.debian.org/5072645676132178...@scdbackup.webframe.org



Re: Problem creating iso for a USB stick

2014-01-17 Thread Thomas Schmitt
Hi,

  See my previous mail. Made it work with xorriso 1.3.4. Do you still
  want me to go ahead and do what you wrote below?

 We could be curious and leave out the options

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

Correcting myself:

Option
  -isohybrid-apm-hfsplus
should be omitted too, in this case. 


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: http://lists.debian.org/20287645674732895...@scdbackup.webframe.org



Re: Problem creating iso for a USB stick

2014-01-17 Thread Stelian Iancu
On Fri, Jan 17, 2014 at 1:10 PM, Thomas Schmitt scdbac...@gmx.net wrote:

 Hi,

   See my previous mail. Made it work with xorriso 1.3.4. Do you still
   want me to go ahead and do what you wrote below?
 
  We could be curious and leave out the options
 
-eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot
 -isohybrid-gpt-basdat

 Correcting myself:

 Option
   -isohybrid-apm-hfsplus
 should be omitted too, in this case.



So I took out the following: -eltorito-alt-boot -e boot/grub/efi.img
-no-emul-boot -isohybrid-gpt-basdat -isohybrid-apm-hfsplus

which basically left me with the original command and, surprise, it worked!
So it is indeed xorriso that is in Debian stable that has an issue (given
that with my manually compiled xorriso it works). I will have a look in the
bugs database if there already is a bug for this issue and if not I will
create one.

But I do have to say that I find it a bit disingenuous from the Debian devs
that they create the stable iso with a xorriso that's not in Debian stable.
But maybe it's a known issue, I will take a look.

Many thanks Thomas, you were great! If you need me to do anything else to
help with this issue, please let me know.


 Have a nice day :)

 Thomas




Re: Problem creating iso for a USB stick

2014-01-17 Thread Thomas Schmitt
Hi,

 which basically left me with the original command and, surprise, it
 worked!

That's quite surprising. There is no corresponding bug fix
to see in my ChangeLog. (... and i cannot remember either ...)

Although xorriso-1.2.2 is outdated, it would still be good to
know how i accidently fixed the problem. Maybe it is only
covered up but not gone.

Do you still have the bad image that does not boot ?
If so, can i have it for inspection ?
And the working image too ?

Filing a Debian bug might best be done after we know what's
going on. Especially it will be interesting to know whether
xorriso-1.3.2 as of Debian testing is ok.

I would try to reproduce your production steps with xorriso-1.2.2
if i knew from what ISO image you started (URL please) and what
manipulations you did before you packed it up by xorriso.

I doubt that the missing option -V in your first command
can cause a zero-reaction by the BIOS. It should only later
be of importance, if ever.

--
It seems not to happen trivially:

I mounted debian-7.3.0-i386-netinst.iso and repacked it
by quite the xorriso command which you mentioned in your first
post of this thread:

  mount -o loop debian-7.3.0-i386-netinst.iso /mnt

  xorriso-1.2.2 \
 -as mkisofs -D -r -J -joliet-long -L -A Custom Install CD \
 -b isolinux/isolinux.bin -c isolinux/boot.cat -iso-level 3 \
 -no-emul-boot -partition_offset 16 -boot-load-size 4 \
 -boot-info-table -o test.iso \
 -isohybrid-mbr debian-7.3.0-i386-netinst.iso \
 /mnt

(I took the -isohybrid-mbr template from the original ISO image.
 So it is ensured that its version matches the SYSLINUX programs
 inside the ISO image.)

Onto USB stick:

   dd if=test.iso bs=2048 of=/dev/sdb

On my test machine (a 64 bit AMD with BIOS) it does boot to
the Debian installer menue.

--

 Debian devs [...] create the stable iso with a xorriso that's not
 in Debian stable. But maybe it's a known issue, I will take a look.

It is known to the debian-cd mailing list.
Just a consequence of the long freeze windows before Debian release.


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: http://lists.debian.org/9873645692050754...@scdbackup.webframe.org



Problem creating iso for a USB stick

2014-01-16 Thread Stelian Iancu
Hello everybody,

I am trying to create a USB stick with Wheezy which would auto-install.
I've managed to create the iso successfully following the instructions
here: https://wiki.debian.org/DebianInstaller/Preseed/EditIso

I've checked the resulting iso with vmware fusion on my mac and it works,
i.e. it auto-installs Debian successfull.

However, after writing it to a USB stick, it doesn't boot, and I don't know
why.

The command I used to create the iso is as follows:

xorriso -as mkisofs -D -r -J -joliet-long -L -A Custom Install CD -b
isolinux/isolinux.bin -c isolinux/boot.cat -iso-level 3 -no-emul-boot
-partition_offset 16 -boot-load-size 4 -boot-info-table -o ../test.iso
-isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin ../cd

Any ideas what I might be doing wrong?

Thanks!

S.


Re: Problem creating iso for a USB stick

2014-01-16 Thread Brian
On Thu 16 Jan 2014 at 16:02:00 +0100, Stelian Iancu wrote:

 I am trying to create a USB stick with Wheezy which would auto-install.
 I've managed to create the iso successfully following the instructions
 here: https://wiki.debian.org/DebianInstaller/Preseed/EditIso
 
 I've checked the resulting iso with vmware fusion on my mac and it works,
 i.e. it auto-installs Debian successfull.
 
 However, after writing it to a USB stick, it doesn't boot, and I don't know
 why.

What is the output of

   fdisk -l your_ISO ?

 The command I used to create the iso is as follows:
 
 xorriso -as mkisofs -D -r -J -joliet-long -L -A Custom Install CD -b
 isolinux/isolinux.bin -c isolinux/boot.cat -iso-level 3 -no-emul-boot
 -partition_offset 16 -boot-load-size 4 -boot-info-table -o ../test.iso
 -isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin ../cd
 
 Any ideas what I might be doing wrong?

Not really (learning to use xorriso is on my to-do list) but the Debian
images have the command used for their creation in the mkisofs file in
.disk. You could also try the isohybrid command, which comes with the
syslinux package.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/16012014154903.4110dd4a0...@desktop.copernicus.demon.co.uk



Re: Problem creating iso for a USB stick

2014-01-16 Thread Thomas Schmitt
Hi,

i am the developer of xorriso and always interested
in learning about problems.

 However, after writing it to a USB stick, it doesn't boot,
 and I don't know why.

What kind of machine do you use ?
What kind of firmware does it have: PC-BIOS , UEFI, ... ?

How far does it get with booting ?
Does the USB stick make any difference when plugged in
or is it just ignored ?

How did you put the result onto USB stick ?


 I've checked the resulting iso with vmware fusion on my mac and it works,

Did you submit it as emulated hard disk (rather than as CD-ROM) ?
BIOS treats both device classes very different. (MBR vs. El Torito.)
An USB stick would be treated by real BIOS as hard disk.


 xorriso -as mkisofs -D -r -J -joliet-long -L -A Custom Install CD
 -b isolinux/isolinux.bin -c isolinux/boot.cat -iso-level 3 -no-emul-boot
 -partition_offset 16 -boot-load-size 4 -boot-info-table -o ../test.iso
 -isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin ../cd

This looks ok as far as PC-BIOS booting from USB stick is
concerned. It should work on i386 and amd64 processors.

You may leave out -partition_offset 16 and check whether this
changes anything with bootability. Some machines demand it, some
hate it. Most work with both variants.

(If you want to see Custom Install CD as name of the filesystem
 then you should use -V rather than -A.)


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: http://lists.debian.org/10482645742270145...@scdbackup.webframe.org