Tuesday, July 30, 2019

UEFI Dual Boot Windows 10 & DebianTesting

I know I am probably making a duplicate. But there are so many duplicates already that finding an answer to my specific questions will take hours. If not more. I tried.


So I succeeded in the dual boot.
I have a ASUS FX504GM gaming laptop. Windows is on an NVME & the HDD now has DebianTesting.


My question.. did any of this at all effect the EFI partition of Windows NVME?
I ask this because when I used to install grub on my old PC which had MBR disks and Legacy BIOS it would ask me which disk I wanted to install grub to.. /dev/sda or /dev/sdb.
Idealy I would keep Windows in one disk. And install grub to the sdb that way I would be able to retain both Windows Boot Loader an grub on separate disks.
This time .. grub did not ask which partition to INSTALL itself to.
Now when I go into my UEFI setup (F2 at start) I see THREE boot option. Two of which are the Debian on disk ST1000LXSJS (Seagate Firecuda) and Windows bootloader on the NVME.


-Why are there two debian boot options?


-How does the EFI partition created on the Debian HDD work?


-Did grub install to two places?


Now here's the funny part.


I messed up the kernel updates and I am reinstalling Debian.
I deleted the EFI and root partition on the HDD and my UEFI still shows the boot options.


So did grub add an entry somewhere in the NVME's efi partition?

linux - UEFI dual boot messed up attempt

I was trying to for the first time dual boot my computer With Windows 8.1 Kali Linux


I didn't Have an Idea About What UEFI means so naturally I made a partition, then I Went to the "BIOS" menu and set things up in order to boot from USB (as I saw in tutorials, I was supposed to put the legacy mode on, and the "legacy first" option); finally the installation finished and I rebooted, there appeared the menu options to select the OS to use, so I first started Kali and saw everything was ok, but when I tried to enter in Windows , there Appeared a message saying something like "the boot configuration for your PC is missing" .....


So I panicked and I used the system restore tool, even when it finished the problem stayed the same, so I decided just as lucky choice to leave the he BIOS boot menu like it was originally. And that allowed me to use windows again, but when I tryed to enter in Kali now with the legacy mode, it shows the message "unkown filesystem grub rescue ...." , so summarizing I would really appreciate your help with this questions:


1) why did the dual boot Attempt failed?


2) Why windows and linux installer shows a different size from the same partition?


3) how can I delete the useless kali linux partition (I just don't remember which one it was) in oreder to use That space again?


4) Is there a way of making a dual boot with UEFI? how?

How to install operating system from ISO image through TFTP and PXE?



TFTPD64 is installed on the computer that has the .iso file for operating system. I extracted the contents of .iso into a local folder. In TFTPD64 I have to enable DHCP server, even though there's already one on the network, since client doesn't detect and get an IP info.



For Boot File under DHCP settings in TFTPD64 I don't know what to put.




I tried putting BOOT.CAT, but client just downloaded the file quickly and didn't do anything with it. I tried putting the name of the entire .iso image itself but TFTPD64 said under the status of the download "ERR".



How to install an OS from ISO image file using TFTPD64?


Answer



That might not be possible.



Typically when netbooting a small image gets downloaded through tftp (that contains network drivers and and a very basic operating system) and then it will connect to a network drive that contains the rest of the files needed to boot.



Because of the file size limitations of TFTP, and the fact that the ISO needs to be stored somewhere while the computer boots - you can't just boot an ISO over the network.




What are you trying to boot over the network? If it's linux you may want to take a look at the linux terminal server project. It's a great way to learn about tftp and the like. If it's windows, the windows automated install kit is another cool project to learn.


power supply - What is an effective laptop charging scheme




My friend told me that if you leave the AC adaptor plug plugged into the laptop after the battery is charged 100%, it actually over charges it and never cuts off the voltage. As a result, this reduces battery life.


I have Dell n5010 n series laptop with i5 in it. It is a new machine, and I was thinking that how is it possible that huge companies leave a "bug" like this in a laptop that is so expensive.


I think that it never turns off the charging, it actually puts it to float voltage as this is one of charging techniques.


I want to know what, in fact, happens.

linux - How to specify arguments for editor in Midnight Commander


I'm using Nano as the editor in MC. I would like it to scroll by 1 line, which is not its default behavior.


I've found that you can specify the option -S when you run Nano to enable smooth scrolling, but I don't know how to tell MC to do that.


How can I specify the options for an external editor that Midnight Commander uses?


Answer



I've edited the file ~/.selected_editor and added the -S option there:


SELECTED_EDITOR="/bin/nano -S"

It works as long as I don't run select-editor, which would overwrite this change.


EDIT:


Actually there's no need to use the command-line option in this case. Smooth scrolling can be set in /etc/nanorc with set smooth.


Remap Caps Lock to Ctrl in Windows 10 without administrator privileges?

I found this question:


Which would likely work great if I had admin rights on my machine. But I don't.


I also found a couple of links about remapping keys without admin rights in Windows 7. The suggested solution is to use the following:


Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00

(Save in a file with .reg extension, double-click to apply to the registry, and then reboot.)


This is the same as the first linked solution except for the key to edit; the HKEY_CURRENT_USER key can be edited without admin rights.


Unfortunately, this doesn't work on Windows 10. (It applies and creates the key, but even after reboot the Caps Lock key is caps lock, not ctrl.)


In regedit I see that under HKEY_CURRENT_USER\Keyboard Layout there are subfolders (subgroups?) for "Preload", "Substitutes", and "Toggle". It seems likely to me that putting something in "Substitutes" might be the way to do this for Windows 10 but I've no idea what to put, and there is no documentation I can find.


How can I remap Caps Lock to Ctrl in Windows 10 without admin rights?

Monday, July 29, 2019

How do you stop the Ubuntu "wipe" (wiping an NTFS disk) in progress?

I didn't realise that the Linux wipe utility runs 25 passes by default. I'm wiping a 320 GB external disk drive, (it's about 25% into Pass 3 started around 4 PM yesterday, it's now 1 PM).


Can I just shut down the terminal window while wiping is in progress and not damage the drive?


Terminal>
root@name-pc:/home/name# sudo wipe /dev/sdc1
Okay to WIPE 1 special file ? (Yes/No) yes
Wiping /dev/sdc1, pass 0 (13) [19535616 / 19535616]
pass 1 (6) [19535616 / 19535616]
pass 2 (24) [19535616 / 19535616]
pass 3 (32) [ 5097566 / 19535616]

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...