grajea
2009-06-21, 14:07
I've a problem while using the script to install 9.04.1 iso live image into a bootable usb.
Running the command
sudo ./installXBMCFromISO.sh
fails with the following message:
...
File "./installXBMC.py", line 43, in diskSizeKB
nBytes = int(diskusage)
ValueError: invalid literal for int() with base 10: ''
I've seen that the scripts only works with english version of fdisk, so i've to change line 42 of installXBMC.py from
diskusage, retCode = runSilent('fdisk -l ' + aVolume + ' | grep "Disk ' + aVolume + '" | cut -f 5 -d " "')
to
diskusage, retCode = runSilent('fdisk -l ' + aVolume + ' | grep "Disco ' + aVolume + '" | cut -f 5 -d " "')
in order to detect the available partitions.
After this all worked fine.
Hope this helps somebody with the same issue
Running the command
sudo ./installXBMCFromISO.sh
fails with the following message:
...
File "./installXBMC.py", line 43, in diskSizeKB
nBytes = int(diskusage)
ValueError: invalid literal for int() with base 10: ''
I've seen that the scripts only works with english version of fdisk, so i've to change line 42 of installXBMC.py from
diskusage, retCode = runSilent('fdisk -l ' + aVolume + ' | grep "Disk ' + aVolume + '" | cut -f 5 -d " "')
to
diskusage, retCode = runSilent('fdisk -l ' + aVolume + ' | grep "Disco ' + aVolume + '" | cut -f 5 -d " "')
in order to detect the available partitions.
After this all worked fine.
Hope this helps somebody with the same issue