Public bug reported:

Binary package hint: usb-creator

I am using usb-creator 0.1.15 from the jaunty 9.04 beta DVD. I get "dd:
invalid number" errors in .usb-creator.log file. I thought it was a
limitation of vfat file system, but I tested it by using "dd
if=/dev/zeros of=/dev/null" and it seems like dd won't allow block sizes
>= 2G. Usb-creator finishes without notifying the user that the was an
error and no casper-rw file was created. The usb drive will boot, but is
not persistent.

The problem is in line 134 of /usr/share/usb-creator/install.py:
        popen(['dd', 'if=/dev/zero', 'bs=%s' % persist, 'of=%s/casper-rw' % 
target, 'count=1'])

In the past the block size was set to 1 byte, but that led to problems:
https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/313364. Now
things have swung the opposite direction towards creating a single
(count=1) large block equal to the size of casper-rw. However this isn't
allowed by dd for all block sizes and should be corrected.

This bug https://bugs.launchpad.net/ubuntu/+source/usb-
creator/+bug/321544 has patches that seem to be a reasonable approach to
address these issues in addition to the 4GB file size limit of vfat.

** Affects: usb-creator (Ubuntu)
     Importance: Undecided
         Status: New

-- 
calling dd with block size > 2GB causes casper-rw not to be created
https://bugs.launchpad.net/bugs/352766
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to