Linux HowTo: Can we install WinUSB in Kali linux

Original Source Link

I want to create Bootable USB flash drive for Windows 7. I am trying to do this on Kali Linux. The default program “unetbootin” in kali does not support for Windows.
The another one which i found was “WinUSB”, however I am not able to install it in Kali linux.
Any view on this are most welcome…???

This is not the best way to go about getting any old program running in Kali, but it works in this case and is quicker and easier than compiling from source, which I couldn’t get to work.

To get the PPA repository working in Kali we need to get add-apt-repository working:

apt-get install python-software-properties
apt-get install apt-file
apt-file update

This can take a minute or more. Then try searching for add-apt-repository:

apt-file search add-apt-repository

Which should output something like this:

python-software-properties: /usr/bin/add-apt-repository
python-software-properties: /usr/share/man/man1/add-apt-repository.1.gz

If it doesn’t, like in my first attempt, we need to clean out some old packages

apt-get remove python-software-properties
apt-get autoremove

Then start from the beginning again and you should get the correct search output. Next we supply the code for add-apt-repository:

cd /usr/sbin
nano add-apt-repository

Then copy the following into nano, save and exit:

#!/bin/bash
if [ $# -eq 1 ]
NM=`uname -a && date`
NAME=`echo $NM | md5sum | cut -f1 -d" "`
then
  ppa_name=`echo "$1" | cut -d":" -f2 -s`
  if [ -z "$ppa_name" ]
  then
    echo "PPA name not found"
    echo "Utility to add PPA repositories in your debian machine"
    echo "$0 ppa:user/ppa-name"
  else
    echo "$ppa_name"
    echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu oneiric main" >> /etc/apt/sources.list
    apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txt
    key=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
    rm -rf /tmp/${NAME}_apt_add_key.txt
  fi
else
  echo "Utility to add PPA repositories in your debian machine"
  echo "$0 ppa:user/ppa-name"
fi

Quickly fix ownership and permissions:

chmod o+x /usr/sbin/add-apt-repository 
chown root:root /usr/sbin/add-apt-repository

Then add the PPA repository and install WinUSB:

add-apt-repository ppa:colingille/freshlight
apt-get update
apt-get install winusb

It’s probably a good idea to remove the PPA repository from your sources once you’ve installed WinUSB to avoid installing other incompatible packages:

nano /etc/apt/sources.list

And delete the last line before closing and saving. The WinUSB GUI is now in the System Tools sub-menu and the command line tools should also work. Best of luck!

WoeUSB is a tool for creating a bootable USB flash drive used for installing Windows. Native UEFI booting is supported for Windows 7 and later images. WoeUSB is an updated fork of the WinUSB project.

Some third-party installers feature Windows installation images (/sources/install.wim) greater than 4GB making FAT32 as target filesystem impossible. NTFS filesystem support has been added to WoeUSB 3.0.0 and later.

Installation

sudo add-apt-repository ppa:nilarimogard/webupd8 
sudo apt update  
sudo apt install woeusb

This will install the WoeUSB graphical interface and the WoeUSB command line tool. WoeUSB supports both UEFI and BIOS for FAT32/NTFS/ExFAT USB flash drives.

The WoeUSB GUI is easier to use than the WoeUSB command line tool. Click the radio button to the left of where it says From a disk image (iso), browse to the location of the Windows .iso file, under Target device select a USB flash drive, open Disks application and check that the Device name in Disks matches the Target device in WoeUSB (it should be something like /dev/sdX where X is a letter of the alphabet), and click the Install button to install to create a bootable Windows installation media on the USB flash drive.

enter image description here

WoeUSB Issues

Tagged : / /

Making Game: Can we install WinUSB in Kali linux

Original Source Link

I want to create Bootable USB flash drive for Windows 7. I am trying to do this on Kali Linux. The default program “unetbootin” in kali does not support for Windows.
The another one which i found was “WinUSB”, however I am not able to install it in Kali linux.
Any view on this are most welcome…???

This is not the best way to go about getting any old program running in Kali, but it works in this case and is quicker and easier than compiling from source, which I couldn’t get to work.

To get the PPA repository working in Kali we need to get add-apt-repository working:

apt-get install python-software-properties
apt-get install apt-file
apt-file update

This can take a minute or more. Then try searching for add-apt-repository:

apt-file search add-apt-repository

Which should output something like this:

python-software-properties: /usr/bin/add-apt-repository
python-software-properties: /usr/share/man/man1/add-apt-repository.1.gz

If it doesn’t, like in my first attempt, we need to clean out some old packages

apt-get remove python-software-properties
apt-get autoremove

Then start from the beginning again and you should get the correct search output. Next we supply the code for add-apt-repository:

cd /usr/sbin
nano add-apt-repository

Then copy the following into nano, save and exit:

#!/bin/bash
if [ $# -eq 1 ]
NM=`uname -a && date`
NAME=`echo $NM | md5sum | cut -f1 -d" "`
then
  ppa_name=`echo "$1" | cut -d":" -f2 -s`
  if [ -z "$ppa_name" ]
  then
    echo "PPA name not found"
    echo "Utility to add PPA repositories in your debian machine"
    echo "$0 ppa:user/ppa-name"
  else
    echo "$ppa_name"
    echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu oneiric main" >> /etc/apt/sources.list
    apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txt
    key=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
    rm -rf /tmp/${NAME}_apt_add_key.txt
  fi
else
  echo "Utility to add PPA repositories in your debian machine"
  echo "$0 ppa:user/ppa-name"
fi

Quickly fix ownership and permissions:

chmod o+x /usr/sbin/add-apt-repository 
chown root:root /usr/sbin/add-apt-repository

Then add the PPA repository and install WinUSB:

add-apt-repository ppa:colingille/freshlight
apt-get update
apt-get install winusb

It’s probably a good idea to remove the PPA repository from your sources once you’ve installed WinUSB to avoid installing other incompatible packages:

nano /etc/apt/sources.list

And delete the last line before closing and saving. The WinUSB GUI is now in the System Tools sub-menu and the command line tools should also work. Best of luck!

WoeUSB is a tool for creating a bootable USB flash drive used for installing Windows. Native UEFI booting is supported for Windows 7 and later images. WoeUSB is an updated fork of the WinUSB project.

Some third-party installers feature Windows installation images (/sources/install.wim) greater than 4GB making FAT32 as target filesystem impossible. NTFS filesystem support has been added to WoeUSB 3.0.0 and later.

Installation

sudo add-apt-repository ppa:nilarimogard/webupd8 
sudo apt update  
sudo apt install woeusb

This will install the WoeUSB graphical interface and the WoeUSB command line tool. WoeUSB supports both UEFI and BIOS for FAT32/NTFS/ExFAT USB flash drives.

The WoeUSB GUI is easier to use than the WoeUSB command line tool. Click the radio button to the left of where it says From a disk image (iso), browse to the location of the Windows .iso file, under Target device select a USB flash drive, open Disks application and check that the Device name in Disks matches the Target device in WoeUSB (it should be something like /dev/sdX where X is a letter of the alphabet), and click the Install button to install to create a bootable Windows installation media on the USB flash drive.

enter image description here

WoeUSB Issues

Tagged : / /

Making Game: Bootsect arguments result in nothing happening

Original Source Link

I’m currently trying to create a bootable USB with Windows Server 2019 on it. I’ve used diskpart to clean and format my USB drive and create a new primary partition. After I mount the Windows Server ISO into drive F, when I try to run the command F:bootbootsect.exe /nt60 g All I get in response is the bootsect greeting message:

bootsect {/help|/nt60|/nt52} {SYS|ALL|<DriveLetter>:} [/force] [/mbr]

Boot sector restoration tool

Bootsect.exe updates the master boot code for hard disk partitions in order to
switch between BOOTMGR and NTLDR.  You can use this tool to restore the boot
sector on your computer.

Run "bootsect /help" for detailed usage instructions.

When I was hoping for something like this:

Target volumes will be updated with BOOTMGR compatible bootcode.

Bootcode was successfully updated on all targeted volumes.

Further investigation reveals that the /help command works, but nothing else. I can type /nt52 sdfasdg or any other valid or invalid command, I can use the /force argument and I always just get the same greeting message.

Tagged : / / /

Making Game: Bootable media not working

Original Source Link

So i have Ubuntu installed in my system. I formatted the 8GB usb stick (mbr partition) created a FAT32 partition and copied contents of ISO.

After sometime i notice error in copying because install.wim is greater than 4 gb, Then too i booted from USB. The installer was working but it gave me(shoud give) an error.

So i formatted the drive again changed the filesystem to NTFS and now it is not booting.

To check that bootable USB is working correctly I booted it in my other system and it worked properly.

But not working in my current system(Lenovo yoga 500).

Tagged : / /

Linux HowTo: How to write FreeBSD image to USB flash drive

Original Source Link

I am trying to write FreeBSD-10.3-RELEASE-amd64-memstick.img to a USB flash drive, in the hopes of installing FreeBSD on an x64 computer in my house. Here is the image: ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.3/.

I have searched up how to write .img files to a USB flash drive, with most sites saying to use Unetbootin, Startup Disk Creator, or the dd command. When I plugged in and selected the flash drive after using Unetbootin, I received the message “Missing operating system”. With Disk Creator, I received a message telling me that Disk Creator couldn’t write the image to the flash drive.

As for the dd command, I used this: dd if=FreeBSD-10.3-RELEASE-amd64-memstick.img of=/dev/sdb1 bs=10240 conv=sync, which I got from here and here. The command writes a bunch of garbage files to my flash drive, instead of the contents of the FreeBSD image (which I assume wouldn’t be garbage files).

How should I go about writing FreeBSD to the flash drive and installing it to my computer, given that these options didn’t work?

Assuming you are using dd within FreeBSD or Linux:

Using Linux:

1) umount /dev/sdb

If your USB stick is under /dev/sdb

2) dd if=FreeBSD-10.3-RELEASE-amd64-memstick.img of=/dev/sdb bs=10240

Using (Free)BSD:

1) umount /dev/da0

If your USB stick is under /dev/da0

2) dd if=FreeBSD-10.3-RELEASE-amd64-memstick.img of=/dev/da0 bs=1m

Please note the of=/dev/sdb argument as you are supposed to write to the whole stick instead of its first partition.

The same is true of of=/dev/da0. But please note that da is typically the prefix for USB port devices on (Free)BSD. Which means that it might just as well be da1. So make sure to check beforehand. ๐Ÿ™‚

Easiest way would be to compare the results of an ls /dev before and after plugging/unplugging your flash drive/USB stick.

3) Now reboot and choose the USB stick as the boot option.

If you are trying to write the image to USB on Windows, try Rufus. Choose your USB drive under Device, check Create a bootable disk using and select DD Image from the drop down, browse to the image file and hit Start.

It is unclear from your description if your problem is solely with drive creation or with booting off a USB key that is likely good (the dd version should be good judging by the command and assuming sdb was the right device)

As mentionned in the Handbook, under MS Windows, you can use win32diskImager.

  1. Download the install ISO file.
  2. Download the win32diskImager installer (it is now called ImageWriter)
  3. Install win32diskImager – a breeze
  4. Launch it, choose your USB key, and browse for the ISO file
  5. Click “Write”, wait a few instants, and you are ready to boot!
Tagged : / / /

Making Game: How to write FreeBSD image to USB flash drive

Original Source Link

I am trying to write FreeBSD-10.3-RELEASE-amd64-memstick.img to a USB flash drive, in the hopes of installing FreeBSD on an x64 computer in my house. Here is the image: ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.3/.

I have searched up how to write .img files to a USB flash drive, with most sites saying to use Unetbootin, Startup Disk Creator, or the dd command. When I plugged in and selected the flash drive after using Unetbootin, I received the message “Missing operating system”. With Disk Creator, I received a message telling me that Disk Creator couldn’t write the image to the flash drive.

As for the dd command, I used this: dd if=FreeBSD-10.3-RELEASE-amd64-memstick.img of=/dev/sdb1 bs=10240 conv=sync, which I got from here and here. The command writes a bunch of garbage files to my flash drive, instead of the contents of the FreeBSD image (which I assume wouldn’t be garbage files).

How should I go about writing FreeBSD to the flash drive and installing it to my computer, given that these options didn’t work?

Assuming you are using dd within FreeBSD or Linux:

Using Linux:

1) umount /dev/sdb

If your USB stick is under /dev/sdb

2) dd if=FreeBSD-10.3-RELEASE-amd64-memstick.img of=/dev/sdb bs=10240

Using (Free)BSD:

1) umount /dev/da0

If your USB stick is under /dev/da0

2) dd if=FreeBSD-10.3-RELEASE-amd64-memstick.img of=/dev/da0 bs=1m

Please note the of=/dev/sdb argument as you are supposed to write to the whole stick instead of its first partition.

The same is true of of=/dev/da0. But please note that da is typically the prefix for USB port devices on (Free)BSD. Which means that it might just as well be da1. So make sure to check beforehand. ๐Ÿ™‚

Easiest way would be to compare the results of an ls /dev before and after plugging/unplugging your flash drive/USB stick.

3) Now reboot and choose the USB stick as the boot option.

If you are trying to write the image to USB on Windows, try Rufus. Choose your USB drive under Device, check Create a bootable disk using and select DD Image from the drop down, browse to the image file and hit Start.

It is unclear from your description if your problem is solely with drive creation or with booting off a USB key that is likely good (the dd version should be good judging by the command and assuming sdb was the right device)

As mentionned in the Handbook, under MS Windows, you can use win32diskImager.

  1. Download the install ISO file.
  2. Download the win32diskImager installer (it is now called ImageWriter)
  3. Install win32diskImager – a breeze
  4. Launch it, choose your USB key, and browse for the ISO file
  5. Click “Write”, wait a few instants, and you are ready to boot!
Tagged : / / /

Making Game: SD Card Partitions Corrupted

Original Source Link

https://imgur.com/6o4fFa6 : Screenshot of partitions

I have a Micro SD card on which I was trying to burn a Raspberry Pi boot image. The write process stopped at about 2% saying “Fatal error: Hardware flaw”. It created two partitions in the disk, and now it’s entirely unreadable. I tried formatting using the SD Card formatting tool, Diskpart, third party applications, Windows Disk Manager. Nothing seems to take. It says completed, but everything looks exactly the same as before. I read somewhere that a read-only mode can get activated automatically. I tried clearing that using Diskpart to no avail. There has been no physical damage to the card, any issues there are must be in software. I don’t care about the data on it, I just want a functioning SD Card. Please help. Thank you

Tagged : / /

Linux HowTo: How to fix USB not showing up?

Original Source Link

I was trying to make bootable USB for windows 7 for my friend with rufus tool.It worked fine,but when i restarted my Windows 10 I have stopped seeing my USB.I see it in DISK MANAGMENT though:

enter image description here

enter image description here

enter image description here

Your USB stick doesn’t have a disk letter. In the disk management click right mouse button on Disk 1 and select item Change disk letter. In the pop up window select your usb stick and click on Change. In the next windows select the letter for usb stick.

Tagged : / /

Making Game: How to fix USB not showing up?

Original Source Link

I was trying to make bootable USB for windows 7 for my friend with rufus tool.It worked fine,but when i restarted my Windows 10 I have stopped seeing my USB.I see it in DISK MANAGMENT though:

enter image description here

enter image description here

enter image description here

Your USB stick doesn’t have a disk letter. In the disk management click right mouse button on Disk 1 and select item Change disk letter. In the pop up window select your usb stick and click on Change. In the next windows select the letter for usb stick.

Tagged : / /