Dual Boot Kali Linux v2018.1 With Windows 10

How To Dual Boot Kali Linux v2018.1 With Windows 10... well, theoretically that should be super simple if you have a new installation of WIN10 and no anti-virus ect.

This link here will provide you all you need, except its preferred for rufus to make DD Image.
btw - rebooting with usb
instant reboot UEFI cmd "shutdown /r /fw /t 0"
if fails to load CD-ROM... superuser

But while trying to shrink my 0.5TB hard drive to 250GB-250GB, i kept getting this error message

There is not enough space available on the disk(s) to complete this operation.

Simple answer is that all kind of services are having all kind of clusters around the hard drive that are security locked and you can't touch them.

There is the final simple solution, that might work, and then the long one...
Most likely that if you turn off some security features as explained here in super user and even the extras in this link you will be able to then go to the next step.

Next step is to disable the anti-virus, in my case ESET NOD32, including HIPS, and then find the size that you can actually shrink the volume, mine was 10GB at a time, while i had to restart after every 1 or 2 shrinks. tool aloooooot of time.

Try all that 1st, and if you dont manage read further.



In my case all that didn't work, so after a few tries i learned 2 things.

1 - my hard drive is SSD, which means that you can't (nor need) to normally defragment it, so those files stay where they are. with SSD you just "trim" it, so that's that.

2 - I can (usually) learn where my locked file is. press start, "Event Viewer" -> Windows Logs -> Applications.

Every shrink attempt includes a defrag job, which is being logged, Source = Defrag. if there is an error one of the logs before the error will be something including a command line like 

fsutil volume querycluster \\?\Volume{64160e22-978c-4d8b-84a2-43e086de88cb} 0xbf9d9



Open the Command Prompt  as Administrator and run the command you'll get the path to the file. most of my files were ESET's files. so i had to restart in Safe Mode to delete them, and from that point on the above, 1st part of this post, worked for me.


p.s.
fair warning, what you install you linux, and want to download 3.x python, download locally to that user only and not globally since the distro is build on 2.7 and that causes some upgrade errors.


p.s. 2 - what to do after installing the kali?

1st upgrade
   sudo apt-get update -y && apt-get upgrade  -y
   sudo apt-get dist-upgrade -y

then get chrome, the easy way is
  wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

  sudo dpkg -i google-chrome-stable_current_amd64.deb

create user
  useradd -m chromeuser

run chrome
  sudo -u chromeuser google-chrome

then desktop shortcut
  leafpad chrome.desktop and copy-paste

[Desktop Entry]
Name=Chrome
Encoding=UTF-8
Exec=sh -c "sudo -u chromeuser google-chrome"
Icon=/opt/google/chrome/product_logo_256.png
StartupNotify=false
Terminal=false
Type=Application



Comments

Popular posts from this blog

c# Service Play Sound with NAudio example by Moshe

Asp.Net Ending Response options, Response.End() vs CompleteRequest()

JS/JQ simulate Enter event