Saturday, June 30, 2018

windows 7 - RamMap can't see what takes up memory

My pc is always using 2-3gb of ram in idle and I can't see why


I have been searching for the solution for some time with rammap, but it always ends up at look at the process private active usage, which is 1.7gb for nothing on my pc
but when I go to processes the private usage doesn't add up at all
same for poolmon


Tried adcleaner, malwarebytes, combofix, avast and ccleaner, still my ram is occupied


here is my rammap scan result:


http://www.file-upload.net/download-10058185/NICHT-PC.RMP.html

ubuntu - My internal hard disk is corrupt and can't be accessed



I was fiddling around with Ubuntu. After restart, the boot menu disappeared. So I tried installing Ubuntu from a live USB.


This is what I get:


screenshot


I actually had 3 partitions in windows - C, D & F which are now collapsed into one. So I tried "Try Ubuntu before installing" and started Ubuntu. To access the file system, I tried sudo fdisk -l which shows that I have a 1TB volume on /dev/sdb:


Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

So, I tried to mount it using sudo ntfsfix /dev/sdb. It shows the following output:


Mounting volume... NTFS signature is missing.
FAILED
Attempting to correct errors... NTFS signature is missing.
FAILED
Failed to startup volume: Invalid argument
NTFS signature is missing.
Trying the alternate boot sector
Unrecoverable error
Volume is corrupt. You should run chkdsk.

What do I do now to recover my files? Is the data still present in the disk? How do I recover it?


Update – I ran gparted, this is what I get:


gparted screenshot.


Update 2 - I used TestDisk and obtained the following result. But the size of My HDD is only 1TB what am I supposed to do next?


Answer



It looks like your partition table is missing. It may not be the only problem but let's hope for the best.


Use TestDisk to scan for missing partitions (like this). If it finds your old partitions then let it write the recovered partition table to the disk. It may or may not be enough to fully recover. It's hard to say what you did "fiddling around with Ubuntu"; e.g. you may have overwritten some data inside your partitions, I don't know.


In some cases, when you don't know what you're doing, reckless use of TestDisk may make the situation worse. It's a general good practice to make a clone of the HDD with dd (or ddrescue, especially if you suspect your disk to be faulty) beforehand; this requires time and additional diskspace though.


However if TestDisk finds your partitions exactly as they used to be, it should work without any issues, unless there are problems beyond the (missing) partition table.


If you manage to recover the partitions (i.e. they mount right, you can access all your files including your Windows system files) but the Windows doesn't boot, the reasonable thing to do is repairing the bootloader. I won't cover the subject here because you explicitly asked about recovering files only. Still you may ask a separate question if there's none yet that covers this subject – search first.


In a case your partition table recovery was unsuccessful or not enough to access the files, use the said TestDisk or PhotoRec (or similar tool) to recover (some of) your files to another disk.


windows 7 - 8GB USB pen drive showing 700MB after formatting





My 8GB pen drive is now showing 700MB after I formatted it. I've created Ubuntu Desktop bootable USB drive using Power ISO.



After I formatted it. Now it's showing 700MB. Why is that? I'm using Windows 7 Ultimate.


Answer



I guess you only formatted than one partition that got created for your bootable Ubuntu Desktop.




In order to resolve this you might want to use "Disk Management" (see http://pcsupport.about.com/od/windows7/ht/disk-management-windows-7.htm how to find it), delete existing partitions on your USB drive and create a new one, filling all the space.



Afterwards, format it according to your file system needs.



Beware, all your information that's stored on the usb drive up to now, will be lost.


laptop - Battery 0%, not charging. Shuts down during demanding tasks. ROG G751JY

So like 5 months ago my ROG didnt want to charge to 100% anymore. I didnt like it but never used it without the AC, so I didnt think much of it. So I went away for a week so i disconnected the AC - when I came back the battery was dead. It says "0% avaliable (plugged in, charging). Its not really a big deal since I always use it with the AC, but recently when I am gaming the laptop just turns off. I can turn it on right away - so it seems it loses power for half a second or something, which is enough to turn it off.



Seems like my battery serve more of a purpose other than running with no AC. And should provide extra current during high demand usage like heavy gaming, and also carry you through brownouts.



Anybody managed to fix this without opening the thing and replacing it with a 100 euro battery?

windows 7 - New Laptop Battery

My laptop battery recently decided to kick the bucket, so I bought a replacement. I charged the replacement for approx 4 hours and assuming it was fully charged (only took my last batt 4 hours) unplugged and went on my way.


Later I started up my laptop and the battery was only a 11% charged. Since I didn't have my charger, I used it until it hibernated and then plugged it in when I got home. Now, after 24+ hours of charging, it won't charge further than 0% charge. I tried to calibrate the battery (by discharging and recharging) however each time the laptop shuts of after only 5 minutes.


Have I wrecked this battery somehow by discharging it after only a 11% charge, or is it just a bad battery?

Friday, June 29, 2018

keyboard - AltGr randomly stops working on windows 10


I am using a number of different keyboard layouts, depending on which language/keyboard I am woring with. Some of these rely on the AltGr key for producing certain symbols like @ (e.g. the Swedish layout).


Since I updated to Windows 10, the AltGr key intermittently ceases to work (while Ctrl + Alt + still works). Similar issues have been reported with Win 8 and Win 8.1, but the solutions to these do not apply to my case (and perhaps not to other Win 10 cases. So I will try to be very precise in describing the issue here.


To start with, when I say "the AltGr key stops working", what I mean is that it fails to act as Ctrl + Alt (which is what it is supposed to do). However, it does do something: for example, when I press AltGr + 2 and then another ordinary key, say "A" what I get is "2a". Note that the 2 does not appear until I press the A. In other words, when pressed with AltGr, the "2"-key is somehow treated like a dead key.


Changing between different keyboard layouts does not help. AltGr will not work neither in those other keyboard layouts nor in the original one when I switch back to it. The only way to get AltGr working again seems to be to reboot the system (though I have also seen instances where a reboot from a system with a working AltGr key led to a system with a non-working AltGr key).


It also does not make a difference whether I use the Windows 10 screen keyboard or the hardware keyboard. In the case of the On-screen keyboard, pressing the AltGr key correctly displays the characters on those keys that have one assigned to them (in combination with AltGr), but despite this, tapping one of those keys does not produce the displayed character.


Answer



It turns out that, in my case, the reason for this was wincompose, a program that I had uninstalled but for unknown reasons that uninstall partially failed so that the core of the program was still running in the background and interpreting some of my AltGr keyboard inputs as shortcuts (without any function).


This question has been extremely popular over the past few months, which means that many people are facing similar issues. Most likely, this will not be the solution for them, but I hope that more answers will eventually come up so that everyone finds a solution.


windows 7 - Fix 0xC0000005 application crash error?

Almost all my installed programs (Firefox, skype, other 3rd party programs, ...) crash. They all assigned with EventID:1000 and Exception code: 0xc0000005.




I have tried to change the memory but
that did not help.



I think it might be virus or malware. How I can fix this error?

Displaying all Windows 10 Hotkeys - possible?

Is there anyway to display all of the current hotkeys my windows 10 currently have?



I don't want to search online for the default list, because I might changed some hotkeys, and I don't want to go and search each program or any combination of a hotkey to understand what it does - that's why I'm looking for an easy list that shows all of my current Windows hotkeys.




Is it possible?

Sources of Linux memory usage not in /proc/meminfo

I’m running a Linux server that shows weird patterns in memory usage that I’m trying to investigate.


During normal operation, around 200MB of memory are used for applications according to munin, but every now and then (maybe every couple of days), there’s a sudden increase by around 1GB, as visible in this graph:


munin memory graph showing sudden increase in memory usage


I’ve been trying to find the cause of this, but I’m not sure what it could be. The fact that munin attributes this memory to “apps” suggests to me that one of the running processes is simply using a lot of memory, but looking at top when this happens shows that none of the processes uses nearly as much memory; in fact, the top 15 memory consuming processes don’t change at all when this occurs and the top one only uses 2.2% of the memory. Also, the memory info from ps doesn’t nearly add up to this much memory, but rather something in the ballpark of 200MB.


The height of the increase is usually the same, and as visible in this example, it just disappears after a few hours.


I’ve found that a reliable way to trigger this behaviour is by downloading a large file (1.4G) using wget via an ssh tunnel over the network to the local disk (network activity alone doesn’t trigger it).


To see the memory usage in more detail, I’ve started to log /proc/meminfo every 10 seconds and made a tarball with graphs from this data. The download causing the behaviour in question started at 10:35:32 and was finished at 10:38:53. The original log data is also included in the tarball.


In /proc/meminfo, there’s no value that goes up enough to explain that huge decrease of free memory (this is essentially what munin attributes to “apps”), which leaves me clueless. The amount of used memory that munin reports is also reported by free and top, but there are no processes in the process list that would explain such high memory usage, or the sudden increase when downloading a file.


What I’m trying to understand is:



  • Is it normal that the memory usage behaves in this way without any
    particular process using the increased memory?

  • What could be other sources of memory that’s not accounted for in
    /proc/meminfo?


Or could this be a sign of the system being compromised?

Thursday, June 28, 2018

windows - How to "join" two partitions


I have a laptop hard drive that I'm using now as an external USB hard drive.


The drive has two partitions - I don't want this configuration and only want one partition. How can I join the partitions into one, without losing any existing data from them?


Answer



If you're using Windows, you can go into the built-in Disk Management console and delete a partition that does not have any data and extend the other partition into the unallocated space.


As Shinrai pointed out in the comments, this does not work if you want to do this for the active drive.


UPDATE:


How to open the Disk Management console (Windows 7; similar for other Windows OS's):


Right click Computer and select Manage:


enter image description here


Select Storage then Disk Management:


enter image description here


The Disk Management console is now open.


enter image description here


UPDATE 2:


How to delete one partition and extend the other into it:


Open the Disk Management console


Delete one partition, preferably the one that does not have data on it by right clicking on the partition and selecting Delete Volume:


enter image description here


You will then have an Unallocated partition:


Right click on the other partition and select Extend Volume:


enter image description here


Anyone know how I can use the same keys to move between Vim windows as well as Tmux (or tiling WM) panes?

Anyone know how I can use the same keys to move between Vim windows as well as Tmux (or tiling WM) panes?


For example when I use my key combination to move to the right pane within VIM, VIM should first detect if there actually is a VIM pane to the right. If not it should call a Tmux command to move to the tmux pane on the right (if a tmux pane on the right exists).


Something similar would have to happen if you move back while being in a Tmux pane.


I suppose that besides Tmux you could also use this with a tiling window manager.


Update: moving out of VIM into a Tmux pane can be done as follows:


function! WinMove(key)
let t:curwin = winnr()
exec "wincmd ".a:key
if (t:curwin == winnr()) "we haven't moved
if (match(a:key,'[h]')) "we're we going left
silent execute "!tmux select-pane -L &>/dev/null &" | redraw!
elseif (match(a:key,'[j]')) "we're we going down
silent execute "!tmux select-pane -D &>/dev/null &" | redraw!
elseif (match(a:key,'[k]')) "we're we going up
silent execute "!tmux select-pane -U &>/dev/null &" | redraw!
elseif (match(a:key,'[l]')) "we're we going right
silent execute "!tmux select-pane -R &>/dev/null &" | redraw!
endif
endif
endfunction
map
nmap :call WinMove('k')
map
nmap :call WinMove('j')
map
nmap :call WinMove('h')
map
nmap :call WinMove('l')

Not sure yet if moving back is even possible, but I'm going to investigate it.

macos - In TextMate, how do I position the cursor inside a newly generated HTML tag?


I came from the Windows TextMate clone e-texteditor. And in that app, and set to Ruby on Rails bundle while in an .html.erb document, if I was to type Ctrl-Alt-W (equivalent to Ctrl-Shift-W in TextMate), then I get




with the letter "p" in the first pointed brackets highlighted where I can type any text and the other closing brackets' "p" will change accordingly. All is well in both TextMate and in e-texteditor so far. But in e-texteditor, if I then press Tab, the cursor will be moved to the content of these HTML tags like this:


|



where | represents the cursor. Now I know that Ctrl-Shift-W is supposed to wrap selected text in TextMate, and e-texteditor does that, too! But I find being able to make a pair of HTML tags and tab inside instead of arrow-key myself back in very convenient.


Perhaps there is another shortcut for this?




Just in case I am not being crystal clear already: Ctrl-Shift-W (or another shortcut), when pressed, first generates




with the first 'p' highlighted ready to be changed. Changed or not, when Tab is then pressed, the cursor should go in between these opening and closing HTML tags.


Answer



EDIT


Something was bugging me with your question: I didn't remember having that problem at all but I somehow forgot most of what I once knew about TextMate (switched to Vim a year ago). I just re-licensed TextMate to play around with TM2 so here is your answer:


You are using the "wrong" shortcut.


CtrlShiftW is for wrapping the currently selected text with opening and closing tags.


Since you hit this shortcut without a selection you end up with an empty tag. Because it's designed to work with some pre-existing content it's quite logical that it doesn't provide the ability to edit said content further.


The typical use case is when you paste some raw text from a brief and go through it to add proper HTML formatting.


This shortcut inserting an empty HTML tag pair is something of a mirage. Sure it does that but it's a side effect of not using it properly.


The correct shortcut is Ctrl< which is for inserting opening and closing tags optionally using the current word.


You can use it in two ways:



  1. If you have whitespace on the left of the caret, hit Ctrl< to insert

    with the first p selected. You can either change p to something like h1 and have it mirrored to the closing tag or hit Tab to move the caret between the tags, like that:

    |

    .


    Which, I think, is exactly what you want and, actually, what I've always done. Hence my discomfort with your question.


  2. If your caret is positioned just after a word, say span, hit Ctrl< to replace span with with the first span selected. You have now the exact same possibilities as with the first method.



END EDIT


My TextMate days are gone now so this solution is probably not the best one but it's very easy to put in practice.


Simply create a snippet with the letter t as trigger and


<${1:tag}>$0

as content.


When it's done you only have to type tp then your content.


Obviously, as it is there is a rather important drawback: if you add attributes they will be mirrored to the end tag.


This can be mitigated by adding an extra tab stop:


<${1:tag}${2: }>$0

memory - RAM for Laptop, Configuration

i've a Dell 1545 and i need to put additional RAM. The laptop normally uses DDR2-667, PC2-5300 200pin. Can i use a RAM 2GB PC2-6400 DDR2 800 SODIMM in it?

Wednesday, June 27, 2018

hard drive - Plugged HD power the wrong way, how to recover data?

A few years ago, I bought a kit to connect internal hard drives to computers via USB. Unfortunately, I plugged the power cable the wrong way and the circuit burnt and emanated smoke.
I just found back this hard drive and I would like to know what are the solutions to get back data ?
This is a Maxtor Diamond Plus 9 80GB ATA/133 HD.
I found on the web the same model of hard drive, if I buy one and I replace the electronic part of my hard drive with the new one, could it be working ?


Here is the photo of the electronic part :
enter image description here


I surrounded in red a part that seems to be damaged, also, if I was to replace the electronic parts, how would I plug it back to the parts the are surrounded in blue and green in the photo ? (because they are soldered)


Thank you.

Windows update problems after fresh Windows 8.1 install

I did a fresh install of Windows and right off the bat, Windows update would hang when I had it search for updates. It would show searching for updates and then hang on that screen. I let it go for about an hour. I was able to follow steps that I read on this forum to get it working but my computer has only a couple of days left on the warranty and so I would like to figure out if there is a hardware problem.


Here is what happened:



  1. Windows Update would hang on the screen "checking for updates."


  2. Downloaded Windows update client, which would also hang.


  3. Used Reset Windows Update agent tool, which basically clears out the Windows update cache. Then, sfc /scannow and Dism /Online /Cleanup-Image /RestoreHealth. Ran Windows Update tool again, it installed an update, which I think is an update to the Windows Update software.


  4. Computer was now able to find updates. The status bar said that the computer was almost done installing updates. But, at the end it gave a message saying that there was a problem installing updates.


  5. Followed steps on Microsoft webpage here:
    https://support.microsoft.com/en-us/help/10164/fix-windows-update-errors.
    Network troubleshooter did not find anything.
    Windows Update troubleshooter had these results:


    Service registration missing or corrupt - Fixed
    Windows Update error 0x80070003(2019-01-19-T-12_31_03A) - Fixed
    Problems installing recent updates - Fixed

  6. Computer says that it needs to restart in order to apply updates. I restart.


  7. When I go to the check for updates screen again, it still says "last checked for updates: never & last installed updates: never." But, available updates seems to reflect that some updates were installed.


linux - Rename recursively files, while keeping the extension


I have a bunch of directories that each hold one *.txt file in it (and other non *.txt files).


I'd like to rename those files recursively from the command line, basically *.txt to info.txt.
So all *.txt files should be renamed to info.txt.
There is always only one .txt file in each directory.


I have been looking at multiple questions here (and elsewhere) that seem similar, but either they focus to change the extension, or they do not work recursively,...


Any help would be very much appreciated.
Platform: Linux or MacOSX.


Answer



find ~/dir -type f -name "*.txt" -not -name "info.txt" \
-execdir mv -v {} info.txt \;

Alternatively:


find ~/dir -type f -name "*.txt" -not -name "info.txt" \
| while read -r file; do
mv "$file" "${file%/*}/info.txt"
done

Windows 10 stuck on boot

Today when i started my computer it got stuck on the windows 10 boot logo. The dotted circle stopped spinning after a few times and freezed. I to shut it down using the power button and when i started it automatic repair began. After the repair it showed a blue screen WHEA_UNCORRECTABLE_ERROR. I tried to boot it up and again the same thing happened (freezed at the boot logo). However I was able to access the safe mode. It worked fine in the safe mode but it still freezes at the boot logo.

setup - Windows Recovery Console - forgot password




I upgraded to Windows XP SP3, which immediately "broke" the laptop - it never booted with SP3 on it. I put in the Windows XP install disk I had originally used to set up the laptop, and it ran for a while, then said there's no hard disk present, so it can't continue. BIOS still sees the hard disk. I put the hard disk in an external USB case, and I can read/write to it with the other laptop. I then put the hard disk back in it's laptop, restarted with the Windows CD, and tried to get into the Recovery Console, but I forgot the password and can't "log on" to the drive. I'd also like to know if I can fix the broken files (which ones?) from the other laptop (via USB), and if I can "log on" to an external disk with the Recovery Console. (Also, the data won't fit on my other laptop, and I don't have all the install CDs for software on the disk.)



Any help appreciated.


Answer



Use this bootdisk to reset the password.


Tuesday, June 26, 2018

linux - BTRFS filesystem, compression and copy on write


I'm planning about moving from etx4 to BTRFS filesystem on my pc and backup server.
I'm very interested in the BTRFS snapshot feature (I have understood it uses the copy on write feature) and the compression feature but I have doubts/questions:


How do the compression and cow interact/work together?
Does the filesystem compression affect(penalize) the efficiency of cow?
Has anyone here used both features, cow and compression, with BTRFS and can confirm they are working fine together?


Update: I have found this explanation\answer inside the btrfs wiki:


"How does compression interact with direct IO or COW?
Compression does not work with DIO, does work with COW and does not work for NOCOW files. If a file is opened in DIO mode, it will fall back to buffered IO."
It looks like compression and cow work toghether.


Has anyone used cow+compression in production toghether --i.e: multiple snapshots of compressed folders ?


Answer



BTRFS compression is designed to fit in efficiently with the whole CopyOnWrite design. I use both together and I can confirm they haven't caused me any problems.


How they work together: file data in BTRFS is stored in extents, which are long sections of sequential blocks. Blocks are all the same size, usually 4K, while extents vary in size by the actual file and free space. So for example, if you have a file that is 1M in size, it could be one extent of 256 blocks, or it could be two extents of 113 blocks and 143 blocks. Or dozens of extents of all different sizes, in any combination. If you change one byte in the middle of the file, it will copy the extent that contains the changed byte. It might create a whole new extent, or it might split that extent into three: two on either side of the changed byte which point at the original unchanged blocks, and one with the new data.


The way compression fits in, according to the btrfs wiki, is that compression is done on a block-by-block (4K size) basis, in block groups up to 128K in size. So the file is not stored one long compressed stream; it is stored as sections of compressed chunks. When you change one byte in the middle of the file, the majority of the file in compressed blocks is untouched. The compressed block, and possibly a few blocks around it up to 128K, are copied and recompressed, and the extent list is updated like any other COW write. In today's systems, compressing 4K or 128K is trivial, so there is no performance penalty.


Since adjusting the extent map of the file is a normal part of COW functionality, there is no significant difference in whether some of the 4K blocks are compressed or uncompressed. (In fact, in BTRFS, a file can include any combination of uncompressed blocks, ZLIB compressed blocks, and LZO compressed blocks, depending on which compression option was active in the filesystem when parts of the file were updated.)


I haven't done any exhaustive study or measurements; it "just works" like I expected it to.


hard drive - Reliability of S.M.A.R.T.?

I've been using ActiveSmart to monitor my hard-drives health for a few weeks now, and its telling me my brand new 1.5 TB hard-drive is half-dead already. About on-par with one of my hard-drives which I know is at least half dead because I've been having some read errors and heard ticking noises. Now I haven't actually noticed any problems with my 1.5 TB drive; should I be concerned that it's going to crap out on me too? Or could ActiveSmart be giving a mis-diagnosis because I use it a lot or something (I've used up 795 GB in the 2 and a half weeks I've had it). The events that ActiveSmart has been catching is "Hardware ECC recovered". Maybe these new fangled super big hard-drives somehow rely on ECCs to squeeze out the extra space, but this isn't actually a cause for concern?

usb flash drive - How do I recover missing partition? (Windows 8 with recovery USB)

I bought a Samsung laptop with Windows 8 preinstalled. After a year I removed Windows 8 and installed Windows 7. Before removing Windows 8, I made a Windows 8 recovery USB.


Now I want to get back my original Windows 8.


When I used the USB, it said missing recovery partition or partition has been deleted. Can I install Windows 8 from the internet? and if I use my recovery USB will it activate Windows or not? Or is there any other way to do this task?

Windows 10 Multiple Desktop Affinity for processes

I've never really used multiple desktops before on different operating systems, so maybe this is just how they work.


But if I kick off a process on one desktop, and then switch to another desktop while that process is still launching, any new windows that process creates will be on the desktop I am currently looking at, and not the desktop that launched the process.


For instance, start Visual Studio on Desktop A, while it is launching, move to Desktop B. Once Visual Studio has launched, it will come up on Desktop B not Desktop A.


Same thing: run a Visual Studio project that launches a window of some sort (a browser window, a WPF Form, whatever). Before the window comes up, switch desktops. The window will now appear on your current desktop and not the old desktop.


Is this behavior normal? Or is this something that might eventually get fixed? Cause it is a little frustrating. Doesn't really let you "bounce" between desktops quickly.




EDIT
Here is an example where the lack of virtual-desktop affinity for launching new processes is actively bad.


I have two Virtual Desktops going, for working on two different projects. Both of them are web development projects, so on each desktop I have instances of Chrome running. Chrome launches a new process for each tab. If you click on a link from somewhere else, Chrome will create a new tab on the most recently used Chrome Window.


On Desktop A, I also have my email running. If I click on a link in an email and the most recently used Chrome instance was on Desktop B, the most likely outcome is that a new tab will open on Desktop B and my current view will switch to Desktop B.


But less frequently, what will happen is that I will get extremely fast "flutter" or "flicker" between the two desktops as the desktop manager seemingly can't figure out which one I want to look at. The only way to stop this flicker is to click somewhere on the screen and change the focus of the active window.


If new processes were by default owned by the desktop that launched them, this issue would not happen.


Really, it doesn't make sense that virtual desktops don't work like this.

Monday, June 25, 2018

windows 7 - Hard drive, CPU, or other issue?


It seems my computer has crashed but not sure what the problem is. I have an HP Pavillion p6310f with Windows 7 home edition. I bought it less than 2 years ago. 6GB RAM, 1TB Western Digital (green version) hard drive, AMD Athlon II X4 630 Quadcore.


I was just working like normal on my computer, didn't even have a browser open, when all of a sudden a message pops up that an error occurred and that for the safety of the computer it would shutdown.


After it shut off, I tried starting it back up. There weren't any boot loaders detected so I went into the BIOS to point them. No drives were detected at all. I had no option to boot from.


So I gave it a good power cycle. After that I was able to detect the right boot driver and get started up. I chose to start Windows in safe mode. Once the computer is started up its really slow, unresponsive, completely freezes up and sometimes just shuts right back off.


Seems to me like its a hard drive but I don't want to go buying a new one if its sounds like its something else. Just thought I'd check with you guys before taking it into the computer store where they will probably charge me just to look at it.


Ideas? Advice?


CONCLUSION:


In the end its the hard drive. I was able to run diagnostics on the CPU, RAM, Power Supply and they came back fine. When it tried to run the diag on the hard drive, it froze and wouldn't run. So, safe enough to say, its the hard drive.


Answer



If you have no solid ideas, and no spare parts/computers to test with, then perhaps it's worth paying someone who knows what they're doing to tell you what's wrong?


Having said that, then based on your description and experience, it sounds like your harddrive is dying.


Head over to Western Digital's site and grab their diagnostics utility.


You can test your memory using Windows built in memory test, or something like Memtest86+.


Otherwise, you're going to have to go try and few things and then come back with more specific questions, so that we're not guessing at what's wrong. :)


Also check out these other SU questions (plus I'm sure there are MANY more) for some ideas on what/how to test:


Upgrade to Windows 7 with upgrade key and full disc

I just ordered a retail copy of Windows 7 Professional Upgrade to finally upgrade my work computer from Vista.



It's not scheduled to be delivered until Monday, though, and I was hoping to take my computer home and upgrade over the weekend. I already have a full retail (non-upgrade) disc for the same edition that I'd bought for myself, though.



So can I use that disc to perform the install, and then just enter my upgrade key on Monday when it comes in? Will that make everything activate properly? Or do I need to wait till I get my actual upgrade-specific disc before I try to use my upgrade-specific key?

Sunday, June 24, 2018

performance - Windows 10 throttling CPU to dead slow


I'm facing windows 10 slow/non-responsive behavior (perhaps after 1809 update) and after doing many fixes mentioned online (like drivers update, services on/off, windows update etc) i ended up in finding a cpu frequency change.


When i run it in safemode, it run fast as expected on correct frequency 2Ghz. (see core speed)


enter image description here


Where as when i run it on normal mode, starts fine but after few minutes of idle time, it changes cpu freq. way too slow 0.4Ghz. (see core speed)


enter image description here


Initially i thought it is due to thermal condition of cpu, so i tested it with coretemp and it seems fine.


enter image description here


I also tried changing power plan (default to balanced on 1809) to high performance but no result.


enter image description here


I also tried setting SpeedStep to 'disabled' from BIOS but no change. Also updated BIOS to latest from Dell Update App.


Can any one help?


Answer



I found answer myself, it seems to be a close duplicate of this.


Solution:


Another such setting is BD PROCHOT (Bi-directional Processor Hot), an emergency throttling system that is used when a CPU hits its maximum temperature. To disable it temporarily, download ThrottleStop to check on and disable BD PROCHOT. ThrottleStop when running can also correct several types of CPU throttling. Again, if this helps then something is wrong with your motherboard.


https://superuser.com/a/1364641/303622


hard drive - How do I delete programs that dont exist according to windows explorer

Windows 10, I force closed steam while it was writing to the hard disk and now all the games i had in the steamapp/common on my C:/ drive are gone.


BUT


Steam is still downloading synced data from the cloud for these games, but to install them i need to free up space


BUT i cant free up space because Windows Explorer doesn't see them...


BUT Recuva finds them.


BUT it ignores them regardless of filter settings....


SO now, i have only a few megabytes of free space on my c drive and i need to someone clear up 200 gigabytes of data that i cant clear up because the files dont exist.


I'm assuming I'm royally donefor and I'm ready to just give up. I was planning on getting an ssd anyways.


TLDR:
- force closed steam while it was writing to disk



  • steam/common folder is "empty"


  • file space is still occupied by programs that "dont exist"


  • recuva ignores the files


  • cant free up enough space to have steam check for installed games


  • need to delete files that "dont exist"


  • steam client cant send support ticket for whatever reason



Turns out steam moved the steamapps folder into the steamui folder. steam is weird. Hello future people trying to fix this! check to see if some other steam directory folders are a bit too big...

Saving "Find result window" in Notepad++

I used notepad++ 6.7.5 to do several searches on a number of opened documents and this showed the " Find result window/pane " with all my Finds. The Find result window helps me to find texts in their respective documents when I simply double click them.
Is there a way to save the "Find result window" with all the words I have found in it? Or, is there a way to save session with the Find result window?

performance - Want Visual Studio 2010 stop using the drive when there's lots of RAM in Windows 7 64 bit

I will be upgrading my system to use 16GB of DDR3 RAM in a Windows 7 64 bit and Visual Studio 2010 Ultimate. CPU will be 6 cores 3.2Ghz. I do lots of compiles/day and my goal for VS is to show a web page within seconds after making a change in the code behind.




I noticed Visual Studio does a lot of I/O operations (from HD led) with the drive during its work. I would like to put everything VS needs in memory including the temporary folders, system files, my code, .. whatever. I just want VS to be blazing fast. My primary drive is an SSD, which is fast, and I even want VS to not use it. RAM is super fast compared with anything else.



I know VS 2010 is still 32bit so it will use max of 4GB however all the other opened apps (browser, Outlook, File Explorer..etc) can use whatever remains from the 12GB and let VS roam freely in its dedicated 4GB memory space.



My question: What settings and tweaks can I perform to Windows 7 and VS 2010 so that VS 2010 dedicates and uses as much memory as it can and block that away and so that it uses the hard drive as little as possible? Is Windows 7 64 & VS already optimized for that and not much else can be done. Would a RAM disk help? Think of this as if I am trying to eliminate the drive.



I am aware of higher probably of data loss with power loss but that's not a concern right now. Assume no external dependencies are present (database, network speed ...) which might slow VS. Disk defragmentation doesn't help much.

windows 7 - New Rapoo E2800P keyboard not working when plugged in

I just bought this keyboard http://www.amazon.de/Rapoo-Wireless-deutsches-Tastaturl... for my laptop and connected it via the USB loading cable to my laptop. I bought it to replace an old keyboard from the same brand that broke after I spilled water on it.




Now, the new keyboard doesn't work when I plug it in. The battery indicator on the keyboard says the battery is loading, but pressing keys does nothing. I also don't see any new devices in the device manager.



Why won't my keyboard work?

Getting back Windows 10 recovery which has windows 7 recovery


Initially I used regback registry to fix USBPCap USB not working problem . After sometime It gave 0xc000021a BSOD . So i used Windows 10 iso to repair and messed it up with bootrec and bcdedit commands.
Now Windows 10 iso opens Windows 7 recovery options.
Tried SFC and dism.
I am able to boot PC only by disabling driver signature enforcement . Which I can select only from 0x0000001 error after multiple restarts from BSOD.
Debugging minidump showed ntoskrnl to be causing 0xc000021a error. Reset and restore not an option
Incidents may not be related
Also startup repair using windows 10 iso which shows Windows 7 logo and UI gives OS mismatch error.


Answer



Got recovery back to normal by setting boot mode to UEFI in BIOS.


command line - How to export File Names (Only Image Files) from various location or directory into a text file

As mentioned in the title, I need to export the file names of various image files from various directories into a single text file as a list. How would I go about doing such a task?


Secondly, would it be possible to partially remove the files names listed in the text file? Please see the screenshot:


enter image description here


I need to remove the filename "HS3-HTS-" and leave only the number for the filename.


Finally, would I require command prompt to execute this task or is there another solution?


I found a link here, but it did not tell how to select only image files, any help will be appreciated. Thanks in advance.

filesystems - how to move a lot of folders into a sub-folder in linux?



There are too many files [*] in a certain folder. I'd like to move some of them into a sub-folder. How can I:





  • move first 3000 files or folders into another folder, or

  • move files older than 3 months into another folder?



Thanks




  • http://www.google.com/search?hl=&q=Errno%3A%3AEMLINK)+“Too+many+links&



Answer



By far the easiest way is to use zsh. To move the first 3000 files in the current directory into /other/directory:



mv *([1,3000]) /other/directory


If you've created a few subdirectories that you want to exclude from that command:



setopt extended_glob

mv *([1,3000])~(exclude-me|exclude-me-too) /other/directory


To move files older than 3 months (the first m is for “modification time”, and the second m means months; fractional parts are ignored, so +2 means ≥3):



mv *(mm+2) /other/directory






If you'd rather use complicated commands than start a different shell, these are still reasonable one-liners with GNU find:



find -mindepth 1 -maxdepth 1 -print0 | head -n 3000 | xargs -0 -i mv {} /other/directory
find -mindepth 1 -maxdepth 1 -mtime +91 -print0 | xargs -0 -i mv {} /other/directory

windows media player - Disk Recovery Software and Digital Rights Management

We are running Windows 7 - 64-bit with Windows Media Player 12 and Overdrive Media Console. All of our PCs are "frozen" with DeepFreeze which is similar to CleanSlate or any other rollback/disk recovery applications upon reboot.



On public PCs, this is not an issue BUT our staff PCs are frozen too with a thawed area for ebook downloads and other work-related files. Here is our dilemma: staff download an eBook with full DRM attached. The book plays but the next day, the book remains but not the licensing as it is hidden somewhere on the C: drive and cannot be re-routed to the "thawed" storage area we have the books in.



In earlier version so Windows Media Player, you could change the target location of the DRM licences to follow wherever you stored the books. WMP12 does not allow this. The registry entry for this is in binary from what I can tell, hence having to be a software engineer to address such a tweak. You also can't downgrade to an earlier version of WMP to get the target function back.



If anyone has any input, that would be great.




An addendum:



DeepFreeze Igloo is a migration tool that allows one to exclude by redirection folders/profiles/registry keys... However, seems DRM on Win7 64-bit is a bit more convoluted than we had thought.

hard drive - Clone HDD to USB to SSD?

I bought a new computer (ASUS G551JM) with a hard disk drive (1TB 7200 RPM), but I want to transfer the OS (and everything else) onto my Samsung EVO 840 (500GB). However, when I purchased the SSD from Samsung, I did not purchase the laptop kit.


I'm wondering whether I can clone the OS from the hard disk drive onto my SanDisk Extreme USB 3.0 (32GB), and then onto the SSD.


My ultimate goals are to save $120 by not buying another copy of Windows 8.1 and to retain all the pre-installed drivers and software from ASUS.

Saturday, June 23, 2018

samba - Using Samba4 with OpenLDAP on the same server to authenticate Windows clients accounts



I already have OpenLDAP directory with some services doing the authentication against it (OpenVPN, Jabber, Freeradius, redmine, etc...).
And What I still need to do is to make my server a domain controller to allow Windows clients to login to Windows using the same username and password as the other services on my server.




I installed Samba4 and set it up as DC, but the problem was, that Samba4 has its built in LDAP server, and therefore I was not able to run OpenLDAP (slapd) service at the same time with Samba (because they use the same port).



Could anybody help me to get that to work? (WITHOUT changing OpenLDAP port, and with NO pGina).



So in summery, what I want to do is:
Getting Samba4 domain controller and OpenLDAP to run on the same server, and make Samba4 authenticate against that OpenLDAP to allow Windows users to login in to Windows using the username and password from my previus created OpenLDAP directory.



I really appreciate any help, I spent more than a week searching with no success).


Answer




You cannot do that. First, none of the authentication methods Windows uses – neither modern Kerberos nor older NTLM – can be used with whatever hashed passwords you have stored on OpenLDAP. Even though Samba 3 could OpenLDAP as its backend, it still required storing NTLM-compatible password hashes separately from the regular userPassword. Linux pam_ldap might be happy with just sending the raw password to the server for verification; Windows doesn't do that.



Second, Active Directory is more than just authentication – even a real Kerberos KDC doesn't duplicate all functions done by Samba4's integrated KDC (primarily, attaching PACs to the Kerberos tickets, containing the user's UID and other things taken from LDAP), but that's just the beginning. Windows also expects the AD DC to also have LDAP entries according to the Active Directory's LDAP schema, and to support various MS-RPC services – for joining the computer itself to the domain, for obtaining account information, and so on.


Friday, June 22, 2018

64 bit - Can I upgrade from Windows 7 32bit to 64bit without formatting?



My friend installed Windows 7 on his computer (upgrading from XP).


He wasn't sure if his processor supported x64 or not, so he installed the x86 version, just to be on the safe side.


After I looked it up, it turns out his processor does support x64, and now we want to upgrade.


The question is: is it possible to upgrade without completely re-installing the OS?


Can I? Or do I have to format the C: partition again?


Answer



No. x86/32-bit to x64/64 bit is not supported in any version of Windows.


See also: Upgrade from Windows 7 32 bit to 64 bit


Tip for your friend:



  1. Almost any CPU sold in the last decade is 64 bit capable.

  2. You can look it up on the web, but briefly
    If it is an AMD it will be 64bit capable (those have been that way for ages).
    If it is an Intel check on http://ark.intel.com/

  3. He could just have tried the 64 bit version of Windows 7. Worst case it would fail during the installation.


partitioning - Create a primary partition on Windows 7


I have windows 7 installed.


On the moment i have the following partitions on 1 hard disk: (300 GB)


C: (Windows) (Primary, System, Boot, Page File, Crash Dump, Active) 100 GB


D: (Data) (Logical) 100 GB


E: (System Reserved created after Boot repair) (primary, system) 100 MB


Now i want to create a new primary partition on this disk, because i have +/- 100 GB left, for a new OS.
However when trying to make a new partition, it makes it a Logical partition, not Primary.
How to make it primary...?


Answer



To create a second primary disk, you'll need to use a partitioning tool to hide the first primary disk. After the second installation, you can then unhide the first one.


Rather than play this game of hiding and unhiding partitions, it's best to use a boot manager
to take care of the whole thing. Some such products are :


BootIt NG ($34.95)
Support of over 200 primary partitions (if desired). I've used it and it's probably the best.


GAG (initials, in spanish, of Graphical Boot Manager) (open-source)
Allows boot of up to 9 different operating systems installed in primary and extended partitions. Never used it.


Partition Commander 11 ($49.95)
No info on maximum partitions number. I've used it a long time ago and it worked then pretty well.


Norton PartitionMagic 8.0 ($69.95)
Otherwise called BootMagic, no info on maximum partitions number, and seems to only support partitions up to 300GB. Never used it, and I usually stay away from Norton products.


Warning: Before playing with partitions, take great care with your backups.


Force "Details" folder view to show standard columns in folders with music file in Windows


In Windows explorer if I change the folder view to details, for a standard folder the columns shown are Name, Date modified, Type and Size. When I open a folder containing files with audio extensions (wav, mp3, etc), the columns change to something else such as artist, genre, etc. Is there a way to force the details view to always show the same standard columns, viz, Name, Date modified, Type and Size?


The view changing to thumbnails in case of image files is not a problem for me, as I can go to details rather quickly in a few clicks, and it shows the standard columns by default. My main problem is audio files which seem to change the columns that are shown. I have seen this, but preferably I would like to do this without registry hacks. I am using Windows 7 enterprise edition.


Answer



Edit: may be duplicate of Windows 7 Explorer: How to change the columns displayed for file attributes? Alternative systematic solution presented is not in other thread.


Those columns are because File Explorer sees the audio files in the folder and defaults to using its "music" template to show the folder's contents. There are 2 options depending on how systematic you want the changes you make to be.


You can force change the folder template back to "general items" for this folder so that it won't show those columns by:



  1. Go in to the folder's Properties

  2. Select the "Customize" tab

  3. Under the section "What kind of folder do you want?" change the "Optimize this folder for:" option from "Music" to "General Items".


Once it's applied, the folder's detail view should no longer have the columns specific to music files.


Keep in mind that the changes will only apply to this folder (and any contained subfolders if you selected that option when applying the new properties).


Alternatively, you can change the "music" template itself. So that any folder that windows explorer opens which it automatically applies the "music" template, will display whatever customized view you made.


In the currently open folder that is already in "Music" view mode/template (ie. with columns for artists, genre, etc.), manually change the columns to the desired fields by:



  1. Right-clicking on the title row (row containing Name, #, title, artists, album), and select More... in the pop-up menu.

  2. Change the column selection and order to your desired layout.


Save the changed layout as the default for the "Music" template by:



  1. Open up the File menu (top left)

  2. Select "Change folder and search options"

  3. Select the "View" tab

  4. Under the "Folders views" section, select "Apply to Folders"


Once that is applied, all folders that file explorer will default to "Music" view mode/template will now use this layout.


For more details and illustrations on the alternate method, please consult How-to-Geek's Guide on customizing the windows folder templates


Thursday, June 21, 2018

usb flash drive - Toshiba pendrive shows 4 MB instead of 8 GB; what could have happened to it?

I have a Toshiba 8 GB pendrive. All of a sudden, it's showing total space 4 MB. I have tried diskpart and various other software, but no gain.
The disk management is also not showing unallocated space. Can someone suggest what happened to the pendrive?

system recovery - Restoring Ghost backup to different hardware


I lost my desktop Win7 development machine, including the disk drive (apparently) to a power surge a few months ago.


I have a Norton Ghost full drive backup from a couple months before the crash. I have built a new machine, but it has a different motherboard than the old one. (New machine is an ASUS P8-Z77 MB with a Core i5/socket 1155 processor. The old one was a GigaBYTE motherboard from about 4 years ago, with a Core i7/socket 1366 processor.)


I would like to be able to use the Ghost backup as a starting point for this machine so that I don't have to re-install/re-configure all my apps. However, it's seeming to be a case of you can't get there from here.


When I restore the drive, and do the startup repair from Windows install disk to regenerate the boottrack and Boot Manager, the machine will begin to start up, and gets about 2 seconds into the splash screen (where the colored dots are beginning to come together into the logo), then reboots. I've tried it in safe mode, and it goes through about a screen full of DLL's that it's loading, then just stops and reboots. I've got the driver installation disk that came with the new motherboard, but I can't figure out a way to use it to install the drivers on the system disk if I can't at least get safe mode up.


Any suggestions, or am I just going to have to start from a clean install and re-pave the whole machine. (I know that since everything is backed up on the Norton image, I'll be able to recover all my data, it's just a matter of convenience.)


Answer



Personally, I would not try to restore using the Ghost image. You'll be introducing foreign drivers and device settings which will probably make your task much more difficult. Instead, I would do a clean install of the OS, install Ghost, and then MOUNT the previous Ghost image to extract anything useful or to jog your memory of what you had installed.


On a side note, you may want to look at using WinInstall (free) and package your installs while you are going through this process. WinInstall lets you take a "snapshot" of the machine before you install an app and then, again, after you install / register / tweak each application. It then creates an MSI package with all of the app's install files, any tweaks you may have made to the app, and any registration information. If you ever run into this scenario again, or even need to MOVE your app to another machine, you can just execute the MSI file to get the app onto the machine with almost no effort. If you do this for each of the apps during your upcoming process you will never have to worry whether or not your have the exact hardware during a recovery... just install the OS, execute a series of quiet MSIs, and then bring in your data.


I hope this helps.


windows 7 - How do you restore a crashed computer without removable media?

I have a notebook (the free Steve Sinofsky PDC09 Acer) with Win7 and no removable media slots and no external CD or DVD drive. The hard drive crashed and is now in an unbootable state. It didn't come with an install or recovery disk (not that there would be any place to insert it) but I can download Win7 ISO images from MSDN. I do have USB drives of various types and sizes. How can I recover this notebook?

Wednesday, June 20, 2018

How to boot a Linux live USB on a Mac?


I have a USB stick with a Fedora 11 live environment on it.
It's booting fine on 3 PCs where I've tried it.


But I can't get it to boot on a Mac (Intel). When pressing the alt key (or command key, I don't remember which one) during startup I can only choose the "Macintosh HD" and the USB stick doesn't appear.


Answer



In order to create an Intel Mac bootable USB stick, it needs to be setup for EFI/GPT. This should work as of Fedora 10, but it's not automatic; you need to create a USB stick specifically configured for this purpose.


According to the Fedora 10 release notes, you can do this using the livecd-iso-to-disk tool like so:


livecd-iso-to-disk --mactel /path/to/live.iso /my/partition

replacing the path and partition as appropriate. However, this post suggests that the MBR may also need to be cleared (destroying all existing data on the USB disk):


livecd-iso-to-disk --mactel --reset-mbr /path/to/live.iso /my/partition

Other details on creating a USB stick are in the Fedora wiki, though curiously nothing about support for Intel Macs. I've had success with this method in the past, though it seems somewhat hit and miss. As far as I know, it's not possible to create a USB stick that will boot on both Intel Macs and non-EFI machines.


windows 10 - Secondary hard drive 100% usage

I recently installed SSD into my laptop and moved the old HDD to DVD drive. I did a clean install of windows 10 onto SSD. Now my HDD in unusable: the system can see it, but I can't do more than view a few folders and then it stalls: it doesn't calculate space, Disk Management freezes upon start, I cannot even disable that drive via Device Manager (although I can do it if I do not try to touch that drive after boot). Of course, chkdsk doesn't do anything.



This is how Task Manager looks currently: constant 50% disk usage.
Task manager 1



Another view of Task Manager:
enter image description here




Why does Windows 10 behave that way? Can I do anything about it?

windows 7 - Why is my computing shutting down or bluescreening?

This is a common question, but after searching around for a long time and trying a lot of different diagnostic methods, I haven't found a solution.


Crashes


Note: while writing this post, my computer randomly shut down, with none of the descriptions below - just working normally then a sudden shut down. It then refused to boot up, and instead just the fans turned on with some whirring sound. I wiped some dust off the back of the PSU and it booted up fine without the whirring sound (thankfully Chrome saved this post). I assume that overheating problem was unrelated to what I de, but it might not be. Now this room smells of fish.


I get two types of crashes. One of the crashes occurs when I'm just using the desktop, not doing anything unusual or strenuous, and it has signs as to when it is about to occur. Most of my programs continue to work (IRC, mumble, etc), and Skype (specifically) will stop responding. Once that's happened, I won't be able to close any program, open any tabs on my browser, and after any time between 5 seconds and 5 minutes, the computer will shut down. This happens at least once a week.


The second type may or may not be unrelated to the first. This crash happens when I'm compiling something in Visual Studio. It happens extremely frequently sometimes, but other times not at all. For example, in the course of one weekend I was programming and my computer crashed about 10 times over that day. The weekend after, there were no crashes, and the day after that, there was about 2 in the whole day.


Some of these crashes produce BSODs, some don't - it may be that one type produces BSODs and the other doesn't, but I can't check. Both crashes have been occurring for over a year, and I think the frequency of the crashes is getting gradually higher, but I can't be sure. Over the past few weeks my computer has been notably slower after immediately starting it up.


What I've tried



  • Memtest overnight. Can't remember how many passes, but 0 errors.

  • Monitoring temperatures of CPU and GPU. I don't see any problems, but I haven't been able to get a temperature reading directly before the crash very often, as they happen unpredictably.

  • Checked SMART info for both HDD and SDD. No problems.

  • Set up windows device verifier for the two unsigned drivers on my system about 2 weeks ago. Nothing as a result.

  • Updated all various drivers.


The crashes do not produce anything in the minidump. Oddly, there is one .dmp file in Windows/Minidump, which wasn't there before the crashes started happening, but I'm unable to open it in any tool I can find because I don't have permission, despite running all the various tools as administrator.


Computer specifications


Speccy: http://speccy.piriform.com/results/aycRNrdN6GGnrGETSxV8qo8



  • OS: Windows 7 64 bit Professional

  • CPU: Intel Core i7 Extreme 990x @ 3.47GHz

  • RAM: 12 GB DDR3

  • Graphics: NVIDIA GeForce GTX 580

  • 120gb SSD

  • 1TB HDD


What steps should I take to fixing this problem? What damage are the constant shutdowns causing to my computer?

linux - How to boot Windows ISO installation using PXE (without Windows AIK or whatever)

I have a Linux PXE server.
Can boot into Linux ISO installers using PXE with no problems.
But how can I do it with Windows ISO? Just start the installation. Without creating some stuff (winpe) under Windows.


I've extracted some files from image.iso/sources/boot.wim /2/Windows/Boot/PXE/ to tftp root


pxeboot.com
wdsnbp.com (-> wdsnbp.0)
bootmgr.exe

Pointed kernel to (in pxelinux.cfg/default):


KERNEL wdsnbp.0

That's at least something that boots and gives:


Downloaded WDSNBP...
Architecture: x64
WDSNBP started using DHCP Referral.
Contacting Server: 10.0.0.1 (Gateway: 0.0.0.0)..
No response from Windows Deployment Services server.
Launching pxeboot.com...
TFTP download failed
Could not boot image: Error 0x00000001 (http://ipxe.org/00000001)
No more network devices
FATAL: Could not read from the boot medium! System halted.

What should I do to continue booting process?
I also created a Samba share with ISO contents, but how to connect all this?
All the tutorials I've found are either outdated or (most) require to create an additional boot image under Windows using its tools. Is it really so sad sad situation?


Update


For Linux ISO I have something like this:


KERNEL u1404/casper/vmlinuz.efi
APPEND boot=casper netboot=nfs nfsroot=10.0.0.1:/var/lib/tftpboot/u1404 initrd=u1404/casper/initrd.lz ip=dhcp --

/var/lib/tftpboot/u1404 is a mount point for Ubuntu 14.04 ISO


For Windows I stopped at this (and the error above) and don't know what exactly to do next:


KERNEL wdsnbp.0

And to clarify: the question is how to do it (configure PXE for Windows ISO) in Linux environment. If I was in a hurry I'd use WDS or some other Windows tools without a question.

windows 7 - Specify next boot to be into Safe Mode/WinRE via command line?

As the title says I would like a script that tells Windows that the next boot should be into Safe Mode or at least that the F8 menu should be presented on next boot.


Booting into WinRE (Launch startup repair...) is probably even more un-doable.


I looked over bcdedit options but didn't see anything like this. I know msconfig has an option for Safe Boot but it's GUI only.


Currently if I want to boot into Safe Mode or launch WinRE then I have to forcefully restart my PC first for those options to be presented during boot (F8 does not bring up the Safe Mode option under normal conditions).


I'm using Windows 7 x64.

Windows updates failure configuring updates


I recently got a new computer and when I try to install the updates I get the following error Failure configuring windows updates, reverting changes


This issue is really annoying because I can install all of the other updates fine, but it's just 2 that wont budge, the updates that wont work are internet explorer 11 and a security update that I will comment the code later.


OS is a windows 7 ultimate 64bit. Thank you in advance


Answer



You have several issues.


some metadata are missing/corrupted:


2014-07-29 15:49:15, Info                  CSI    00000229 Couldn't find the hash of component: Microsoft-Windows-ieframe, Version = 11.2.9600.17207, pA = PROCESSOR_ARCHITECTURE_IA32_ON_WIN64 (10), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the catalog [l:192{96}]"\SystemRoot\WinSxS\Catalogs\f967e3adade5a1edc1e6d622347f3de0c670e610d5a708a65aa0059ef98a0455.cat".
2014-07-29 15:49:15, Error CSI 0000022a@2014/7/29:05:49:15.671 (F) d:\win7sp1_gdr\base\wcp\componentstore\csd_winners.cpp(1302): Error 80092004 [Warning,Facility=FACILITY_NTSSPI,Code=8196 (0x2004)] originated in function CCSDirectTransaction::AddImplicationsToCatalogsAndVerifyComponentHashes expression: (null)
[gle=0x80004005]
2014-07-29 15:49:19, Error CSI 0000022b (F) 80092004 [Warning,Facility=FACILITY_NTSSPI,Code=8196 (0x2004)] #1820275# from CCSDirectTransaction::PrepareForCommit(...)[gle=0x90092004]
2014-07-29 15:49:19, Error CSI 0000022c (F) 80092004 [Warning,Facility=FACILITY_NTSSPI,Code=8196 (0x2004)] #1820274# from CCSDirectTransaction::ExamineTransaction(...)[gle=0x90092004]
2014-07-29 15:49:19, Error CSI 0000022d (F) 80092004 [Warning,Facility=FACILITY_NTSSPI,Code=8196 (0x2004)] #1820273# from CCSDirectTransaction_IRtlTransaction::ExamineTransaction(...)[gle=0x90092004]
2014-07-29 15:49:19, Error CSI 0000022e (F) CRYPT_E_NOT_FOUND #1820023# from Windows::COM::CPendingTransaction::IStorePendingTransaction_Analyze(...)[gle=0x80092004]
2014-07-29 15:49:20, Error CSI 0000022f (F) CRYPT_E_NOT_FOUND #1816617# from Windows::ServicingAPI::CCSITransaction::ICSITransaction_Commit(Flags = 47 (0x0000002f), pSink = NULL, disp = 0, coldpatching = FALSE)[gle=0x80092004]
2014-07-29 15:49:20, Error CSI 00000230 (F) CRYPT_E_NOT_FOUND #1816616# 5501824 us from Windows::ServicingAPI::CCSITransaction_ICSITransaction::Commit(flags = 0x0000002f, pSink = NULL, disp = 0)
[gle=0x80092004]
2014-07-29 15:49:20, Error CBS Exec: Failed to commit CSI transaction to resolve execution chain. [HRESULT = 0x80092004 - CRYPT_E_NOT_FOUND]

an STATUS_TRANSACTION_NOT_ACTIVE error:


2014-07-29 16:51:44, Error                 CSI    00000006 (F) Error: ResolvePendingTransactions called after poqexec failure (call 1)
Status = STATUS_TRANSACTION_NOT_ACTIVE, Operation = HardLinkFile, DiagString = [l:432{216}]"\SystemRoot\WinSxS\amd64_microsoft-windows-network-security_31bf3856ad364e35_6.1.7601.18283_none_2afda92041642eb6\NetworkSecurity-ppdlic.xrm-ms, \??\C:\Windows\System32\spp\tokens\ppdlic\NetworkSecurity-ppdlic.xrm-ms"
[gle=0x80004005]

You should run the checksur tool to try to fix those issues. After you did this try again to install the updates.


If nothing helps, repair your Windows with an Inplace upgrade.


Tuesday, June 19, 2018

When and why would Windows Explorer lock an external hard disk?

I am quite surprised to see that Windows Explorer is locking my external hard disk. Is there any reason why explorer.exe is holding on to my external hard disk?


Before I was trying to detach the external hard disk, I was opening a csproj file using Visual Studio 2008. I made sure that I closed down Visual Studio before trying to detach the external hard disk. There was no other active program except Google Chrome, from what I could see, that was running.

hard drive - Why is "size on disk" much bigger than "size" when I copy data from NTFS to exFAT?


I tried to backup from my NTFS external hard drive to a new exFAT external hard drive. When the copy finished I saw that I have very little free space remained. I checked my file size and I saw that the real size of my file is "30.4GB" but the size on disk is "396 GB".


I must mention that number of file is so high (about 96110 Files, 10807 Folders).


Why has this happened? How should I fix this? I formatted my new hard drive with exFAT filesystem with Allocation unit size of 4096 kilobytes.


Answer



If my calculations are right than average file size on your exFAT is 331,7KB, but you've set minimal unit size to 4096 KB, which means that there is 92% unused space in every unit, so 96110 (files) x 3768,32 (freespace) = 362173235,2 KB = 345,40 GB (free) + 30,4 (real) = 375,8 GB, still missing few gigs somewhere, maybe because of that average size.


In other words, set unit size as small as possible or use ".tar" or something like that.


sleep - How to remap HID keyboard keys?



I got some "close to useless" USB sleep buttons for computers from a marketing campaign and was wondering how to use it to something cooler. Like.. Playing sad trombone when pressed.



So I went around looking how does it installs, and finally seems to be simply a HID keyboard key. Googlin' a bit more, I've found Patriot's question which seemed quite the answer - but no. The programs they describe there do not trap the commands from the USB dongle even in "teach mode" if I press it my computer goes to sleep -_-




What would be the correct way to find and remap that key to something specific?



Edit Forgot to mention the operation system. it is Windows 7


Answer



It looks like this Keyboard Layout tool by Microsoft lets you remap a key on an existing layout.
Apparently it is a GUI that lets you edit the registry settings for your keyboard mapping.
You can also trying hacking the registry keys under:




HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layout





Good luck. (fade out: whaaa-whaaaarmmm)


Monday, June 18, 2018

How to remove Media Center from Windows 8


I bought 2 Windows 8 upgrades, 1 for my PC and 1 for my notebook. I added Windows Media Center to my notebook using the free offer in November (side note: the key was emailed to me within 5 minutes, I see many people have been complaining that it takes a few days).


Today I decided to add WMC to my PC as well, so I went onto the Microsoft website, same like last time, and I received the email within a few minutes. Once I added WMC, entered the key and the computer rebooted, my activation is now broken:



This product key is already being used on another PC. Try a different key or buy a new one.



After rereading the product key email, I realised that the WMC key was exactly the same as the one I had received in November for my notebook (I used the same email, i.e. my Microsoft account Outlook email, for both). I didn't think this would be a problem, as on Microsoft's feature pack page it states:



...is limited to five licenses per customer per promotion.



So then I decided, I'll just remove WMC from my PC and go back to Windows 8 Pro. So I turned off the WMC feature, PC restarted, activation still broken because my key has been replaced. I then tried to activate it with my original Pro key. The error it gave was that this key cannot be used with this version of Windows, as it is now Windows 8 Pro with Media Center and not Windows 8 Pro anymore.


I've searched a bit and it seems the only way to remove it is do a clean install. I tried the Windows 8 Downgrade Helper, which told me I was already running Win 8 Pro when I tried to downgrade, and that I was running Win 8 Pro with Media center when I tried the other option.


To sum up: How do I remove Windows Media Center from Windows 8 Pro without having to do a clean install?


Answer



Set-Edition is not supported with /online - only usable on offline images


On my system, there is no sign of a restore point (surprising) but it is only a short while since I did the addition (earlier today) and I certainly haven't removed any restore points/cleaned up.


So I don't think the above answer works.


how to rename the old files or backup them into a folder when there are file names collision?


As you know, the default windows copy handler renames the new files if you choose "keeps both files" . What program can i use to rename the old files instead? or better, put all the old files into a backup folder at the same location, each with its own path structure?


Answer



rsync --backup would do what you want. You can specify a suffix for old files using --suffix, or move old files to a different folder using --backup-dir.


Sunday, June 17, 2018

memory - PC can't detect second RAM installed

I have PC with 512 MB RAM installed (motherboard manufacture MICRO STAR, chipset P4M800), pc was running very slow so I decided to upgrade the ram. I installed CPU-Z and check the ram installed on the machine, also had a look at the stick installed. 512 MB PC 3200 400 MHz DDR but my mother supports 200 MHz and it was working ok.



So I bought 2GB which I checked on manual that it support upto 2 GB Ram.
So I installed 2GB PC 3200 400 MHz same as the old one, I plugged in both eventhough motherboard only support upto 2 GB but system spec only shows 512 (deducts 64 MB shared vga memory) I checked on CPU-Z, it detects both, slot 1 512 MB, slot 2 2048 MB, comparing screen for both slots, both the same, volt 2.5, frequency 166 MHz and 200MHz, only difference on those is 2gb ram shows under timings table 133MHz 166 MHz and 200MHz but 512 MB shows only 166MHz and 200MHz.



I checked on Google and can't seems to figure out whats wrong with it. If I only plug in 2GB. Pc doesn't boot up like ram not working.With only 512 MB plugged in seems ok.
Please help.

windows 7 - Copying from External Hard Drive problems

I am trying to copy some files from my External Hard Drive back onto my PC using Windows 7.


Some files copy with no error or issue, but there are a few files that refuse to copy and I get a cannot read from source file or disk error.


The files are important and unique so it is really important that I retrieve them from the External Hard Drive.


What can you advise to help me copy these files onto my Internal Hard Drive?


PS, I tried a program called "Unstoppable File Copier" which didnt work.


Thanks.

Saturday, June 16, 2018

Using a 19V (3.42A) power adapter instead of a 20V (2.0A) for my Lenovo laptop. Is this safe?? (Laptop battery is non functional)

Im ready to accept "long term" degradation to my laptop if i can remain lazy and not go having to find a perfect replacement adapter. Third world electronics scares me (Im in the third).
As long as i can run my laptop without my files being wiped out.


Thanks

Move Windows 8.1 installation to another PC - is it possible to avoid a re-install & just move the hard drive?

Last year I've installed a clean copy of Windows 8 (later upgraded to 8.1) on a new laptop. This process was challenging because the laptop included Windows 8 pre-installed (plus bloatware), and my Windows 8 ISO (which I bought before from a Windows 7 upgrade) rejected the serial key that came with the laptop. I had to find the official ISO compatible with my keys and OEM installation.


Now I need to migrate this Windows installation to another laptop. Basically moving the hard disk. Long time ago, I recall that there was a command I could run on Windows to set in a special way such that—upon the next boot—it will scan the hardware and re-configure drivers as needed.


Can I do the same with Windows 8.1? I can imagine that today it's a little more complicated (UEFI, signed Bios, etc). I'd like to avoid re-installing everything one more time.

power supply - UPS suddenly restarting, what might be the cause?

Background


My UPS has a backup of about 10 mins, thus, it's battery life is good. No problems detectable.


My CPU, on the other hand, is also fine with no major hardware problems (as it looks so) except that I suspect that it's CMOS battery is weak. I can say so because once in every 4-5 days or so, my computer time resets.


I run windows 7 (I don't think computer specs matter as it's a hardware, more specifically, UPS problem)


Problem


Now on to the problem, from a few days I've been experiencing weird issues. Once in every few days (a week usually) the UPS suddenly restarts (I can confirm it restarts because it gives that long distinctive beep, which it gives when I start it), thus, computer experiences an unexpected shutdown. The issue looks very new to me, Googling hasn't helped. As far as the cause is concerned, I am completely blank. As I said, my UPS' battery life is good and as far as I can tell, there are no power fluctuations at the time this happens.


Secondary Problem


This is yet another problem, which I think is related. I've noticed that whenever I leave my UPS open after shutting down the computer, the next time I open computer, it doesn't. I mean CPU throws green light, fan runs, but the computer doesn't boot. To fix it, I usually reset the motherboard by long pressing the power button and the computer boots as normal.
Any ideas why it's happening?

How to avoid terminal to scroll down to last message in bash?


I write a bash script that run some other commands in new terminal:


#!/bin/bash
# Sample script
gnome-terminal --title="blah blah" -x bash -c ffmpeg -i udp://239.1.2.1:60001?fifo_size=50000000 -acodec copy -vcodec copy -preset ultrafast \
-flags -global_header -f hls -hls_time 20 -hls_wrap 5 /var/www/html/ts/1.m3u8 &
sleep 1
gnome-terminal --title="blah blah" -x bash -c ffmpeg -i udp://239.1.2.2:60002?fifo_size=50000000 -acodec copy -vcodec copy -preset ultrafast \
-flags -global_header -f hls -hls_time 20 -hls_wrap 5 /var/www/html/ts/2.m3u8

The output of each ffmpeg line is more than one page and it is similar to:


libavutil      54.  7.100 / 54.  7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
... many pages after ....
[h264 @ 0xc04c60] decode_slice_header error
[h264 @ 0xc04c60] no frame!
[h264 @ 0xc04c60] non-existing PPS 0 referenced
.... many pages after ....
Program 105
Metadata:
service_name : IRIB-TV5
service_provider: IRIB
[adts @ 0xf943e0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
Output #0, hls, to '/home/stream/Desktop/tst/1.m3u8':
Metadata:
encoder : Lavf56.4.101
Stream #0:0: Video: h264 (libx264), yuv420p, 720x576 [SAR 12:11 DAR 15:11], q=-1--1, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc56.1.100 libx264
Stream #0:1(per): Audio: aac, 48000 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc56.1.100 aac
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac_latm (native) -> aac (native))
Press [q] to stop, [?] for help
[h264 @ 0xf42120] reference picture missing during reorder
[h264 @ 0xf42120] Missing reference picture, default is 65716
[h264 @ 0xf42120] reference picture missing during reorder
[h264 @ 0xf42120] Missing reference picture, default is 65717

When I run this script in a new terminal and I launch the command (in this case ffmpeg), it immediately shows many output lines, many pages sometimes, and goes to last message automatically...


How can I scroll up and down to first message in the terminal, or stop it at the first page?


Answer



Update after that the question was completely reformulated:


You can use | more or | less to stop the output after the first page.


 gnome-terminal --title="blah blah" -x bash -c  ' find  ~  | less'

Note: you need to use '' to say where it finishes the bash commands.
Within less you can move:



  • Home and End To the beginning and the end of the page.

  • PgUp and PgUp One page down or up.

  • Up and Dn One line up or down.




One of the line of your script can be similar to


gnome-terminal --title="blah blah" -x bash -c                                 \
'ffmpeg -i udp://239.1.2.1:60001?fifo_size=50000000 -acodec copy -vcodec copy \
-preset ultrafast -flags -global_header -f hls -hls_time 20 -hls_wrap 5 \
/var/www/html/ts/1.m3u8 | less ' &



There are some shortcuts:



  • Ctrl+ Shift+Up or Dn To scroll up or down of a line

  • Shift+PgUpor PgDn To scroll up or down of a page

  • Shift+Home or End To scroll up to the beginning or down to the end


You can read about other shortcuts directly on the gnome help page.


Friday, June 15, 2018

security - Is an antispyware really necessary?


I've been always running frequent antivirus scans on my computers, more because I am a security freak than because I really need them (I'm not one of those users that, after a browsing session, manage to fill their PCs with unknown stuff from unknown websites).


However, I almost never run antispyware scans, especially because they tend to consider too many things as malicious even if they are not. Is it really necessary to have an antispyware program beside an antivirus program, or is an antivirus enough?


Answer



Well, your question isn't very objective, but I'll answer it anyway.


It really depends. If you are a person that downloads things quite frequently, even from a secure source, then you might still want anti-spyware. Anti-Spyware has different uses than Anti-Virus. Spyware is much harder to detect, as it doesn't really behave like a normal virus. Spyware is meant to hide behind an actual application usually, that is why programs tend to detect it even if it is legitimate.


Also, if you use your computer for storing important documents, then it might be worth the hassle.


However, I would say for average use, it is quite unnecessary. Most anti-virus has some anti-spyware anyway. I will recommend AVG Free, probably the best Security program I have found for that price.


Iptables, allow common ports, block the rest


I want to allow people to connect to ports 22, 80, and 443. Also I want to be able to do DNS lookups from my server.


Here's what I'm trying:


iptables -A INPUT -m tcp -p tcp --dport 1 -j ACCEPT
iptables -A INPUT -m udp -p udp --dport 1 -j ACCEPT
iptables -A INPUT -m tcp -p tcp --dport 53 -j ACCEPT
iptables -A INPUT -m udp -p udp --dport 53 -j ACCEPT
iptables -A INPUT -m tcp -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -m udp -p udp --dport 80 -j ACCEPT
iptables -A INPUT -m tcp -p tcp --dport 443 -j ACCEPT
iptables -A INPUT -m udp -p udp --dport 443 -j ACCEPT
iptables -A INPUT -m tcp -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -m udp -p udp --dport 22 -j ACCEPT
iptables -A INPUT -m tcp -p tcp -j REJECT
iptables -A INPUT -m udp -p udp -j REJECT
iptables -A OUTPUT -m tcp -p tcp -j ACCEPT
iptables -A OUTPUT -m udp -p udp -j ACCEPT

iptables -L


Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:tcpmux
ACCEPT udp -- anywhere anywhere udp dpt:1
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT udp -- anywhere anywhere udp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT udp -- anywhere anywhere udp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT udp -- anywhere anywhere udp dpt:ssh
REJECT tcp -- anywhere anywhere tcp reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp reject-with icmp-port-unreachable
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp
ACCEPT udp -- anywhere anywhere udp

If I omit these lines:


iptables -A INPUT -m tcp -p tcp -j REJECT
iptables -A INPUT -m udp -p udp -j REJECT

I can ping out, but then I'm not closing all ports by default, which is the goal. Why is an INPUT rule affecting my ability to do hostname lookups (ex "ping google.com" from my server?)


Answer



You need to allow related traffic back in again (i.e: the replies to your outgoing DNS traffic). Also, you may want to use a default drop rather than a specific deny-all rule to save some space.


iptables -A INPUT -p tcp -m multiport --dports 22,80,443 -j ACCEPT


iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT


iptables -P INPUT DROP


Your OUTPUT chain rules aren't needed as the chain has a default ACCEPT on it currently, and the port 53 rules aren't needed because you aren't hosting a DNS server, merely using one, so the traffic leaves via the OUTPUT chain, not the INPUT one.


windows 7 - Remote Desktop not loading Video Card Driver



I sometimes use my Windows 7 server box (running Windows 7 Enterprise, 64-bit) for development. Space on my desk is limited however so I like to use Remote Desktop to remote into it from my main machine (Windows XP 32-bit).




I have an ATI Radeon HD 5450 video card with drivers correctly installed. When doing anything that requires proper video card drivers (such as initializing OpenGL or DirectX) it all works fine when logged in directly on the Windows 7 machine.



When I remote into the Windows 7 machine from my XP machine however, Windows 7 uses "RDPDD Chained DD" as its video card display driver and the ATI Drivers fail to load (or if they were loaded, crash). This means all applications that need to initialize OpenGL or DirectX fail to do so.



Is there a way around this?



Note: My XP machine has an ATI Radeon HD 4800 video card, if that makes a difference.


Answer



Remote Desktop will not allow this. In Server 2008 R2 SP1, there is a new feature called RemoteFX which can allow some rendering through a remote desktop connection, but the server is required for this feature to work.
I would recommend that you keep the server's monitor where you can see it well and use 'Mouse without Borders' to access the server machine from the same keyboard and mouse that you use on your main workstation. You can even drag and drop files between computers. Best of all, it's free!



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