<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
  <channel>
    <title>hubertf's NetBSD blog</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/</link>
    <description>Blog about the NetBSD open source operating system</description>
    <language>en</language>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <generator>blosxom/2.1.2</generator>

  <item>
    <title>The adventure of rebuilding g4u from source</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20180317_2005.html</link>
    <pubDate>Sat, 17 Mar 2018 20:18:00 GMT</pubDate>
    <description>
      
I was asked by a long-time 
&lt;a href=&quot;https://www.feyrer.de/g4u/&quot;&gt;g4u&lt;/a&gt; user on help with rebuilding
g4u from sources. After pointing at the
&lt;a href=&quot;http://www.feyrer.de/g4u/#rebuilding&quot;&gt;instructions on the homepage&lt;/a&gt;,
we figured out that a few lose odds and ends didin&apos;t match.
After bouncing some advices back and forth, I ventured into the 
frabjous joy of starting a rebuild from scratch, and quick enough
ran into some problems, too.
&lt;p&gt;

Usually I cross-compile g4u from Mac OS X, but for the fun of it
I did it on NetBSD (7.0-stable branch, amd64 architecture in VMware Fusion)
this time. After waiting forever on the CVS checkout, I found that
empty directories were not removed - that&apos;s what you get if you have -P in your ~/.cvsrc file.
&lt;p&gt;

I already had the hint that the &quot;g4u-build&quot; script needed a change to have
&quot;G4U_BUILD_KERNEL=true&quot;.
&lt;p&gt;

From there, things went almost smooth: building indicated a few
files that popped up &quot;variable may be used uninitialized&quot; errors,
and which -- thanks to -Werror -- bombed out the build. Fixing
was easy, and I have no idea why that built for me on the release.
I have sent
&lt;a href=&quot;https://sourceforge.net/p/g4u/mailman/attachment/4DFB5B11-F8C5-4D2C-BF94-9DE43A831A18%40feyrer.de/2/&quot;&gt;a patch with the required changes&lt;/a&gt;
&lt;a href=&quot;https://sourceforge.net/p/g4u/mailman/message/36265571/&quot;&gt;to the g4u-help mailing list&lt;/a&gt;. (After fixing that I apparently
got unsubscribed from my own support mailing list - thank you
very much, Sourceforge ;)).
&lt;p&gt;

After those little hassles, the build worked fine, and gave me
the floppy disk and ISO images that I expected:

&lt;pre&gt;
&gt;       ls -l `pwd`/g4u*fs
&gt;       -rw-r--r--  2 feyrer  staff  1474560 Mar 17 19:27 /home/feyrer/work/NetBSD/cvs/src-g4u.v3-deOliviera/src/distrib/i386/g4u/g4u1.fs
&gt;       -rw-r--r--  2 feyrer  staff  1474560 Mar 17 19:27 /home/feyrer/work/NetBSD/cvs/src-g4u.v3-deOliviera/src/distrib/i386/g4u/g4u2.fs
&gt;       -rw-r--r--  2 feyrer  staff  1474560 Mar 17 19:27 /home/feyrer/work/NetBSD/cvs/src-g4u.v3-deOliviera/src/distrib/i386/g4u/g4u3.fs
&gt;       -rw-r--r--  2 feyrer  staff  1474560 Mar 17 19:27 /home/feyrer/work/NetBSD/cvs/src-g4u.v3-deOliviera/src/distrib/i386/g4u/g4u4.fs
&gt;       ls -l `pwd`/g4u.iso
&gt;       -rw-r--r--  2 feyrer  staff  6567936 Mar 17 19:27 /home/feyrer/work/NetBSD/cvs/src-g4u.v3-deOliviera/src/distrib/i386/g4u/g4u.iso
&gt;       ls -l `pwd`/g4u-kernel.gz
&gt;       -rw-r?r--  1 feyrer  staff  6035680 Mar 17 19:27 /home/feyrer/work/NetBSD/cvs/src-g4u.v3-deOliviera/src/distrib/i386/g4u/g4u-kernel.gz &lt;/pre&gt;


Next steps are to confirm the above changes as working
from my faithful tester, and then look into how to merge this
into the
&lt;a href=&quot;http://www.feyrer.de/g4u/#rebuilding&quot;&gt;build instructions &lt;/a&gt;.

    </description>
  </item>
  <item>
    <title>g4u 2.6 released</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20170608_1558.html</link>
    <pubDate>Thu, 08 Jun 2017 16:19:00 GMT</pubDate>
    <description>
      
After a five-year period for beta-testing and updating,
I have finally released g4u 2.6. With its origins in 1999,
I&apos;d like to say: Happy 18th Birthday, g4u!
&lt;p&gt;

&lt;b&gt;About g4u:&lt;/b&gt;
g4u (&quot;ghosting for unix&quot;) is a NetBSD-based bootfloppy/CD-ROM that allows easy cloning of PC harddisks to deploy a common setup on a number of PCs using FTP. The floppy/CD offers two functions. The first is to upload the compressed image of a local harddisk to a FTP server, the other is to restore that image via FTP, uncompress it and write it back to disk. Network configuration is fetched via DHCP. As the harddisk is processed as an image, any filesystem and operating system can be deployed using g4u. Easy cloning of local disks as well as partitions is also supported.
&lt;p&gt;

&lt;b&gt;The past:&lt;/b&gt;
When I started g4u, I had the task to install a number
of lab machines with a dual-boot of Windows NT and NetBSD.
The hype was about Microsoft&apos;s &quot;Zero Administration Kit&quot; (ZAK)
then, but that did barely work for the Windows part - file transfers were 
slow, depended on the clients&apos; hardware a lot (requiring fiddling with MS
DOS network driver disks), and on the ZAK server the files for
installing happened do disappear for no good reason every now and then.
Not working well, and leaving out NetBSD (and everything elase),
I created g4u. This gave me the (relative) pain of getting 
things working once, but with the option to easily add network 
drivers as they appeared in NetBSD (and oh they did!), plus allowed
me to install any operating system.
&lt;p&gt;

&lt;b&gt;The present:&lt;/b&gt;
We&apos;ve used g4u successfully in our labs then, booting from CDROM.
I also got many donations from public and private instituations
plus comanies from many sectors, indicating that g4u does make a
difference.
&lt;p&gt;

In the mean time, the world has changed, and CDROMs aren&apos;t used
that much any more. Network boot and USB sticks are today&apos;s devices
of choice, cloning of a full disk without knowing its structure
has both advantages but also disadvantages, and g4u&apos;s user interface
is still command-line based with not much space for automation.
For storage, FTP servers are nice and fast, but alternatives
like SSH/SFTP, NFS, iSCSI and SMB for remote storage plus local storage
(back to fun with filesystems, anyone? avoiding this was why g4u
was created in the first place!) should be considered these days.
Further aspects include integrity (checksums), confidentiality
(encryption).
This leaves a number of open points to address either by
future releases, or by other products.
&lt;p&gt;

&lt;b&gt;The future:&lt;/b&gt;
At this point, my time budget for g4u is very limited.
I welcome people to contribute to g4u - g4u is Open Source
for a reason. Feel free to get back to me for any changes
that you want to contribute!
&lt;p&gt;

&lt;b&gt;The changes:&lt;/b&gt;
Major changes in g4u 2.6 include:
&lt;ul&gt;
&lt;li&gt; Make this build with NetBSD-current sources as of 2017-04-17 (shortly before netbsd-8 release branch), binaries were cross-compiled from Mac OS X 10.10
&lt;li&gt; Many new drivers, bugfixes and improvements from NetBSD-current (see beta1 and beta2 announcements)
&lt;li&gt; Go back to keeping the disk image inside the kernel as ramdisk, do not load it as separate module. Less error prone, and allows to boot the g4u (NetBSD) kernel from a single file e.g. via PXE (Testing and documentation updates welcome!)
&lt;li&gt; Actually DO provide the g4u (NetBSD) kernel with the embedded g4u disk image from now on, as separate file, g4u-kernel.gz
&lt;li&gt; In addition to MD5, add SHA512 checksums
&lt;/ul&gt;

&lt;b&gt;The software:&lt;/b&gt;
Please see 
&lt;a href=&quot;http://www.feyrer.de/g4u/#reqs&quot;&gt;the g4u homepage&apos;s download section&lt;/a&gt;
on how to get and use g4u.
&lt;p&gt;

Enjoy!

    </description>
  </item>
  <item>
    <title>g4u 2.6beta2 has been released - Happy 18th Birthday, g4u!</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20170421_0150.html</link>
    <pubDate>Fri, 21 Apr 2017 01:51:00 GMT</pubDate>
    <description>
      
Just right in time for its 18th birthday, I have released
the 2nd beta version for g4u 2.6 (2.6beta2). 
It took some time to get to this point, and I want to move
to 2.6 soon - please take your time to test and get back to me
soon, as I want to push out g4u version 2.6 in june 2017.
&lt;p&gt;

g4u (&quot;ghosting for unix&quot;) is a NetBSD-based bootfloppy/CD-ROM that allows easy cloning of PC harddisks to deploy a common setup on a number of PCs using FTP. The floppy/CD offers two functions. The first is to upload the compressed image of a local harddisk to a FTP server, the other is to restore that image via FTP, uncompress it and write it back to disk. Network configuration is fetched via DHCP. As the harddisk is processed as an image, any filesystem and operating system can be deployed using g4u. Easy cloning of local disks as well as partitions is also supported.
&lt;p&gt;

For more information, see 
&lt;a href=&quot;http://www.feyrer.de/g4u/&quot;&gt;http://www.feyrer.de/g4u/&lt;/a&gt;.
&lt;p&gt;

Changes in 2.6beta2 include:
&lt;ul&gt;
 &lt;li&gt; Make this build with NetBSD-current sources as of 2017-04-17,
         binaries were cross-compiled from Mac OS X 10.10
 &lt;li&gt; Go back to keeping the disk image inside the kernel as ramdisk,
   do not load it as separate module. Less error prone, and allows
   to boot the g4u (NetBSD) kernel from a single file e.g. via PXE
   (Testing and documentation updates welcome!)
 &lt;li&gt; Actually DO provide the g4u (NetBSD) kernel with the embedded g4u disk
   image from now on, as separate file, g4u-kernel.gz
 &lt;li&gt; Put all object files into one object directory. This may need more cleanup
   in the future. Feedback from people building g4u welcome!
 &lt;li&gt; Disable verbose device messages on Microchannel (MCA) machines
 &lt;li&gt; New drivers:
        &lt;ul&gt;
    &lt;li&gt; Toshiba Dynabook hotkeys
    &lt;li&gt; Intel S1200,C2000 (non-pch) SMBus storage controller
    &lt;li&gt; Non-Volatile Memory Express (NVMe) storage controllers and devices
    &lt;li&gt; Intel Wireless WiFi Link 7xxx PCI network
    &lt;li&gt; Intel 8259x 10 gigabit PCI network
    &lt;li&gt; Realtek 8188CE/8192CE 802.11b/g/n PCI network
    &lt;li&gt; VMware VMXNET3
    &lt;li&gt; Marvell Libertas PCMCIA network
    &lt;li&gt; ASIX AX88178a/AX88179 based USB network adapters
    &lt;li&gt; Realtek RTS5209/RTS5229 Card Reader
        &lt;/ul&gt;
 &lt;li&gt; Happy 18th Birthday, g4u!
&lt;/ul&gt;


Download links:
&lt;ul&gt;
&lt;li&gt; The g4u 2.6beta2 floppy images (&lt;a href=&quot;g4u-2.6beta2.fs.zip&quot;&gt;zipped&lt;/a&gt;/
     uncompressed
     &lt;a href=&quot;g4u-2.6beta2-1.fs&quot;&gt;floppy one&lt;/a&gt;,
     &lt;a href=&quot;g4u-2.6beta2-2.fs&quot;&gt;floppy two&lt;/a&gt;, 
     &lt;a href=&quot;g4u-2.6beta2-3.fs&quot;&gt;floppy three&lt;/a&gt;, and
     &lt;a href=&quot;g4u-2.6beta2-4.fs&quot;&gt;floppy four&lt;/a&gt;)
&lt;li&gt; The g4u 2.6beta2 ISO CD image (&lt;a href=&quot;g4u-2.6beta2.iso.zip&quot;&gt;zipped&lt;/a&gt;/&lt;a href=&quot;g4u-2.6beta2.iso&quot;&gt;uncompressed&lt;/a&gt;)
&lt;li&gt; The &lt;a href=&quot;g4u-kernel-2.6beta2.gz&quot;&gt;g4u/NetBSD kernel&lt;/a&gt; for PXE boot (gzipped)
&lt;li&gt; The &lt;a href=&quot;g4u-2.6beta2.tgz&quot;&gt;g4u 2.6beta2 source code&lt;/a&gt;
&lt;li&gt; Some md5 checksums:
&lt;pre&gt;
MD5 (g4u-2.6beta2-1.fs) = 8214c1ded55e78aed2f34d3e318dc75d
MD5 (g4u-2.6beta2-2.fs) = 8b55f3fe6a4806c9a65a3d176463e1bc
MD5 (g4u-2.6beta2-3.fs) = 0f9629353ddd470d17c5b4fd4ec7fd8e
MD5 (g4u-2.6beta2-4.fs) = c25a955e5d876d64943fd03f957ed4c9
MD5 (g4u-2.6beta2.iso) = acabb0fb73d4a2f9062fb070b4ddd825
MD5 (g4u-2.6beta2.tgz) = f8387d5bf146f98dda040dfcc1c53e44
MD5 (g4u-2.6beta2.fs.zip) = 8ef324c71ae7b000708e69019e55ef4e
MD5 (g4u-2.6beta2.iso.zip) = 1f4bd37784405350ee3e8e6c75a6b6b6
&lt;/pre&gt;
&lt;/ul&gt;

    </description>
  </item>
  <item>
    <title>g4u 2.6beta1 released</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20131110_1628.html</link>
    <pubDate>Sun, 10 Nov 2013 16:28:00 GMT</pubDate>
    <description>
      
I have release g4u version 2.6beta1. Important changes are an update
to recent NetBSD codebase, and moving the ramdisk from a separate
file back into the kernel. This allows easy netbooting - at least
I hope so, feedback is welcome here.
&lt;p&gt;

I&apos;d like to push out version 2.6 within the next few weeks.
Please test and let me know if there are any showstoppers!
&lt;p&gt;

Full list of news in g4u 2.6beta1:
&lt;ul&gt;
  &lt;li&gt; Make this build with NetBSD-current sources as of 2013-10-20
  &lt;li&gt; Move back from a ramdisk that&apos;s loaded from a separate file back to a
   ramdisk that&apos;s part of the kernel image. This allows easier netbooting
   for those people who want it - added back by popular demand :-)
   &lt;li&gt; Added more kernel buffer space, to hold all kernel messages for dmesg,
   even on machines with large ACPI tables (Hello VMware Fusion!)
   &lt;li&gt; New drivers:
   &lt;ul&gt;
       &lt;li&gt; LSILogic 9x9 and 53c1030 (Fusion-MPT) PCI SCSI
       &lt;li&gt; LSI Logic Fusion-MPT II PCI SCSI
       &lt;li&gt; Atheros AR9k (802.11a/g/n) PCI Wireless
       &lt;li&gt; Marvell PCI Libertas Wireless
       &lt;li&gt; Atheros AR9k (802.11a/g/n) PC-Card Wireless
       &lt;li&gt; Broadcom BCM43xx PC-Card Wireless
       &lt;li&gt; Atheros AR9002U USB Wireless
       &lt;li&gt; Ralink Technology RT2500USB 802.11a/b/g USB Wireless
       &lt;li&gt; Ralink Technology RT(2[78]|30)00 802.11a/b/g/n USB Wireless
       &lt;li&gt; Realtek RTL8187/RTL8187B 802.11b/g USB Wireless
       &lt;li&gt; Realtek RTL8188CU/RTL8192CU 802.11b/g/n USB Wireless
       &lt;li&gt; Intel Atom E6xx PCI-LPC
     &lt;/ul&gt;
 &lt;/ul&gt;

Download links:
&lt;ul&gt;
&lt;li&gt; The g4u 2.6beta1 ISO CD image (&lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.6beta1.iso.zip&quot;&gt;zipped&lt;/a&gt;/&lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.6beta1.iso&quot;&gt;uncompressed&lt;/a&gt;)
&lt;li&gt; The &lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.6beta1.tgz&quot;&gt;g4u 2.6beta1 source&lt;/a&gt;
&lt;li&gt; The g4u 2.6beta1 floppy images (&lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.6beta1.fs.zip&quot;&gt;zipped&lt;/a&gt;/
     uncompressed
     &lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.6beta1-1.fs&quot;&gt;floppy one&lt;/a&gt;,
     &lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.6beta1-2.fs&quot;&gt;floppy two&lt;/a&gt; and
     &lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.6beta1-3.fs&quot;&gt;floppy three&lt;/a&gt;)
&lt;li&gt; Some md5 checksums:
&lt;pre&gt;
MD5 (g4u-2.6beta1-1.fs) = 264d5b27f208f1053777774d0c2b87a7
MD5 (g4u-2.6beta1-2.fs) = 533b37fbeeb2d537928de61b25eb2ade
MD5 (g4u-2.6beta1-3.fs) = 5abe1327326fcdac18bf4d68566f3e9b
MD5 (g4u-2.6beta1.iso) = 37596efb42c014eb049e0027db059bd9
MD5 (g4u-2.6beta1.tgz) = acd5907a7fb2cc8fbd4645a1b9db5272
MD5 (g4u-2.6beta1.fs.zip) = 9b8da62fac57dcd38a4e3376189a087d
MD5 (g4u-2.6beta1.iso.zip) = 44cb8d01407b17f9d9839740b5a0d2d9
&lt;/pre&gt;
&lt;/ul&gt;

    </description>
  </item>
  <item>
    <title>G4U Opinion Time: kernel with embedded RAMdisk vs. miniroot?</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20131027_0205.html</link>
    <pubDate>Sun, 27 Oct 2013 02:08:00 GMT</pubDate>
    <description>
      
Quoting
&lt;a href=&quot;http://sourceforge.net/mailarchive/message.php?msg_id=31566747&quot;&gt;my own mail to the g4u-help mailing list&lt;/a&gt;: ``&lt;i&gt;I&apos;ve found little time to hack on 
&lt;a href=&quot;http://www.feyrer.de/g4u/&quot;&gt;g4u&lt;/a&gt; in the recent past. Yet, I&apos;ve 
managed to setup my development and test environment for g4u 
(crosscompiling NetBSD from Mac OS X, getting recent Qemu to compile), and 
also got g4u built from recent NetBSD-current sources. As such, take this 
as small sign of life.
&lt;P&gt;

Now, while I don&apos;t have any plans for large changes, I&apos;d like to bring an 
update with latest drivers and bugfixes from NetBSD.
&lt;P&gt;

There&apos;s one change that I&apos;m pondering, though: g4u originally came as one 
kernel-file that had an embedded RAM-disk. This was changed in the last 
release to reflect NetBSD&apos;s ability to load a RAM-disk from a separate 
file. This change broke the ability to netboot g4u from a single file, and 
required some more effort. There were no real wins for g4u as such.
&lt;P&gt;

So, opinion time: keep the RAM-disk as separate file, or move it back into 
the kernel?
&lt;P&gt;

Looking forward for your opinions!&lt;/i&gt;&apos;&apos;

    </description>
  </item>
  <item>
    <title>Announcing g4u v2.5</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20120716_2229.html</link>
    <pubDate>Mon, 16 Jul 2012 22:30:00 GMT</pubDate>
    <description>
      
After an extended time for beta testing, I&apos;m pushing out g4u V2.5 now, with
no functional changes between 2.5beta1 and the final release. Of course full
release testing was done on the final release. G4u 2.5 is mainly a
maintenance release that brings in commands to upload and restore partition
tables with the MBR, has driver updates from NetBSD, and some minor
enhancements like (finally!) enabling command line history.

See the
&lt;a href=&quot;http://www.feyrer.de/g4u/&quot;&gt;g4u homepage&lt;/a&gt;
for more details.

    </description>
  </item>
  <item>
    <title>NetBSD vs. disk transfer speeds vs. BIOS settings</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20120129_1233.html</link>
    <pubDate>Sun, 29 Jan 2012 12:40:00 GMT</pubDate>
    <description>
      
A few days ago, Brian Hoard made
an interesting finding about performance
of 
&lt;a href=&quot;http://www.feyrer.de/g4u/&quot;&gt;g4u&lt;/a&gt;,
a NetBSD/i386-based disk cloning system.
Citing from 
&lt;a href=&quot;http://sourceforge.net/mailarchive/message.php?msg_id=28754463&quot;&gt;Brians mail&lt;/a&gt;:
&lt;p&gt;

``&lt;i&gt;First, my problem was I had just replaced my motherboard on my custom 
build PC.
Once I got Windows 7 64-bit loaded and everything working, I sat up to 
clone my system drive.  The drive is a 500GB Seagate Barracude, SATA 2 
drive.
Cloning locally to an identical drive.
&lt;p&gt;

When booting into g4u, my transfer speeds were extremely slow.  
Normally, my 500 Gb clones take only about 90 minutes.
But this was still working after over 6 hours.
The g4u transfer speed was reporting only &lt;b&gt;1.5 Mb/sec&lt;/b&gt;.
&lt;p&gt;

I shut things down, and went into my system BIOS.  I noticed that the 
SATA mode was set to &quot;IDE Mode&quot; for my drives.
I changed this to &quot;AHCI Mode&quot; and continued to boot into g4u.
This worked to fix the transfer speeds, and my clone finished normally.  
Getting &lt;b&gt;83 Mb/sec&lt;/b&gt;.
&lt;p&gt;

Once the drive was finished, I attempted to boot into Windows, but it 
would not boot.
I had to change my BIOS back to &quot;IDE Mode&quot;, then Windows behaved normally.
&lt;p&gt;

Upon researching this, I am now learning that you should enable AHCI 
Mode BEFORE installing Windows for it to work.
Apparently, if Windows is not installed while using AHCI Mode, it 
disables the drivers for AHCI on the system drive.  So if you later 
enable AHCI in your BIOS as I did, Windows will not have the driver loaded.
I saw there is a fix on the Microsoft web site, but I haven&apos;t attempted 
to try it yet.
&lt;p&gt;

If someone else runs into a similar problem, hopefully this will help you.&lt;/i&gt;&apos;&apos;
&lt;p&gt;

FWIW, g4u-2.5beta1 is based on NetBSD-current from January 2012,
so checking your BIOS may help anyone seeing bad disk performance out there. &lt;br&gt;
(Emphasizes in the text added by me)

    </description>
  </item>
  <item>
    <title>g4u 2.5beta1 supports handling of partition tables and bad disk sectors</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20120114_1331.html</link>
    <pubDate>Sat, 14 Jan 2012 13:48:00 GMT</pubDate>
    <description>
      
After some absence (job-related) and technical problems
(building of NetBSD failing for me from Mac OS X),
I&apos;m very happy to release a beta version of g4u
with some long-overdue changes. Those include being
able to backup/restore the MBR, which includes the 
partition table - needed when recovering single partitions
to a new disk. Also, the various commands reading disks
are now adjusted to not abort when a disk sector cannot
be used. Instead, the bad bytes are skipped and the
rest of the disk is recovered. Please give me feedback on
this feature as I didn&apos;t have a bad disk to test this!
Other news include a command to wipe a disk by completely
overwriting it with 0-bytes (once).
Last, command line editing was enabled - finally!
&lt;p&gt;

Remember that this is a test release, so your feedback
is wanted - either to me in person, or to the
&lt;a href=&quot;http://www.feyrer.de/g4u/#support&quot;&gt;g4u-help&lt;/a&gt; mailing list. Thanks!
&lt;p&gt;

Here&apos;s a full list of changes:
&lt;ul&gt;
 &lt;li&gt; New commands &quot;uploadmbr&quot; and &quot;slurpmbr&quot; to backup and restore the master
   boot record, which includes the partition table. Required to restore a
   partition to an empty disk.
 &lt;/li&gt;&lt;li&gt; New command &quot;copymbr&quot; to copy the MBR from one disk to another, similar
   to &quot;copydisk&quot;
 &lt;/li&gt;&lt;li&gt; New command &quot;wipedisk&quot; to write the disk full with 0-bytes once from
   start (sector 0) to end (last sector)
 &lt;/li&gt;&lt;li&gt; Enable command line history/editing by forcing /bin/sh to be built
   without -DSMALL (ugly hack... there be lots of dragons!)
 &lt;/li&gt;&lt;li&gt; When setting up a fresh compile tree, g4u patches are now applied
   automagically without aborting the build
 &lt;/li&gt;&lt;li&gt; Error detection was now enabled in the dd(1) command, which is the core
   of g4u (surprise!). With that, disks with broken/unreadable sectors
   should now be copied, skipping the unreadable sectors and copying the
   rest. This affects a number of programs: copydisk, copypart, uploaddisk,
   uploadpart. BEWARE: I wasn&apos;t able to actually test this as I do not have
   a disk with bad sectors here. Please report back your experiences!!!
 &lt;/li&gt;&lt;li&gt; Make this build with NetBSD-current sources as of 2012-01-12
 &lt;/li&gt;&lt;li&gt; New drivers added to the kernel:
	&lt;ul&gt;

        &lt;li&gt; RDC PMX-1000 IDE controllers
        &lt;/li&gt;&lt;li&gt; Intel SCH IDE controllers
        &lt;/li&gt;&lt;li&gt; TOSHIBA PICCOLO controllers
        &lt;/li&gt;&lt;li&gt; Attansic/Atheros L1C/L2C Ethernet
        &lt;/li&gt;&lt;li&gt; Broadcom BCM43xx wireless
        &lt;/li&gt;&lt;li&gt; Agere/LSI ET1310/ET1301 Gigabit Ethernet
        &lt;/li&gt;&lt;li&gt; RDC R6040 10/100 Ethernet
        &lt;/li&gt;&lt;li&gt; USB LCDs and USB-VGA adaptors, e.g.:
        &lt;/li&gt;&lt;li&gt; DisplayLink DL-1x0/1x5
        &lt;/li&gt;&lt;li&gt; Option N.V. Wireless USB WAN modems
        &lt;/li&gt;&lt;li&gt; Microsoft RNDIS specifications USB ethernet
        &lt;/li&gt;&lt;li&gt; Atheros AR9001U USB Wifi
        &lt;/li&gt;&lt;li&gt; Intersil PrismGT USB Wifi
        &lt;/li&gt;&lt;li&gt; Virtio PCI, memory balloon, disk &amp;amp; network devices
        &lt;/li&gt;&lt;li&gt; ... and many more that slipped past QA
	&lt;/li&gt;&lt;/ul&gt;
 &lt;/li&gt;
&lt;li&gt; ... and any driver updates, optimizations and bug fixes and other
	enhancements from NetBSD-current
			&lt;/li&gt;
&lt;/ul&gt;

Get g4u 2.5beta1:
&lt;ul&gt;
&lt;li&gt; &lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.5beta1.iso&quot;&gt;ISO&lt;/a&gt;
&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.5beta1.iso.zip&quot;&gt;compressed ISO&lt;/a&gt;
&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.5beta1-1.fs&quot;&gt;First floppy&lt;/a&gt;
&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.5beta1-2.fs&quot;&gt;2nd floppy&lt;/a&gt;

&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.5beta1-3.fs&quot;&gt;3rd floppy&lt;/a&gt;

&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.5beta1.fs.zip&quot;&gt;all 3 floppies&lt;/a&gt;
&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.feyrer.de/g4u/g4u-2.5beta1.tgz&quot;&gt;sources&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;

    </description>
  </item>
  <item>
    <title>Netbooting g4u via PXE</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20111121_2123.html</link>
    <pubDate>Thu, 24 Nov 2011 01:17:00 GMT</pubDate>
    <description>
      
Doing a network based boot with PXE is not exactly hard,
but you need some debugging and the right tools in place.
If you want to netboot g4u, the NetBSD-based tool for harddisk
image cloning via FTP, via PXE, there&apos;s a description
on how to do
&lt;a href=&quot;http://math.uwb.edu.pl/~mariusz/projects/g4u/&quot;&gt;Netbooting of g4u via PXE&lt;/a&gt;
by Mariusz Zynel.
&lt;p&gt;

Details include setting up a TFTP server for loading
the bootloader and getting DHCP sending out the right files.

    </description>
  </item>
  <item>
    <title>Enlarging a (virtual) disk</title>
    <link>http://www.feyrer.de/NetBSD/blog.html/nb_20111022_2029.html</link>
    <pubDate>Sat, 22 Oct 2011 21:04:00 GMT</pubDate>
    <description>
      
I&apos;ve tried to build NetBSD-current at various points in the past few 
months, and always hit one of two bugs: -current blows up with
a gcc Internal Compiler Error when crossbuilding on Mac OS X,
and kernel panics with native NetBSD builds with sources on NFS.
This stinks, and I&apos;ve successfully managed to do a successful
-current build with sources on (local) disk. With NetBSD
running within VMware Fusion on Mac OS X.
&lt;p&gt;

To go on from there, I found that my NetBSD VM&apos;s only disk
was too small to do anything useful. Options for enlarging
that came to mind: 
&lt;ol&gt;
&lt;li&gt; NFS - see &apos;panic&apos; above, no go. 
&lt;li&gt; Adding another (virtual) disk - easily doable, but I felt like not adding one
&lt;li&gt; Extending the existing disk - adventure time!
&lt;/ol&gt;

Option #3 was it, and after removing all VMware snapshots, enlarging the
disk was easy with VMware Fusion, going from 10GB to 20GB.
After growing the disk itself, the next question was how to use the
newly gained disk. Of course some file system needs to use it, 
and in theory there are the following options:

&lt;ol&gt;
&lt;li&gt; Enlarge the last file system on disk
&lt;li&gt; Fix the partition table to add another partition for the new space
&lt;/ol&gt;

The disk was resized from 10GB to 20GB. The partition table
(disklabel) was created by a standard NetBSD install, and first
had the root file system, followed by the swap partition.
From that, adding 10GB more swap was not useful,
so I&apos;ve decided to change the disklabel to add the new disk space
as a new partition behind the existing partitions.
This is also an excuse to not frob with 
growfs and resize_ffs. (And of course I&apos;m ignoring the option of backing up the full file system, doing a full rebuild of the filesystem
and then doing a restore :-)
&lt;p&gt;

For those in a similar situation, here are the steps to use 
the newly gained space on an enlarged (virtual) disk:

&lt;ol&gt;
&lt;li&gt; Prepare: save the old output of &quot;dmesg&quot; (/var/run/dmesg.boot is OK)
     &lt;p&gt;

&lt;li&gt; Enlarge  - VMware Fusion wants a shutdown for that, you cannot suspend
     the machine
     &lt;p&gt;

&lt;li&gt; After booting, run a diff on the saved &quot;dmesg&quot; output, to learn
     what the old and new size of the disk is, in sectors. My diff looks
     like this, note the size change in sectors:

&lt;pre&gt;
-wd0: 10240 MB, 22192 cyl, 15 head, 63 sec, 512 bytes/sect x &lt;b&gt;20971520&lt;/b&gt; sectors
+wd0: 20480 MB, 44384 cyl, 15 head, 63 sec, 512 bytes/sect x &lt;b&gt;41943040&lt;/b&gt; sectors &lt;/pre&gt;
     &lt;p&gt;


&lt;li&gt; Backup the existing/old disklabel, just in case: &lt;tt&gt;&lt;b&gt; disklabel wd0 &amp;gt;disklabel.BAK&lt;/b&gt;&lt;/tt&gt;
     &lt;p&gt;

&lt;li&gt; Edit the disklabel: &lt;tt&gt;&lt;b&gt;disklabel -e wd0&lt;/b&gt;&lt;/tt&gt;
     &lt;p&gt;

&lt;li&gt; In the editor, adjust the disk size in sectors from 20971520 to 41943040:
&lt;pre&gt;
total sectors: &lt;b&gt;41943040&lt;/b&gt; &lt;/pre&gt;
	&lt;p&gt;

&lt;li&gt; Partition &apos;d&apos; is the full disk on i386/amd64, it starts at sector 0
 	and is 41943040 sectors big

&lt;pre&gt;
#        size    offset     fstype [fsize bsize cpg/sgs]
 d:  &lt;b&gt;41943040&lt;/b&gt;         0     unused      0     0        # (Cyl.      0 -  44384*)
&lt;/pre&gt;
	&lt;p&gt;

&lt;li&gt; Partition &apos;c&apos; is the NetBSD part of the disk. As this VM only has NetBSD, all the usable space is used. Note that &quot;usable&quot; space excludes the first 63 sectors of the disk (mbr etc.), i.e. it is 41943040 - 63 = 41942977 sectors:
&lt;pre&gt;
#        size    offset     fstype [fsize bsize cpg/sgs]
 c:  &lt;b&gt;41942977&lt;/b&gt;        63     unused      0     0        # (Cyl.      0*-  44384*)
&lt;/pre&gt;
	&lt;p&gt;

&lt;li&gt; After this everything is in sync with the new disk again, and the remaining/new space can be used for new partition &apos;e&apos;. As the new space starts where
the disk used to end, its offset is the old size, 20971520 sectors.
	&lt;p&gt;

	The size of the new partition expands from the offset sector 20971520
	to the end of the disk at sector 41943040, i.e. the partition size is:

&lt;pre&gt;
% &lt;b&gt;expr 41943040 - 20971520&lt;/b&gt;
20971520
&lt;/pre&gt;

	In total, this gives for the new partition:

&lt;pre&gt;
#        size    offset     fstype [fsize bsize cpg/sgs]
 e:  &lt;b&gt;20971520  20971520&lt;/b&gt;     4.2BSD   2048 16384     0  # (Cyl.  22192*-  44384*)
&lt;/pre&gt;

&lt;li&gt; Last, create file system, mount and populate:
&lt;pre&gt;
# &lt;b&gt;newfs /dev/rwd0e&lt;/b&gt;
# &lt;b&gt;mkdir /disk2&lt;/b&gt;
# &lt;b&gt;echo &apos;/dev/wd0e /disk2 ffs rw,log 2 2&apos; &amp;gt;&amp;gt;/etc/fstab&lt;/b&gt;
# &lt;b&gt;mount /disk2&lt;/b&gt;
# &lt;b&gt;cd /usr ; pax -rw -pe -v stuff /disk2&lt;/b&gt;
# &lt;b&gt;rm -fr stuff ; ln -s /disk2/stuff .&lt;/b&gt;
&lt;/pre&gt;
&lt;/ol&gt;

Now let&apos;s see if I get things far enough to get a build
of g4u going... wish me luck!
&lt;p&gt;

P.S.: I&apos;m offering choccolate to anyone fixing crossbuilding of
NetBSD-current from Mac OS X. Any takers?

    </description>
  </item>
  </channel>
</rss>
