Category Archives: linux

unix mount windows share

my work setup at work is still the same… win7 with a vmware guest redhat which i work on… a big part of the company is windows based, thats why i need to have access outside of the unix… one way is good old copy-paste… an other is webmail… and the next, which i actually use a lot is mounting… so here is the mount command, which i normaly need to google all the time 🙂

mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver

cant start vm: “Reason: Failed to lock the file.”

So i did it… i had to kill my vmplayer and after a computer reboot could not start my vm… ok this is my working vm… and atually i relay on it… and i really didnt want to reinstall it… and i really got a bit afraid, that today i just reinstall the vm, and acrually cant work…

so the error was:

Cannot open the disk ‘.vmdk’ or one of the snapshot disks it depends on.
Reason: Failed to lock the file.

So after reading the first google it, i installed an unlocker, to unlock all the files… host os is windows7, so actually i thought, this can be possible… but actually there was no lock on the files… after googling a little more i found this. So i deleted all the *.lck folders and tada: every thing is back to normal 🙂 i think 😛

gnome: switching workspaces

so finally working with linux… its a Red Hat :/ but its company policy 🙁

but at least its a linux…

due to running it in an vm, it has a major problem with switching workspaces… which i actually need! the problem is that the vm takes over the CTRL+ALT to leave the vm… but CTRL+ALT+arrow allows switching the workspace… and i really need this shortcut… so how to fix this?

simple… ask google 🙂

Mainly just change the vm ware commands… C:\Users\$YOUR_USERNAME$\AppData\Roaming\VMware add the following lines to the preferences.ini

pref.hotkey.shift = “true”
pref.hotkey.alt = “true”
pref.hotkey.control = “true”

restart the vm… and every thing is good… 🙂 ok now the leave the vm is CTRL+ALT+SHIFT, which i normaly doesnt use 🙂

source