Saturday, August 8, 2015

Remount Ejected USB without Replugging - OS X

You can use this command line to unload and reload the USB kernel extension.

sudo kextunload /System/Library/Extensions/IOUSBMassStorageClass.kext
sudo kextload /System/Library/Extensions/IOUSBMassStorageClass.kext

Instead of ejecting, you can also use diskutil to unmount and remount later.

Saturday, June 27, 2015

Write NTFS in OSX

In Terminal

sudo chmod 666 /etc/fstab

sudo nano /etc/fstab


LABEL=drivename none ntfs rw,auto,nobrowse

Make sure to replace drivename with the name of the drive.  Press Control-O to save the file and Control-X to exit nano. Change mod back to 644. After that unmount and remount. Access the disk via Shift+Cmd+G, /Volumes. Don't forget to unmount before detach.

Saturday, March 21, 2015

Reverse Wheel Scrolling in Windows 8.1

เปลี่ยน Registry (??VID??\DeviceParameters\FlipFlopWheel) ไม่ work เพราะ Hardware ID ที่ดูใน properties อาจไม่ตรง ต้องเปิด PowerShell (Run As Admin) แล้ว Run Script

Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }

เพื่อไล่เปลี่ยนทุกอัน เสร็จแล้วต้อง restart ด้วย


Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopHScroll -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopHScroll 0 }