Re: iso2flash img

2012-03-23 Thread Thomas Schmitt
Hi,

Da Rock freebsd-hack...@herveybayaustralia.com.au wrote:
 It shows isolinux 4.04, blah blah, and a blinking cursor. It goes no further
 than that, which I why I commented that it seemed an unlikely solution.

If it can say isolinux then the boot process has succeeded as far
as the boot sectors of the ISO image are responsible.


 The system is an Acer AspireOne Netbook D255. I'm using an i386 image
 because its only an Atom.

Can you try whether the Ubuntu image boots from CD or DVD ?


 I did test a amd64 system and it worked though... hmmm. I wonder if they
 mixed up their images? That'd be a funny cock-up :D

At that stage you are still in the SYSLINUX/ISOLINUX system. Afaik, there
is no 64 bit version of it. So that one can hardly be totally unsuitable
for 32 bit systems.

I am not familiar with the entrails of the boot loaders. Maybe you can get
help at the SYSLINUX mailing list sysli...@zytor.com.
  http://www.zytor.com/mailman/listinfo/syslinux

Google ubuntu atom isolinux finds an older issue:
  https://bugs.launchpad.net/ubuntu/+bug/774552
points to
  https://bugs.launchpad.net/ubuntu/+source/syslinux/+bug/617779
  Just type help on the BOOT prompt, and when you get the help menu,
   just hit enter. The system will now boot!

Does ISOLINUX allow you to enter commands ?



One thing comes to my mind which you could try. It is quite unlikely
to be the culprit though:

By a bug in xorriso-1.0.8 the image size is not aligned to a full
megabyte, as is prescribed for isohybrid.
So you could try to set the end of the USB stick DOS partition 1 to
the next higher multiple of 2048 disk blocks minus 1.
(Make sure that no block content gets changed after byte 64 * 512.)

If this happens to work, then we should inform Ubuntu to upgrade
their xorriso to 1.1.0 or later.
(Up to now i only know that the correct size silences warnings of
 Linux fdisk about different physical/logical beginnings.)


Have a nice day :)

Thomas

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-23 Thread Da Rock

On 03/23/12 17:06, Thomas Schmitt wrote:

Hi,

Da Rockfreebsd-hack...@herveybayaustralia.com.au  wrote:

It shows isolinux 4.04, blah blah, and a blinking cursor. It goes no further
than that, which I why I commented that it seemed an unlikely solution.

If it can say isolinux then the boot process has succeeded as far
as the boot sectors of the ISO image are responsible.



The system is an Acer AspireOne Netbook D255. I'm using an i386 image
because its only an Atom.

Can you try whether the Ubuntu image boots from CD or DVD ?

Thats the whole point of this exercise - I can't, no cdrom: its a netbook.

I did test a amd64 system and it worked though... hmmm. I wonder if they
mixed up their images? That'd be a funny cock-up :D

At that stage you are still in the SYSLINUX/ISOLINUX system. Afaik, there
is no 64 bit version of it. So that one can hardly be totally unsuitable
for 32 bit systems.

I am not familiar with the entrails of the boot loaders. Maybe you can get
help at the SYSLINUX mailing list sysli...@zytor.com.
   http://www.zytor.com/mailman/listinfo/syslinux

Google ubuntu atom isolinux finds an older issue:
   https://bugs.launchpad.net/ubuntu/+bug/774552
points to
   https://bugs.launchpad.net/ubuntu/+source/syslinux/+bug/617779
   Just type help on the BOOT prompt, and when you get the help menu,
just hit enter. The system will now boot!

Does ISOLINUX allow you to enter commands ?

Nope. Can't even type 'hello world!'.




One thing comes to my mind which you could try. It is quite unlikely
to be the culprit though:

By a bug in xorriso-1.0.8 the image size is not aligned to a full
megabyte, as is prescribed for isohybrid.
So you could try to set the end of the USB stick DOS partition 1 to
the next higher multiple of 2048 disk blocks minus 1.
(Make sure that no block content gets changed after byte 64 * 512.)

If this happens to work, then we should inform Ubuntu to upgrade
their xorriso to 1.1.0 or later.
(Up to now i only know that the correct size silences warnings of
  Linux fdisk about different physical/logical beginnings.)
Dunno. Tried all kinds of tricks, but no go. The client chose FreeBSD 
anyway, so yay! :)


Ubuntu issue not my problem; I'm sure they'll work it out if it comes up 
again. My disk worked in VBox, so I'm sure it is just a netbook thing. I 
also use that disk as my install disk, so I'm not sure exactly what 
partitions been on it now, it has been used for FreeBSD, PC-BSD, Linux 
distros, etc.

Have a nice day :)

Thomas


Thanks Thomas.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-23 Thread Thomas Schmitt
Hi,

 Thats the whole point of this exercise - I can't, no cdrom: its a netbook.

I hoped that you had a USB attachable optical drive in reach for development.


 My disk worked in VBox, so I'm sure it is just a netbook thing. I
 also use that disk as my install disk, so I'm not sure exactly what
 partitions been on it now, it has been used for FreeBSD, PC-BSD, Linux
 distros, etc.

After copying the ISO image to the base device (/dev/da0 rather than
/dev/da0s1), it now carries the isohybrid MBR which marks a single DOS
partition and leaves the rest of the disk unclaimed. A partition editor
should be able to push the end of the partition to the next 1 MiB boundary,
without altering the partition content.

But as said, it is unlikely that this misalignement of the partition end
is the cause. The observable state of ISOLINUX rather points to a problem
between hardware, firmware, and the SYSLINUX programs. 


Have a nice day :)

Thomas

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-23 Thread Da Rock

On 03/23/12 22:08, Thomas Schmitt wrote:

Hi,


Thats the whole point of this exercise - I can't, no cdrom: its a netbook.

I hoped that you had a USB attachable optical drive in reach for development.

Haven't you heard? CD's are so yesterday... ;)

The reality is I don't have a working CDROM unless its builtin. Haven't 
needed one for years now, so no point. The servers and desktops have one 
as well, but most are not working very well anymore due to non use - too 
much bump and not enough grind. The laptops give me what I need atm.



My disk worked in VBox, so I'm sure it is just a netbook thing. I
also use that disk as my install disk, so I'm not sure exactly what
partitions been on it now, it has been used for FreeBSD, PC-BSD, Linux
distros, etc.

After copying the ISO image to the base device (/dev/da0 rather than
/dev/da0s1), it now carries the isohybrid MBR which marks a single DOS
partition and leaves the rest of the disk unclaimed. A partition editor
should be able to push the end of the partition to the next 1 MiB boundary,
without altering the partition content.

But as said, it is unlikely that this misalignement of the partition end
is the cause. The observable state of ISOLINUX rather points to a problem
between hardware, firmware, and the SYSLINUX programs.
My thoughts exactly. Could be Acer, netbook firmware, or the Atom I'd 
say (or a combination of these).

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-23 Thread Thomas Schmitt
Hi,

 Haven't you heard? CD's are so yesterday... ;)

Just wait until the holodiscs come out. :))
  http://en.wikipedia.org/wiki/Holographic_Versatile_Disc


Have a nice day :)

Thomas

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-23 Thread Da Rock

On 03/23/12 22:38, Thomas Schmitt wrote:

Hi,


Haven't you heard? CD's are so yesterday... ;)

Just wait until the holodiscs come out. :))
   http://en.wikipedia.org/wiki/Holographic_Versatile_Disc
Now thats what I'm talkin' 'bout! Although I could still probably fill 
one in a matter of hours... ;)

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-22 Thread Luigi Rizzo
On Wed, Mar 21, 2012 at 11:11:42PM +1000, Da Rock wrote:
...
 In the meantime I think I may have stumbled on the solution to the 
 script: In the midst of all the output it mentions usage realpath [-q] 
 path. I wasn't 100% sure exactly what that meant, but I put the full 
 path to the iso and a full path to an img file and I *think* that 
 worked. I've yet to test the result; and I have no idea of the '-q' 
 option

REALPATH(1) FreeBSD General Commands ManualREALPATH(1)

NAME
 realpath -- return resolved physical path

SYNOPSIS
 realpath [-q] path [...]

DESCRIPTION
 The realpath utility uses the realpath(3) function to resolve all sym-
 bolic links, extra `/' characters and references to /./ and /../ in path.

 If -q is specified, warnings will not be printed when realpath(3) fails.

EXIT STATUS
 The realpath utility exits 0 on success, and 0 if an error occurs.

SEE ALSO
 realpath(3)

HISTORY
 The realpath utility first appeared in FreeBSD 4.3.

FreeBSD 8.1November 24, 2000   FreeBSD 8.1
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-22 Thread Luigi Rizzo
On Wed, Mar 21, 2012 at 10:52:53AM -0500, Mark Felder wrote:
 As an alternative I recently purchased a Zalman ZM-VE200 device (there's  
 also a USB3.0 flavor) that lets you copy ISOs to it and it will emulate a  
 CDROM/DVDROM/BDROM for you so you never have to deal with this mess again.  
 It works amazingly well. I was tired of fighting this problem and this is  
 an amazing solution -- I can keep every ISO I ever need on a single drive.
 
 http://www.zalman.com/eng/product/Product_Read.asp?idx=431
 http://www.zalman.com/eng/product/Product_Read.asp?idx=459
 http://www.rmprepusb.com/tutorials/ve200

really nice, thanks for the link. Now if they had something
that supported a USB key it would be even nicer...

cheers
luigi
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-22 Thread Rodrigo OSORIO
On 22/03/12 12:15 +0100, Luigi Rizzo wrote:
 On Wed, Mar 21, 2012 at 10:52:53AM -0500, Mark Felder wrote:
  As an alternative I recently purchased a Zalman ZM-VE200 device (there's  
  also a USB3.0 flavor) that lets you copy ISOs to it and it will emulate a  
  CDROM/DVDROM/BDROM for you so you never have to deal with this mess again.  
  It works amazingly well. I was tired of fighting this problem and this is  
  an amazing solution -- I can keep every ISO I ever need on a single drive.
  
  http://www.zalman.com/eng/product/Product_Read.asp?idx=431
  http://www.zalman.com/eng/product/Product_Read.asp?idx=459
  http://www.rmprepusb.com/tutorials/ve200
 
 really nice, thanks for the link. Now if they had something
 that supported a USB key it would be even nicer...
 
 cheers
 luigi
 ___
 freebsd-hackers@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org

This remembers me a recent kickstarter project called isostick :)

- rodrigo

http://www.kickstarter.com/projects/elegantinvention/isostick-the-optical-drive-in-a-usb-stick
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-22 Thread Da Rock

On 03/21/12 23:34, Andrzej Tobola wrote:

On Wed, Mar 21, 2012 at 11:16:59PM +1000, Da Rock wrote:

On 03/21/12 23:06, Matthias Apitz wrote:

Hello,

I've forwarded your question to a colleague who is an Ubuntu fan and he
replied, that the creation of a booting Ubuntu USB key is possile with
Ubuntu tools/methods only, i.e. booting the Ubuntu live CD and following the
ways to install it onto the key (and not on disk).

He wrote some years ago a small Wiki page about, it is in German but
maybe you can clue something from the commands there:

http://mikiwiki.org/wiki/Ubuntu_8.10_Intrepid_Ibex/Installation_2009.04.07_usbstick

I'll have to translate that, but I am trying to get a 'live' usb disk to
demo on the clients cdrom less unit. I know the cd is live, I assumed I
could get a live usb disk from that based on their instructions.

For a supposedly user friendly system, obtaining install media is not..
:/ Maybe a little too much debian in the system ;)

You can use VirtualBox - boot live iso, connect usb and use native tool there.

The saga continues...

That doesn't work either- the live disk doesn't have the tools required! 
They obviously have no concept of simplicity... this really is insane :/


Back to the drawing board...
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-22 Thread Royce Williams
On Thu, Mar 22, 2012 at 3:15 AM, Luigi Rizzo ri...@iet.unipi.it wrote:
 On Wed, Mar 21, 2012 at 10:52:53AM -0500, Mark Felder wrote:
 As an alternative I recently purchased a Zalman ZM-VE200 device (there's
 also a USB3.0 flavor) that lets you copy ISOs to it and it will emulate a
 CDROM/DVDROM/BDROM for you so you never have to deal with this mess again.
 It works amazingly well. I was tired of fighting this problem and this is
 an amazing solution -- I can keep every ISO I ever need on a single drive.

 http://www.zalman.com/eng/product/Product_Read.asp?idx=431
 http://www.zalman.com/eng/product/Product_Read.asp?idx=459
 http://www.rmprepusb.com/tutorials/ve200

 really nice, thanks for the link. Now if they had something
 that supported a USB key it would be even nicer...

I *love* mine - it almost always Just Works.  Since all you do is buy
the enclosure (around $30), you can put in whatever size 2.5 drive
you'd like.  I threw in a 750G, so I have ~98G of CD and DVD images.
There is a physical rocker switch for navigating the list of ISOs and
mounting/unmounting them.  You can also toggle ISO-only, drive-only,
or hybrid/both mode, so I've got lots of other stuff on there that's
handy once you've booted.  It also has a physical read-only switch -
great feature.

The only hangup I've seen so far is if the BIOS doesn't support
USB-attached optical drives.  There are probably some workarounds for
that out there (boot from a USB and then chainload-ish the optical
drive), but I have not yet pursued them.

There is undocumented support for floppy images as well.  I haven't
tested it, but there are success stories.

*Highly* recommended.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-22 Thread Thomas Schmitt
Hi,

Vitaly Magerya vmage...@gmail.com:
  you might want to try to dd the iso image directly onto USB instead; there
  where talks that Ubuntu would support this starting at 11.10.

Da Rock freebsd-hack...@herveybayaustralia.com.au:
 Nada. Tried that and it didn't work. I'm not sure how that would work given
 that it uses isolinux to boot- ergo needs a cd to load the kernel. Maybe
 some way to determine the install media?

The trick is called isohybrid.
It works by a DOS MBR which starts the same executable boot image
that is pointed to by the El Torito boot catalog.
If the ISO is on a hard disk (or alike), then the BIOS boots via MBR.
If it is on an optical medium, then the BIOS boots via El Torito.


The question is rather why it does not work for you.

I downloaded
  ubuntu-11.10-desktop-i386.iso
from
  http://www.ubuntu.com/download/ubuntu/download
and put it onto an USB stick (by a Linux machine, but that should not matter)
  dd of=/dev/sdc if=ubuntu-11.10-desktop-i386.iso bs=2048
Note that /dev/sdc is not the first partition but the whole USB stick.

This stick boots on amd64 hardware.
After some waiting with sparse iconography i get to the question
whether i want to try or to install. I choose to try and get a
graphical desktop. From the icon list i start Firefox and google
a bit via my internet router. All seems well.


On FreeBSD, GEOM complains about the DOS partition alignment.
Partition 1 starts at block 64.
  fdisk -p /dev/da0
  # /dev/da0
  g c243 h255 s63
  p 1 0x17 64 1423896
  a 1
Nevertheless these two commands work and open access to the image content:
  mount -t cd9660 /dev/da0 /mnt
  mount -t cd9660 /dev/da0s1 /mnt
(The ISO has two superblocks and two directory trees.)


Does your hardware boot from USB stick at all ?
Is its firmware (U)EFI rather than BIOS ?


Have a nice day :)

Thomas

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-22 Thread Luigi Rizzo
On Thu, Mar 22, 2012 at 05:42:27PM +0100, Thomas Schmitt wrote:
 Hi,
 
 Vitaly Magerya vmage...@gmail.com:
   you might want to try to dd the iso image directly onto USB instead; there
   where talks that Ubuntu would support this starting at 11.10.
 
 Da Rock freebsd-hack...@herveybayaustralia.com.au:
  Nada. Tried that and it didn't work. I'm not sure how that would work given
  that it uses isolinux to boot- ergo needs a cd to load the kernel. Maybe
  some way to determine the install media?
 
 The trick is called isohybrid.
 It works by a DOS MBR which starts the same executable boot image
 that is pointed to by the El Torito boot catalog.
 If the ISO is on a hard disk (or alike), then the BIOS boots via MBR.
 If it is on an optical medium, then the BIOS boots via El Torito.

interesting. It does work for me indeed.
And it might be a nice trick for our images too, so we don't
have to build a memstick and an ISO image...

cheers
luigi

 The question is rather why it does not work for you.
 
 I downloaded
   ubuntu-11.10-desktop-i386.iso
 from
   http://www.ubuntu.com/download/ubuntu/download
 and put it onto an USB stick (by a Linux machine, but that should not matter)
   dd of=/dev/sdc if=ubuntu-11.10-desktop-i386.iso bs=2048
 Note that /dev/sdc is not the first partition but the whole USB stick.
 
 This stick boots on amd64 hardware.
 After some waiting with sparse iconography i get to the question
 whether i want to try or to install. I choose to try and get a
 graphical desktop. From the icon list i start Firefox and google
 a bit via my internet router. All seems well.
 
 
 On FreeBSD, GEOM complains about the DOS partition alignment.
 Partition 1 starts at block 64.
   fdisk -p /dev/da0
   # /dev/da0
   g c243 h255 s63
   p 1 0x17 64 1423896
   a 1
 Nevertheless these two commands work and open access to the image content:
   mount -t cd9660 /dev/da0 /mnt
   mount -t cd9660 /dev/da0s1 /mnt
 (The ISO has two superblocks and two directory trees.)
 
 
 Does your hardware boot from USB stick at all ?
 Is its firmware (U)EFI rather than BIOS ?
 
 
 Have a nice day :)
 
 Thomas
 
 ___
 freebsd-hackers@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-22 Thread Thomas Schmitt
Hi,

  The trick is called isohybrid.

Luigi Rizzo ri...@iet.unipi.it wrote:
 interesting. It does work for me indeed.

So why not for Da Rock ?


 And it might be a nice trick for our images too, so we don't
 have to build a memstick and an ISO image...

I would be happy to help with that.
I am the developer of program xorriso which in the role of mkisofs
has composed that Ubuntu image. My knowlege is only about pointing BIOS
to the boot loader start programs, not about those boot systems themselves.

A while ago i exercised the most simple case of
  http://wiki.freebsd.org/AvgLiveCD
with the mkisofs emulation of xorriso. It booted.

An MBR can be inserted easily by mkisofs option -G.
isohybrid demands to patch that MBR with the LBA of the boot image
and to set up the DOS partition table. GRUB2 demands only to set up
the partition table. (Special xorrisofs options get employed.)

What would a FreeBSD bootloader MBR need to know about the data in
the ISO image to start up and handle it like a read-only hard disk ?
Do programs of the first boot stages need to know their own LBA in
the image resp. partition ?

The El Torito and MBR equipment of GRUB2 can provide the same functionality
as ISOLINUX with isohybrid. GRUB2 script grub-mkrescue demonstrates this.
I understand Debian GNU/kFreeBSD boots via El Torito and GRUB2. But it
makes no use of the opportunity to have an MBR too.
I boot my own FreeBSD 8-STABLE from hard disk via MBR, GRUB2 and a
chainloaded FreeBSD boot loader.


Have a nice day :)

Thomas

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-22 Thread Da Rock

On 03/23/12 04:46, Thomas Schmitt wrote:

Hi,


The trick is called isohybrid.

Luigi Rizzori...@iet.unipi.it  wrote:

interesting. It does work for me indeed.

So why not for Da Rock ?

Starting to feel left out here :)

I tried with your flags to dd (as opposed to those on Ubuntu - bs=1m - 
not that I thought it would make much diff), and it got as far as the 
last time. It shows isolinux 4.04, blah blah, and a blinking cursor. It 
goes no further than that, which I why I commented that it seemed an 
unlikely solution.


The system is an Acer AspireOne Netbook D255. I'm using an i386 image 
because its only an Atom.


I did test a amd64 system and it worked though... hmmm. I wonder if they 
mixed up their images? That'd be a funny cock-up :D




And it might be a nice trick for our images too, so we don't
have to build a memstick and an ISO image...

I would be happy to help with that.
I am the developer of program xorriso which in the role of mkisofs
has composed that Ubuntu image. My knowlege is only about pointing BIOS
to the boot loader start programs, not about those boot systems themselves.

A while ago i exercised the most simple case of
   http://wiki.freebsd.org/AvgLiveCD
with the mkisofs emulation of xorriso. It booted.

An MBR can be inserted easily by mkisofs option -G.
isohybrid demands to patch that MBR with the LBA of the boot image
and to set up the DOS partition table. GRUB2 demands only to set up
the partition table. (Special xorrisofs options get employed.)

What would a FreeBSD bootloader MBR need to know about the data in
the ISO image to start up and handle it like a read-only hard disk ?
Do programs of the first boot stages need to know their own LBA in
the image resp. partition ?

The El Torito and MBR equipment of GRUB2 can provide the same functionality
as ISOLINUX with isohybrid. GRUB2 script grub-mkrescue demonstrates this.
I understand Debian GNU/kFreeBSD boots via El Torito and GRUB2. But it
makes no use of the opportunity to have an MBR too.
I boot my own FreeBSD 8-STABLE from hard disk via MBR, GRUB2 and a
chainloaded FreeBSD boot loader.


Have a nice day :)

Thomas

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


iso2flash img

2012-03-21 Thread Da Rock
I'm doing some work for a client and I need to get a copy of ubuntu to 
demo for them. I can only use a usb disk (no cdrom), and unfortunately 
the guys at ubuntu are too lazy to create a flash img themselves and 
expect you to do it yourself. Of course the tools to do this are only 
available on Winblows and Mac (hdiutils? I think). They have 
instructions on the site - which of course are useless to me being a 
FreeBSD freak ;)


I googled a bit and found an old post here from Luigi 
(http://osdir.com/ml/freebsd-hackers/2008-11/msg00245.html) which had a 
script to do this, but I'm having trouble with it- is anyone familiar 
with this? I'm on a bit of a deadline... and yes, I did install syslinux 
port.


Output:

../iso2flash ubuntu-11.10-desktop-i386.iso
usage: realpath [-q] path [...]
type  tree /usr/home/user/Downloads/ubuntu-11.10-desktop-i386.iso 
image 
Extract files from 
/usr/home/user/Downloads/ubuntu-11.10-desktop-i386.iso into 
/usr/home/user/Downloads/ubuntu-11.10-desktop-i386.iso.tree
chmod: /usr/home/user/Downloads/ubuntu-11.10-desktop-i386.iso.tree: No 
such file or directory

total 6
drwxr-xr-x  2 user user   512 Mar 21 18:22 .
drwxr-xr-x  6 user user  2560 Mar 21 18:22 ..
total 2500
drwxr-xr-x  11 user user  512 Mar 21 18:23 .
drwxr-xr-x   6 user user 2560 Mar 21 18:22 ..
drwx--   2 user user  512 Oct 13 01:15 .disk
-r   1 user user  225 Oct 13 01:15 README.diskdefines
-r   1 user user  143 Oct 13 01:15 autorun.inf
drwx--   3 user user  512 Oct 13 01:15 boot
drwx--   2 user user  512 Oct 13 01:15 casper
drwx--   3 user user  512 Oct 13 01:15 dists
drwx--   2 user user  512 Oct 13 01:15 install
drwx--   2 user user 2560 Oct 13 01:15 isolinux
-r   1 user user 4418 Oct 13 01:15 md5sum.txt
drwx--   2 user user  512 Oct 13 01:15 pics
drwx--   4 user user  512 Oct 13 01:15 pool
drwx--   2 user user  512 Oct 13 01:15 preseed
-r   1 user user  2491552 Oct 13 01:15 wubi.exe
image size is 711676 kb
guess type
8+0 records in
8+0 records out
1048576 bytes transferred in 0.005349 secs (196035057 bytes/sec)
newfs_msdos: /dev/711676: No such file or directory
syslinux: invalid media signature (not a FAT filesystem?)
moving boot code
mv: rename 
/usr/home/user/Downloads/ubuntu-11.10-desktop-i386.iso.tree/isolinux.cfg 
to 
/usr/home/user/Downloads/ubuntu-11.10-desktop-i386.iso.tree/syslinux.cfg: 
No such file or directory

moving files...
init :: non DOS media
Cannot initialize '::'
Bad target ::/
init :: non DOS media
Cannot initialize '::'

I'm going to keep on investigating, I tried this on 8.2 and 9.0 with no 
luck. I intend to attempt a usb install of FreeBSD at some point (on the 
todo list for some time now), but at this point its still a bit of a 
mystery; so I think I may have some trouble understanding this atm. A 
little instruction would go a long way if someone could provide some 
pointers.


Cheers
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-21 Thread Vitaly Magerya
Da Rock wrote:
 I googled a bit and found an old post here from Luigi 
 (http://osdir.com/ml/freebsd-hackers/2008-11/msg00245.html) which had a 
 script to do this, but I'm having trouble with it- is anyone familiar 
 with this? I'm on a bit of a deadline...

Can't help you with that script (I failed to make it work too), but you
might want to try to dd the iso image directly onto USB instead; there
where talks that Ubuntu would support this starting at 11.10.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-21 Thread Matthias Apitz

Hello,

I've forwarded your question to a colleague who is an Ubuntu fan and he
replied, that the creation of a booting Ubuntu USB key is possile with
Ubuntu tools/methods only, i.e. booting the Ubuntu live CD and following the
ways to install it onto the key (and not on disk).

He wrote some years ago a small Wiki page about, it is in German but
maybe you can clue something from the commands there:

http://mikiwiki.org/wiki/Ubuntu_8.10_Intrepid_Ibex/Installation_2009.04.07_usbstick

HIH

matthias


-- 
Matthias Apitz
e g...@unixarea.de - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-21 Thread Da Rock

On 03/21/12 22:55, Vitaly Magerya wrote:

Da Rock wrote:

I googled a bit and found an old post here from Luigi
(http://osdir.com/ml/freebsd-hackers/2008-11/msg00245.html) which had a
script to do this, but I'm having trouble with it- is anyone familiar
with this? I'm on a bit of a deadline...

Can't help you with that script (I failed to make it work too), but you
might want to try to dd the iso image directly onto USB instead; there
where talks that Ubuntu would support this starting at 11.10.
Interesting. I'll have to look further into how that would work. Also, 
why wouldn't they just tell Mac users to do that?


In the meantime I think I may have stumbled on the solution to the 
script: In the midst of all the output it mentions usage realpath [-q] 
path. I wasn't 100% sure exactly what that meant, but I put the full 
path to the iso and a full path to an img file and I *think* that 
worked. I've yet to test the result; and I have no idea of the '-q' 
option

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-21 Thread Da Rock

On 03/21/12 23:06, Matthias Apitz wrote:

Hello,

I've forwarded your question to a colleague who is an Ubuntu fan and he
replied, that the creation of a booting Ubuntu USB key is possile with
Ubuntu tools/methods only, i.e. booting the Ubuntu live CD and following the
ways to install it onto the key (and not on disk).

He wrote some years ago a small Wiki page about, it is in German but
maybe you can clue something from the commands there:

http://mikiwiki.org/wiki/Ubuntu_8.10_Intrepid_Ibex/Installation_2009.04.07_usbstick
I'll have to translate that, but I am trying to get a 'live' usb disk to 
demo on the clients cdrom less unit. I know the cd is live, I assumed I 
could get a live usb disk from that based on their instructions.


For a supposedly user friendly system, obtaining install media is not.. 
:/ Maybe a little too much debian in the system ;)

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-21 Thread Da Rock

On 03/21/12 23:11, Da Rock wrote:

On 03/21/12 22:55, Vitaly Magerya wrote:

Da Rock wrote:

I googled a bit and found an old post here from Luigi
(http://osdir.com/ml/freebsd-hackers/2008-11/msg00245.html) which had a
script to do this, but I'm having trouble with it- is anyone familiar
with this? I'm on a bit of a deadline...

Can't help you with that script (I failed to make it work too), but you
might want to try to dd the iso image directly onto USB instead; there
where talks that Ubuntu would support this starting at 11.10.
Interesting. I'll have to look further into how that would work. Also, 
why wouldn't they just tell Mac users to do that?


In the meantime I think I may have stumbled on the solution to the 
script: In the midst of all the output it mentions usage realpath 
[-q] path. I wasn't 100% sure exactly what that meant, but I put the 
full path to the iso and a full path to an img file and I *think* that 
worked. I've yet to test the result; and I have no idea of the '-q' 
option
Nada. Booted it, and all I got was a blinking cursor, and I couldn't 
even type hello world! :(


Back to square one... I guess I'll try a direct copy.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-21 Thread Mark Felder
As an alternative I recently purchased a Zalman ZM-VE200 device (there's  
also a USB3.0 flavor) that lets you copy ISOs to it and it will emulate a  
CDROM/DVDROM/BDROM for you so you never have to deal with this mess again.  
It works amazingly well. I was tired of fighting this problem and this is  
an amazing solution -- I can keep every ISO I ever need on a single drive.


http://www.zalman.com/eng/product/Product_Read.asp?idx=431
http://www.zalman.com/eng/product/Product_Read.asp?idx=459
http://www.rmprepusb.com/tutorials/ve200


Hope that helps someone
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-21 Thread Simon Dick
On 21 March 2012 15:52, Mark Felder f...@feld.me wrote:
 As an alternative I recently purchased a Zalman ZM-VE200 device (there's
 also a USB3.0 flavor) that lets you copy ISOs to it and it will emulate a
 CDROM/DVDROM/BDROM for you so you never have to deal with this mess again.
 It works amazingly well. I was tired of fighting this problem and this is an
 amazing solution -- I can keep every ISO I ever need on a single drive.

 http://www.zalman.com/eng/product/Product_Read.asp?idx=431
 http://www.zalman.com/eng/product/Product_Read.asp?idx=459
 http://www.rmprepusb.com/tutorials/ve200


 Hope that helps someone

Have to say that I have one too and have had no problems with it yet :)
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: iso2flash img

2012-03-21 Thread Da Rock

On 03/21/12 22:55, Vitaly Magerya wrote:

Da Rock wrote:

I googled a bit and found an old post here from Luigi
(http://osdir.com/ml/freebsd-hackers/2008-11/msg00245.html) which had a
script to do this, but I'm having trouble with it- is anyone familiar
with this? I'm on a bit of a deadline...

Can't help you with that script (I failed to make it work too), but you
might want to try to dd the iso image directly onto USB instead; there
where talks that Ubuntu would support this starting at 11.10.
Nada. Tried that and it didn't work. I'm not sure how that would work 
given that it uses isolinux to boot- ergo needs a cd to load the kernel. 
Maybe some way to determine the install media?


Bit of an unnecessary complication though if you ask me... just make an 
iso _and_ an img. I'm sure canonical are not that strapped for resources...

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org