Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2012 18:38:41 +1000
From:      Da Rock <9Phackers@herveybayaustralia.com.au>
To:        "hackers@freebsd.org" <hackers@freebsd.org>
Subject:   iso2flash img
Message-ID:  <4F699391.9070804@herveybayaustralia.com.au>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F699391.9070804>