3
$ sudo winusb --install win7-pro-x64.iso /dev/sde1
Mounting...
mount: block device /media/Ubuntu-Data/ISOs/win7-pro-x64.iso is write-protected, mounting read-only
Copying...
mv: cannot move ‘/media/winusb_target_1415893348_22764/BOOT’ to a subdirectory of itself, ‘/media/winusb_target_1415893348_22764/boot/BOOT’
Error occured !
Syncing...
Cleaning...
Umounting and removing '/media/winusb_iso_1415893348_22764'...
Umounting and removing '/media/winusb_target_1415893348_22764'...

the above is what is going on with my flash drive.

I've formatted the drive as Fat16, per these instructions: http://encoded.eternicode.com/creating-a-uefi-bootable-win7-usb-stick-from-linux

Is there something wrong with winusb?

note: I have a legal key to use with this iso, my laptop that I'm installing this to just doesn't have a CD drive.

I'm using Ubuntu 14.04 My laptop has UEFI and also has Ubuntu 14.04 Windows would be going on to it's own SSD (my laptop has two)

UPDATE: also happens with a Fat32 partition

1 Answer 1

4

I got the same problem. I looked at /usr/bin/winusb script and found lines:

#boot dir should be lower case

if [ -d "$partitionMountPath/BOOT" ]; then mv "$partitionMountPath/BOOT" "$partitionMountPath/boot"; fi

So it wants to rename "BOOT" to "boot", but FAT16 and FAT32 are case-insensitive and so it's the same directory.

I've fixed this locally by changing the line to the following:

if [ -d "$partitionMountPath/BOOT" ]; then mv "$partitionMountPath/BOOT" "$partitionMountPath/boot_" && mv "$partitionMountPath/boot_" "$partitionMountPath/boot"; fi

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .