Skip to content

Instantly share code, notes, and snippets.

View sadanand1120's full-sized avatar
🤖
Excited to work and learn

Sadanand Modak sadanand1120

🤖
Excited to work and learn
  • Austin, Texas, USA
View GitHub Profile

High level process

  • completely format your external ssd into ntfs using your gist's instructions
  • install virtual box on ubuntu host (get the deb for the latest virtualbox from official site)
    • check the box for guest additions install
  • install vbox extensions pack from official site. Then Tools -> EXtensions -> Install, to install that.
  • add your user to vboxusers group (this allows usb sharing access inside machine)
  • setup a win10 machine on virtualbox
    • add the external ssd to the shared device inside the USB tab of machine settings
    • install halseo wintousb tool in it
  • get the win10 iso by going to "download win10 iso", downloading that tool, getting the iso file
@sadanand1120
sadanand1120 / clean-format-usb-ssd.md
Last active January 31, 2025 00:30
Steps to cleanly format a usb/ssd to any filesystem (ext4, ntfs, exfat, fat32) on Ubuntu

Completely format a USB, SSD from ubuntu

  • lsblk and check the mount point, e.g., /dev/sda which might have different partitions like /dev/sda1 etc
  • sudo umount /dev/sda*. Use sudo umount -l /dev/sda* if something refuses to unmount
  • sudo fdisk /dev/sda to delete all partitions one-by-one:
    • Press p to print the current partitions
    • Press d to delete each partition (repeat for all).
    • Press w to write changes and exit.
    • HINT: just keep doing d until you get no partitions remaining to be deleted, then do w and exit.
  • sudo parted /dev/sda mklabel gpt to create a new GPT partition table
  • sudo parted -a optimal /dev/sda mkpart primary 0% 100% creates a new parition (/dev/sda1)
@sadanand1120
sadanand1120 / test.py
Last active July 11, 2020 14:00
Testing the TensorFlow-1.14.0 build-from-source installation
import warnings
warnings.filterwarnings('ignore', category=FutureWarning)
import tensorflow as tf
text = tf.constant("Successfull Installation")
with tf.compat.v1.Session() as sess:
print(sess.run(text))
@sadanand1120
sadanand1120 / requirements.txt
Created July 10, 2020 19:14
Required python packages for Tensorflow build from source
absl-py >= 0.7.0
astunparse == 1.6.3
gast == 0.3.3
google_pasta >= 0.1.8
h5py >= 2.10.0, < 2.11.0
keras_preprocessing >= 1.1.1, < 1.2
numpy >= 1.16.0, < 1.19.0
opt_einsum >= 2.3.2
protobuf >= 3.9.2
tensorboard >= 2.2.0, < 2.3.0
@sadanand1120
sadanand1120 / Bazel_environment_system_variables.csv
Last active July 10, 2020 22:11
Bazel table in Medium post
Variable name Variable value Description
BAZEL_SH C:\msys64\usr\bin\bash.exe allows Bazel to access msys64
BAZEL_VC C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC allows Bazel to access Visual C++ compiler
BAZEL_WINSDK_FULL_VERSION 10.0.17763.0 lets Bazel know the correct Windows SDK version to use