[Tails-dev] bug in liveusb-creator (rc1)

Delete this message

Reply to this message
Author: hark
Date:  
To: tails
CC: tails-dev
Subject: [Tails-dev] bug in liveusb-creator (rc1)
hi,

I booted tails from a usb stick installed with unetbootin.

Then i tried to clone it to another 8GB usb stick, which i resetted as
descibed in doc/resetting_usb_stick ( in experimental).

Then the liveusb-creator makes a 1.6GB FAT partitition and complains
about not having enough space.

Here is the log:

amnesia@amnesia:~$ liveusb-creator-launcher -v
[creator:1160] extlinux not found! Only FAT filesystems will be supported
[creator:670] Skipping non-usb drive: /org/freedesktop/UDisks/devices/fd0
[creator:707] {'bootable': False,
 'device': '/dev/sdb',
 'free': None,
 'fstype': '',
 'fsversion': '',
 'is_optical': False,
 'label': '',
 'mount': None,
 'mounted_partitions': set(),
 'parent': None,
 'parent_udi': None,
 'size': 7933526016L,
 'udi': '/org/freedesktop/UDisks/devices/sdb',
 'uuid': ''}
[creator:707] {'bootable': False,
 'device': '/dev/sdc',
 'free': None,
 'fstype': '',
 'fsversion': '',
 'is_optical': False,
 'label': '',
 'mount': None,
 'mounted_partitions': set(),
 'parent': None,
 'parent_udi': None,
 'size': 7933526016L,
 'udi': '/org/freedesktop/UDisks/devices/sdc',
 'uuid': ''}
[creator:707] {'bootable': False,
 'device': '/dev/sdc1',
 'free': None,
 'fstype': 'vfat',
 'fsversion': 'FAT32',
 'is_optical': False,
 'label': 'Tails',
 'mount': None,
 'mounted_partitions': set(),
 'parent': '/dev/sdc',
 'parent_udi': '/org/freedesktop/UDisks/devices/sdc',
 'size': 1572846592,
 'udi': '/org/freedesktop/UDisks/devices/sdc1',
 'uuid': '9952-5E2B'}
[creator:707] {'bootable': True,
 'device': '/dev/sdb1',
 'free': 1379L,
 'fstype': 'vfat',
 'fsversion': 'FAT32',
 'is_optical': False,
 'label': 'KINGSTON',
 'mount': '/live/image',
 'mounted_partitions': set(),
 'parent': '/dev/sdb',
 'parent_udi': '/org/freedesktop/UDisks/devices/sdb',
 'size': 7929397248L,
 'udi': '/org/freedesktop/UDisks/devices/sdb1',
 'uuid': '1162-620A'}
[creator:670] Skipping non-usb drive: /org/freedesktop/UDisks/devices/sda1
[creator:670] Skipping non-usb drive: /org/freedesktop/UDisks/devices/sr0
[creator:670] Skipping non-usb drive: /org/freedesktop/UDisks/devices/loop0
[creator:670] Skipping non-usb drive: /org/freedesktop/UDisks/devices/sda
[creator:726] {'/dev/sdb': set(['/org/freedesktop/UDisks/devices/sdb1'])}
[gui:417] drives: {'/dev/sdb': {'parent': None, 'mounted_partitions':
set([]), 'free': None, 'fstype': '', 'fsversion': '', 'device':
'/dev/sdb', 'is_optical': False, 'size': 7933526016L, 'udi':
'/org/freedesktop/UDisks/devices/sdb', 'uuid': '', 'bootable': False,
'mount': None, 'label': '', 'parent_udi': None}, '/dev/sdc': {'parent':
None, 'mounted_partitions': set([]), 'free': None, 'fstype': '',
'fsversion': '', 'device': '/dev/sdc', 'is_optical': False, 'size':
7933526016L, 'udi': '/org/freedesktop/UDisks/devices/sdc', 'uuid': '',
'bootable': False, 'mount': None, 'label': '', 'parent_udi': None}}
[gui:421] Skipping source device: /dev/sdb
[gui:521] Device is not yet mounted, so we cannot determine the amount
of free space.  Setting a maximum limit of 8G for the persistent storage.
[creator:574] /dev/sdc selected: {'parent': None, 'mounted_partitions':
set([]), 'free': None, 'fstype': '', 'fsversion': '', 'device':
'/dev/sdc', 'is_optical': False, 'size': 7933526016L, 'udi':
'/org/freedesktop/UDisks/devices/sdc', 'uuid': '', 'bootable': False,
'mount': None, 'label': '', 'parent_udi': None}
[creator:1072] Checking the MBR of /dev/sdc
[creator:1076] mbr = '0000'
[creator:1108] Resetting Master Boot Record of /dev/sdc
[creator:348] cat /usr/lib/syslinux/gptmbr.bin > /dev/sdc
[creator:1072] Checking the MBR of /dev/sdc
[creator:1076] mbr = 'FA31'
[creator:1072] Checking the MBR of /dev/sdc
[creator:1076] mbr = 'FA31'
[creator:830] Unmounting /dev/sdc
[creator:832] {'bootable': False,
 'device': '/dev/sdc',
 'free': None,
 'fstype': '',
 'fsversion': '',
 'is_optical': False,
 'label': '',
 'mount': None,
 'mounted_partitions': set(),
 'parent': None,
 'parent_udi': None,
 'size': 7933526016L,
 'udi': '/org/freedesktop/UDisks/devices/sdc',
 'uuid': ''}
[creator:348] ['/sbin/sgdisk', '--print', '/dev/sdc']
[creator:348] ['/sbin/sgdisk', '--print', '/dev/sdc']
[creator:348] ['/sbin/sgdisk', '--info', '1', '/dev/sdc']
[creator:348] ['/sbin/sgdisk', '--attributes=1:set:2',
'--attributes=1:set:60', '--attributes=1:set:62',
'--attributes=1:set:63', '/dev/sdc']
[creator:348] ['/sbin/gdisk', '/dev/sdc']
[creator:707] {'bootable': True,
 'device': '/dev/sdb1',
 'free': 1379L,
 'fstype': 'vfat',
 'fsversion': 'FAT32',
 'is_optical': False,
 'label': 'KINGSTON',
 'mount': '/live/image',
 'mounted_partitions': set(),
 'parent': '/dev/sdb',
 'parent_udi': '/org/freedesktop/UDisks/devices/sdb',
 'size': 7929397248L,
 'udi': '/org/freedesktop/UDisks/devices/sdb1',
 'uuid': '1162-620A'}
[creator:670] Skipping non-usb drive: /org/freedesktop/UDisks/devices/sda
[creator:707] {'bootable': False,
 'device': '/dev/sdc1',
 'free': None,
 'fstype': '',
 'fsversion': '',
 'is_optical': False,
 'label': '',
 'mount': None,
 'mounted_partitions': set(),
 'parent': '/dev/sdc',
 'parent_udi': '/org/freedesktop/UDisks/devices/sdc',
 'size': 1572846592,
 'udi': '/org/freedesktop/UDisks/devices/sdc1',
 'uuid': ''}
[creator:670] Skipping non-usb drive: /org/freedesktop/UDisks/devices/sr0
[creator:670] Skipping non-usb drive: /org/freedesktop/UDisks/devices/loop0
[creator:670] Skipping non-usb drive: /org/freedesktop/UDisks/devices/fd0
[creator:707] {'bootable': False,
 'device': '/dev/sdb',
 'free': None,
 'fstype': '',
 'fsversion': '',
 'is_optical': False,
 'label': '',
 'mount': None,
 'mounted_partitions': set(),
 'parent': None,
 'parent_udi': None,
 'size': 7933526016L,
 'udi': '/org/freedesktop/UDisks/devices/sdb',
 'uuid': ''}
[creator:670] Skipping non-usb drive: /org/freedesktop/UDisks/devices/sda1
[creator:707] {'bootable': False,
 'device': '/dev/sdc',
 'free': None,
 'fstype': '',
 'fsversion': '',
 'is_optical': False,
 'label': '',
 'mount': None,
 'mounted_partitions': set(),
 'parent': None,
 'parent_udi': None,
 'size': 7933526016L,
 'udi': '/org/freedesktop/UDisks/devices/sdc',
 'uuid': ''}
[creator:726] {'/dev/sdb': set(['/org/freedesktop/UDisks/devices/sdb1'])}
[creator:574] /dev/sdc1 selected: {'parent': '/dev/sdc',
'mounted_partitions': set([]), 'free': None, 'fstype': '', 'fsversion':
'', 'device': '/dev/sdc1', 'is_optical': False, 'size': 1572846592,
'udi': '/org/freedesktop/UDisks/devices/sdc1', 'uuid': '', 'bootable':
False, 'mount': None, 'label': '', 'parent_udi':
'/org/freedesktop/UDisks/devices/sdc'}
[creator:1059] Formatting /dev/sdc1 as FAT32
[creator:348] ['/sbin/mkfs.vfat', '-n', 'Tails', '-F', '32', '/dev/sdc1']
[creator:793] Calling
/org/freedesktop/UDisks/devices/sdc1.FilesystemMount(vfat, [], ...)
[creator:824] Mounted /dev/sdc1 to /media/Tails
[creator:879] Verifying filesystem...
[creator:892] Setting /dev/sdc1 label to Tails
[creator:348] /sbin/dosfslabel /dev/sdc1 Tails
[creator:415] freebytes = 1569751040
[creator:416] source size = 6467948059
[creator:418] overlaysize = 0
[gui:282] Not enough free space on device.
6168MB ISO + 0MB overlay > 1497MB free space
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/liveusb/gui.py", line 231, in run
    self.live.check_free_space()
  File "/usr/lib/python2.6/dist-packages/liveusb/creator.py", line 424,
in check_free_space
    freebytes/1024**2))
LiveUSBError: Not enough free space on device.
6168MB ISO + 0MB overlay > 1497MB free space
[creator:1072] Checking the MBR of /dev/sdc
[creator:1076] mbr = '0000'
[creator:830] Unmounting /dev/sdc1
[creator:832] {'bootable': False,
 'device': '/dev/sdc1',
 'free': 1497L,
 'fstype': 'vfat',
 'fsversion': '',
 'is_optical': False,
 'label': '',
 'mount': '/media/Tails',
 'mounted_partitions': set(),
 'parent': '/dev/sdc',
 'parent_udi': '/org/freedesktop/UDisks/devices/sdc',
 'size': 1572846592,
 'udi': '/org/freedesktop/UDisks/devices/sdc1',
 'uuid': ''}
[creator:1108] Resetting Master Boot Record of /dev/sdc
[creator:348] cat /usr/lib/syslinux/gptmbr.bin > /dev/sdc