Wednesday 15 August 2018

mounting ntfs on mac

Mounting ntfs on Mac


$ df -ah
Filesystem      Size   Used  Avail Capacity  iused    ifree %iused  Mounted on
/dev/disk1     233Gi  228Gi  4.1Gi    99% 59886590  1061888   98%   /
devfs          186Ki  186Ki    0Bi   100%      642        0  100%   /dev
map -hosts       0Bi    0Bi    0Bi   100%        0        0  100%   /net
map auto_home    0Bi    0Bi    0Bi   100%        0        0  100%   /home

/dev/disk2s1   932Gi  908Gi   23Gi    98%   111606 25128162    0%   /Volumes/Expansion Drive


$ sudo umount /Volumes/Expansion\ Drive/

$ sudo mkdir /usbNTFS/

$ sudo mount -t ntfs -o rw,auto,nobrowse /dev/disk2s1 /usbNTFS/ 
# Note: With my current testing, we need to have no browse options also to have write access.

$ cd /usbNTFS/


$ open . 

Friday 23 March 2018

knowing hosts type and understanding flags

knowing hosts type and understanding flags


For sure, learning from internet, but trying to make it over here, so my search will be less sometime :)

Links:

https://en.wikipedia.org/wiki/CPUID#EAX.3D1:_Processor_Info_and_Feature_Bits

To know if the OS is running on VM or Bare Metal:


# grep for "hypervisor" in /proc/cpuinfo

# grep hypervisor /proc/cpuinfo
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm ida arat epb pln pts dtherm


https://unix.stackexchange.com/questions/43539/what-do-the-flags-in-proc-cpuinfo-mean

  • 64-bit (x86_64/AMD64/Intel64)? lm
  • Hardware virtualization (VMX/AMD-V)? vmx (Intel), svm (AMD)
  • Accelerated AES (AES-NI)? aes
  • TXT (TPM)? smx
  • a hypervisor (announced as such)? hypervisor
Most of the other features are only of interest to compiler or kernel authors.

The full listing is in the kernel source, in the file arch/x86/include/asm/cpufeatures.h.

Intel-defined CPU features, CPUID level 0x00000001 (edx)