./sysutils/mkmemstick, Create a memory stick image from NetBSD Installation CDs

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 20111206, Package name: mkmemstick-20111206, Maintainer: agc

memory stick the easy way

I got tired of having to jump through hoops to install NetBSD on my
Eee PC, so I wrote a simple script to take a NetBSD release ISO and
convert it to an image that can be written to a USB memory stick.

To use the script, simply feed it an ISO and tell it where to write
the resulting image:

# sh mkmemstick.sh i386cd-5.0.1.iso i386memstick-5.0.1.img

The resulting image can be written to a memory stick using dd(1):

# dd if=i386memstick-5.0.1.img of=/dev/sd0d

Please note that this script depends on the sysutils/cdrtools package
for extracting the contents of the release ISO.

Hopefully this will be integrated with the build process so these
images are available for those who cannot prepare an image due to lack
of access to a NetBSD machine.


Required to run:
[sysutils/cdrtools]

Required to build:
[pkgtools/cwrappers]

Version history: (Expand)


CVS history: (Expand)


   2017-09-03 10:53:18 by Thomas Klausner | Files touched by this commit (165)
Log message:
Follow some redirects.
   2017-03-23 14:07:25 by Joerg Sonnenberger | Files touched by this commit (11)
Log message:
Remove unused/empty distinfo files.
   2014-10-09 16:07:17 by Thomas Klausner | Files touched by this commit (1163)
Log message:
Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles.
   2013-04-08 13:17:26 by Blue Rats | Files touched by this commit (109)
Log message:
Remove "Trailing empty lines." and/or "Trailing white-space."
   2012-10-23 21:51:39 by Aleksej Saushev | Files touched by this commit (447)
Log message:
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
   2011-12-06 17:13:42 by Andreas Gustafsson | Files touched by this commit (2)
Log message:
Find the first free vnd device using next_avil () function from Robert Elz
instead of hardcoding vnd0.
   2011-10-13 18:01:07 by Andreas Gustafsson | Files touched by this commit (4)
Log message:
Preserve file permissions when copying files from the ISO to the
memory stick image, because otherwise recent NetBSD versions that use
root on cd9660 instead of a ramdisk won't boot.

This is currently implemented by using a vnd mount instead of isoinfo -x
to extract the ISO contents.  This solution is less than ideal since
it requires root permissions and will fail if vnd0 is already in use.
Still, it's better than not working at all.  OK'd by agc.
   2011-05-05 08:53:28 by Alistair G. Crooks | Files touched by this commit (5) | Imported package
Log message:
Initial import of Jared Mcneill's script to create a memory stick from a
NetBSD installation ISO.

Further information can be found here:

	http://genericzero.wordpress.com/2009/0 … -easy-way/

	memory stick the easy way

	I got tired of having to jump through hoops to install NetBSD on my
	Eee PC, so I wrote a simple script to take a NetBSD release ISO and
	convert it to an image that can be written to a USB memory stick.

	To use the script, simply feed it an ISO and tell it where to write
	the resulting image:

	$ sh mkmemstick.sh i386cd-5.0.1.iso i386memstick-5.0.1.img

	The resulting image can be written to a memory stick using dd(1):

	$ dd if=i386memstick-5.0.1.img of=/dev/sd0d

	Please note that this script depends on the sysutils/cdrtools package
	for extracting the contents of the release ISO.

	Hopefully this will be integrated with the build process so these
	images are available for those who cannot prepare an image due to lack
	of access to a NetBSD machine.