Saturday, July 27, 2019

hard drive - Windows 10 upgraded from Seven, can't change install location


I would like to transfer/ or reinstall my Windows 10 (upgraded from a Windows 7) on another drive. Currently it's installed on a 500 GB hard-drive, but I bought a 500 GB SSD and I connected it to my computer.


I downloaded the Windows 10 ISO setup file from Microsoft site, tried to launch it but it will not ask me a drive or partition on which I would like to install it.


How can I put or reinstall it on my SSD, while keeping my official version registered ?


Thanks a lot for hints or solution !


Answer



Simply perform a regular clean installation. That means you’ll have to boot using your installation medium. Launching Setup in Windows is not enough.


During Setup, skip entering the Product Key. The existing activation will be restored automatically on the same PC.


It might be desirable to disconnect other drives when installing so the Windows Boot Manager ends up on the SSD.


Windows 7 System File Checker details output



See this MS article



After I run SFC /scannow



When I run the "edit sfcdetails.txt" command, it says it is an invalid command, tried on 2 Windows 7 PC's, anyone know what the solution is?




I can find the txt file and know how to read it but why does the command not work?



Also when reading the sfcdetails.txt, what does it mean when a file cannot be repaired due to a hash mismatch?



Sample (from a Vista box)




2011-06-30 09:32:05, Info CSI 0000002f [SR] Cannot repair member file [l:24{12}]"catsrvps.dll" of Microsoft-Windows-COM-ComPlus-Runtime, Version = 6.0.6000.16386, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch




Answer



The edit.com command is a 16-bit MS-DOS program, and is not included with 64-bit versions of Windows since you cannot run 16-bit software in 64-bit mode.



You can usually use notepad or more to view text files.


Friday, July 26, 2019

battery - Can i use a universal laptop charger for +10.8v 4400mah, 47wh

I have a universal laptop adapter with listed voltage that i can set 12v/15v/16/18/19/20/24v.. i want to try it on my asus laptop with battery rating of +10.8v 4400mah, 27wh.. it's an li-ion battery. But i'm not sure if it's safe or not..


This is the universal adapter i have


Input: 110v-240v - 50/60hz 1.5A Max
Output: 12/15/16/18/19V 4.5A Max
20/24V 4A Max
https://www.lazada.com.ph/products/universal-laptop-charger-adapter-black-i1264107-s1509989.html

Customize Google Chrome keyboard shortcuts?

I would like to customize keyboard shortcuts in Google Chrome.


For example, I would like to map the key combination Ctrl+Shift+W to the command "Close Other Tabs" instead of right-clicking on a tab (default command).


Is there any setting in Chrome to set this combination to that command?

linux - How do I reactivate my MDADM RAID5 array?


I've just moved house which involved dismantling my server and re-connecting it. Since doing so, one of my MDADM RAID5 arrays is appearing as inactive:


root@mserver:/tmp# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]
md1 : active raid5 sdc1[1] sdh1[2] sdg1[0]
3907023872 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
md0 : inactive sdd1[0](S) sdf1[3](S) sde1[2](S) sdb1[1](S)
3907039744 blocks
unused devices:

It looks to me as though it's found all of the disks but for some reason doesn't want to use them.


So what do the (S) labels mean and how can I tell MDADM to start using the array again?


[Edit] I just tried stopping and assembling the array with -v:


root@mserver:~# mdadm --stop /dev/md0
mdadm: stopped /dev/md0
root@mserver:~# mdadm --assemble --scan -v
mdadm: /dev/sde1 is identified as a member of /dev/md0, slot 2.
mdadm: /dev/sdf1 is identified as a member of /dev/md0, slot 3.
mdadm: /dev/sdd1 is identified as a member of /dev/md0, slot 0.
mdadm: /dev/sdb1 is identified as a member of /dev/md0, slot 1.
mdadm: added /dev/sdd1 to /dev/md0 as 0 (possibly out of date)
mdadm: added /dev/sdb1 to /dev/md0 as 1 (possibly out of date)
mdadm: added /dev/sdf1 to /dev/md0 as 3 (possibly out of date)
mdadm: added /dev/sde1 to /dev/md0 as 2
mdadm: /dev/md0 assembled from 1 drive - not enough to start the array.

..and entering cat /proc/mdstat looks no different.


[Edit2] Not sure if it helps but this is the result of examining each disk:


root@mserver:~# mdadm --examine /dev/sdb1


/dev/sdb1:
Magic : a92b4efc
Version : 0.90.00
UUID : 2f331560:fc85feff:5457a8c1:6e047c67 (local to host mserver)
Creation Time : Sun Feb 1 20:53:39 2009
Raid Level : raid5
Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
Array Size : 2930279808 (2794.53 GiB 3000.61 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Update Time : Sat Apr 20 13:22:27 2013
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Checksum : 6c8f71a3 - correct
Events : 955190
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 1 8 17 1 active sync /dev/sdb1
0 0 8 113 0 active sync /dev/sdh1
1 1 8 17 1 active sync /dev/sdb1
2 2 8 97 2 active sync /dev/sdg1
3 3 8 33 3 active sync /dev/sdc1

root@mserver:~# mdadm --examine /dev/sdd1


/dev/sdd1:
Magic : a92b4efc
Version : 0.90.00
UUID : 2f331560:fc85feff:5457a8c1:6e047c67 (local to host mserver)
Creation Time : Sun Feb 1 20:53:39 2009
Raid Level : raid5
Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
Array Size : 2930279808 (2794.53 GiB 3000.61 GB)
Raid Devices : 4
Total Devices : 2
Preferred Minor : 0
Update Time : Sat Apr 20 18:37:23 2013
State : active
Active Devices : 2
Working Devices : 2
Failed Devices : 2
Spare Devices : 0
Checksum : 6c812869 - correct
Events : 955205
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 0 8 113 0 active sync /dev/sdh1
0 0 8 113 0 active sync /dev/sdh1
1 1 0 0 1 faulty removed
2 2 8 97 2 active sync /dev/sdg1
3 3 0 0 3 faulty removed

root@mserver:~# mdadm --examine /dev/sde1


/dev/sde1:
Magic : a92b4efc
Version : 0.90.00
UUID : 2f331560:fc85feff:5457a8c1:6e047c67 (local to host mserver)
Creation Time : Sun Feb 1 20:53:39 2009
Raid Level : raid5
Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
Array Size : 2930279808 (2794.53 GiB 3000.61 GB)
Raid Devices : 4
Total Devices : 2
Preferred Minor : 0
Update Time : Sun Apr 21 14:00:43 2013
State : clean
Active Devices : 1
Working Devices : 1
Failed Devices : 2
Spare Devices : 0
Checksum : 6c90cc70 - correct
Events : 955219
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 2 8 97 2 active sync /dev/sdg1
0 0 0 0 0 removed
1 1 0 0 1 faulty removed
2 2 8 97 2 active sync /dev/sdg1
3 3 0 0 3 faulty removed

root@mserver:~# mdadm --examine /dev/sdf1


/dev/sdf1:
Magic : a92b4efc
Version : 0.90.00
UUID : 2f331560:fc85feff:5457a8c1:6e047c67 (local to host mserver)
Creation Time : Sun Feb 1 20:53:39 2009
Raid Level : raid5
Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
Array Size : 2930279808 (2794.53 GiB 3000.61 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Update Time : Sat Apr 20 13:22:27 2013
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Checksum : 6c8f71b7 - correct
Events : 955190
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 3 8 33 3 active sync /dev/sdc1
0 0 8 113 0 active sync /dev/sdh1
1 1 8 17 1 active sync /dev/sdb1
2 2 8 97 2 active sync /dev/sdg1
3 3 8 33 3 active sync /dev/sdc1

I have some notes which suggest the drives were originally assembled as follows:


md0 : active raid5 sdb1[1] sdc1[3] sdh1[0] sdg1[2]
2930279808 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]

[Edit3]


Looking through the log it looks like the following happened (based on the Update Time in the --examine results):



  1. sdb and sdf were knocked out some time after 13:22 on the 20th

  2. sdd was knocked out some time after 18:37 on the 20th

  3. the server was shut down some time after 14:00 on the 1st


Given that two disks went down (apparently) simultaneously I think it should be reasonably safe to assume the array wouldn't have been written to after that point(?) and so it should be relatively safe to force it to re-instate in the correct order? What's the safest command to do that with and is there a way to do it without writing any changes?


Answer



The S labels means the disk is regarded as "spare". You should try stopping and re-starting the array:


  mdadm --stop /dev/md0
mdadm --assemble --scan

to re-assemble the array and if that doesn't work, you may need to update your mdadm.conf, see for example this question for details on how to do that.


Thursday, July 25, 2019

Any performance issues when removing Macbook battery?

Does anyone know if removing the battery will have a major effect on the performance of the processor for the Macbook Pro 15" (Early 2011)? I ask because my laptop gets really hot - the heat in Australia doesn't seem to help, and I barely move my laptop around. Just wondering if this would reduce the heat produced.


Thanks :-)

macos - Adding NTFS partition to disk in Windows makes HFS+ partition on same disk invisible in Mac OS X



I've got a USB hard drive that I've been using with my Mac for backups, formatted as one large HFS+ partition. I added a second NTFS partition for similar use with Windows, as follows:




  1. Resize HFS+ partition using Mac OS X Disk Utility


  2. Reboot into Windows 7 using Bootcamp


  3. Add NTFS volume in the free space using Windows 7 Disk Manager





Now that I've done this, I can see both volumes in Bootcamp Windows, and they seem to be fine.



When I boot into Mac OS X, though, only the NTFS volume appears.



Looking at the disk in Disk Utility, the reason is clear: Mac OS X can't actually see any HFS+ partition there. Its space is shown as "disk4s2", and when I click on it in Disk Utility it's supposedly in "MS-DOS (FAT)" format. diskutil on the command line has this to say:



~% diskutil list /dev/disk4
/dev/disk4

#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk4
1: EFI 209.7 MB disk4s1
2: Microsoft Basic Data 700.0 GB disk4s2
3: Microsoft Basic Data BACKUPS 300.0 GB disk4s3


Nevertheless, when I reboot into Windows 7, the HFS+ partition pops up again, correct volume label and everything. So clearly the data is still there, and in some kind of usable format.



It's not the end of the world if I have to reformat, but I'd rather keep my full Time Machine history if possible. So is there something I can do to fix this non-destructively, and should I have done something differently when I was adding the second partition?



Answer



I tried various other search terms and found that this question is actually a duplicate of this one: OS X 10.6 Snow Leopard no longer mounting an external USB drive.



Here's what I did to fix:




  1. Download and install GPT fdisk

  2. Run gdisk and select problem drive:



    ~% sudo gdisk

    GPT fdisk (gdisk) version 0.8.1

    Type device filename, or press to exit: /dev/disk3
    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present

    Found valid GPT with protective MBR; using GPT.


  3. Look at the partitions using the p command:



    Command (? for help): p
    Disk /dev/disk3: 1953525168 sectors, 931.5 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): ABFA9105-73F4-4627-9890-9DECC55E86AC
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 1953525134
    Partitions will be aligned on 8-sector boundaries

    Total free space is 3389 sectors (1.7 MiB)

    Number Start (sector) End (sector) Size Code Name
    1 40 409639 200.0 MiB EF00 EFI System Partition
    2 409640 1367597143 651.9 GiB 0700 Time Machine Backups
    3 1367599104 1953523711 279.4 GiB 0700 Basic data partition


    In this case, it's partition 2 that's causing the problem. And the problem is that its type code is 0700, which means something other than HFS.


  4. Use the t command to set the partition type to af00 - Apple HFS/HFS+.




    Command (? for help): t
    Partition number (1-3): 2
    Current type is 'Microsoft basic data'
    Hex code or GUID (L to show codes, Enter = af00):
    Changed type of partition to 'Apple HFS/HFS+'

  5. Use the w command to write the stuff back to disk and quit.



    Command (? for help): w


    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
    PARTITIONS!!

    Do you want to proceed? (Y/N): y
    OK; writing new GUID partition table (GPT).
    Warning: The kernel may continue to use old or deleted partitions.
    You should reboot or remove the drive.
    The operation has completed successfully.




The HFS+ partition, and all of its contents, then became visible again to OS X.


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