I edited /usr/lib/ubiquity/user-setup/user-setup-apply in the karmic
beta UNR liveCD, while Ubiquity was running (still copying files).  I
changed:

  dd if=/dev/zero of=$device 2>/dev/null || true

to

  dd bs=16m if=/dev/zero of=$device 2>/dev/null || true

The original command was reading 512 bytes of zeroes, writing 512 bytes
of zeroes to the disk, and looping.  Very slow -- one sector at a time.
Adding "bs=16m" means that each write zeroes 16 megabytes of disk.  It's
about 1000x as fast.  Totally eliminates the problem.  If you're
concerned that in small-memory machines there isn't enough RAM to
briefly allocate 16MB for this, change it to 8MB or 4MB, it'll be almost
as fast.

With this fix, I saw no perceptible problem with the speed of ubiquity
installing around 80%, despite having a swap area of 5GB.

-- 
[karmic alpha6] Installing System with encrypted $HOME: Installer hangs at 83% 
for ~15 minutes
https://bugs.launchpad.net/bugs/432422
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to