commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Some times you may ban usb to protect thefting of your personal data.
Blacklist the usb_storage module by adding blacklist usb_storage to /etc/modprobe.d/blacklist.conf.
To load the module manually,
sudo modprobe usb_storage.
VBoxManage internalcommands createrawvmdk -filename ~/.VBox_sdc.vmdk -rawdisk /dev/sdc
In order to start virtual box using block devices, ( Or to boot from it) run as ROOT
Then add & select the vmdk file as a device.
At last Start the virtual box.
- This cmd needs to run once for a device.
- See command 8936 to run with out using ROOT power and easy handling of Virtual m/c
By using vim, you can also filter content on stdout, using vim's extra power, like search pattern offset!
No more awk of course, sorry.
-e ex mode
-c 'ex command' : global + start and end pattern + offset print (p)
-cq : quit
Useful to know, especially if you are dealing with output configurations in block size.
Tested on 'Red Hat'.