Monday, February 18, 2019

windows 7 - How to create a batch file for this issue?



I need help making a batch file that will create a folder and then extract a cabinet file from a Windows installer file and then run a DISM command to install said extracted update. Below is a list of the command to use but for the life of me I cannot figure out the batch command order to get it to work.



mkdir update
expand -f: Windows6.1-KB3112343-x64.msu .\update
cd update
dism /online /add-package /packagepath:Windows6.1-KB3112343-x64.cab



I would be using the command knowing the file is at C:/users/owner/desktop/Windows6.1-KB3112343-x64



I'll also be making the update folder on the desktop as well. I just want to automate this process as much as possible because I have many Windows 7 computers that I update and to start I usually need to do the above commands and I want to make it more efficient if I can.


Answer



This question is a typical XY problem. You tried to fix the slow MSU install and this can be done by running this batch file. It stops the Windows Update service before trying to install a MSU update. This speeds up the installation a lot.


Sunday, February 17, 2019

laptop - Battery ran out of charge suddenly and won't charge


I've dell inspiron 5547 laptop and it was working fine till last night i used it. I didn't shut it down as I usually do and just closed the lid to let it go to hibernate or sleep mode, battery was fully charged then. Now, at work I pressed the power button but it did nothing, i then plugged in the charger and charging indicator turned on then switched off again, I pressed the power button again while AC adapter was plugged in, laptop booted but charging indicator started to blink in red, and it's currently doing the same as i'm typing. I checked my battery status using battery info viewer and results are as follow.
enter image description here


as it can be seen that battery is pretty healthy (65%) but it's not charging....
further in bios it says "this battery has experience permanent failure and needs to be replaced"
i'm unable to understand this. any help would be much appreciated


Answer



The battery capacity is severely degraded and chances are one of the cells has now died. The battery is not charging at all and its "current capacity" is at "0.0%"


A healthy or new battery should be at or near it's "design capacity". One that is at about 60% capacity has either had a hard life, is very old or both. Batteries loose capacity over time and need to be replaced. As they age their chances of critical or catastrophic failure do increase as there are important chemical changes going on both during the charge/discharge cycles as well as over the life of the battery. Whiskers of metal can form in the battery puncturing layers separating internal parts, or films can form on contacts blocking the flow of electrons.


If an actual cell in the battery has failed and discharged itself then it it potentially hazardous and needs to be disposed of per your manufacturer guidelines.


Your BIOS message is also telling you exactly the same: that it is old, has failed, and needs replacement.


Replace it.


There is a very small chance that it could be a fault in your charger circuitry in your laptop, but battery failure due to age is far more likely.


windows 8 - DISM RestoreHealth Source


I am trying to fix component store corruption on my windows 8 laptop which is preventing me from upgrading to Windows 8.1. I have tried to run DISM /online/Cleanup-image/RestoreHealth but it doesn't work because of an invalid source. My laptop came with the OEM version of windows so I don't have a installation CD. So where or how do I get a valid source to repair my corruption? Can I capture an image from a running Windows 8.1 computer that isn't corrupt? I've read the DISM articles about how do capture and image, but where should I capture a valid image from.


Here are the links to the DISM and CBS logs:


https://drive.google.com/file/d/0BxX6CIDigV64cHEtZWxGRlNaTkE/edit?usp=sharing


https://drive.google.com/file/d/0BxX6CIDigV64aFJPN1ktamNyekU/edit?usp=sharing


Answer



Decided to just factory reset the computer and run updates from scratch. I was able to install the 8.1 update after this.


Saturday, February 16, 2019

installing vista on a laptop

I have a laptop which has a vista setup kit partition with drivers. After i buy it i had to do the next, next routine to install vista from those partition to the laptop.



Now, if I wish to reinstall Vista but to use the same partition as a source...how can I do it?



it is about a Toshiba satellite A300D



UPDATE:



1) I've tried HDD Recovery Procedure but i don't have Toshiba HDD Recovery in the menu, maybe because I've installed Windows 7.




2) also, I've tried to boot holding down the 0 button (this method) but i get no HDD Recovery Mode



I'm sure that the partition with the prebuilt MS Vista is on HDD and intact. All I need is to activate it and boot from it.

troubleshooting - My Windows 8 just crashed. How do I find out why?




Are there logs somewhere? Which process is to blame? Is it hardware or software? Where do I start looking for these things..?

windows 8 - Can't delete a folder because it's too deep


I have no idea how this happened, but I have a folder with so many sub folders that I can't delete the root folder. I have been googling this for about 2 hours and I've tried many things, nothing is working.


enter image description here


I've tried a few 3rd party tools, but no luck. I also can't map a drive to anyplace inside this folder. It tells me the path is not valid.


Any ideas?


Answer



Just shorten the names of the folders the undeletable folder resides in so the whole path has a maximum of around 250 Charakters. Then you should be able to delete it.


Example:


If the last folder can not be delted:


C:\folder1xxxxxxxx\folder2xxxxxx\folder3xxxxx\lastfolder


Now you should be able to delete it:


C:\folder1\folder2\folder3\lastfolder


windows - Dual-booting RAID 1


I have three drives: two 1TB hard disks, one 120GB SSD. I want to install Ubuntu (preferably, but justified alternatives are fine) and Windows 7 on the SSD, and have them both read from the other two drives as a mirrored RAID pair (RAID-1). These drives do not need to be bootable, just accessible from both OSs (and properly mirrored on both.)


I've had a good look through my bios, and there's no support there, and I'd rather not go out and get a hardware card. Another SU post suggested just setting up the 1TB disks as mirrored volumes in Windows 7, and seemed to suggest that would just work, but Ubuntu ignores that completely, and seems to show the drives as independent disks, which happen to have the same thing on them, and that is not a good solution.


TL;DR: Does anybody know how to set up software RAID-1 data disks that work from both Windows 7 and Ubuntu?


Answer



I found a solution in the end! Steps:



  • Install everything and get it working on the boot drive.

  • Go into Administrative Tools in windows, dig about a bit, and find the disk management section. From there, select one of the drives and set it up to mirror onto the other. It should demand that it become a dynamic disk; that's fine. It'll also probably want to format, that's fine too.

  • Go into linux and install mdadm.

  • From there, run 'mdadm --build /dev/md0 --level=1 --raid-devices=2 /dev/DRIVE1 /dev/DRIVE2', replacing DRIVE1 and DRIVE2 with the ids of partitions that windows has created.

  • Try and mount /dev/md0 somewhere, and make sure it works (will require NTFS drivers, but I think they're everywhere now anyway)

  • Rock out.


To do this at boot, you'll want to add the mdadm command to rc.local, or similar. Since this is NTFS you'll get partition issues, but you can mostly just ignore them. I'm just mounting the whole partition as my home directory, with uid=me,gid=me,umask=0077, and that's very usable.


Essentially with this you've built a RAID with no metadata on the relevant drives, they just happen to be in sync, and each of the OSs tries to keep them in sync as they go. This is not a perfect solution: Linux goes through both drives everytime you boot to check they match, which seems wasteful, and Windows likely does similar. Nonetheless, it does work, and if any drive ever fails (look up mdadm, there's lots of ways to tell, or even to get it to email you) you'll still have all your data, perfectly intact.


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...